Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(keychain)!: only export secret if "exportPrivate" flag is set #139

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

marcoskichel
Copy link
Contributor

Description

Updates the keychain module so that keychain.sodium.getSodiumKeysFromSeed only returns the secret key when exportSecret is set.

Context

The secret key holds the symmetric-key encryption key used in libsodium to both encrypt and decrypt messages, therefore its very sensitive data and shouldn't be exposed unless in very specific situations.

Closes: #136

@marcoskichel marcoskichel self-assigned this Sep 13, 2024
@mvayngrib mvayngrib changed the title security(keychain)!: only export secret if "exportPrivate" flag is set fix(keychain)!: only export secret if "exportPrivate" flag is set Sep 13, 2024
Copy link
Collaborator

@mvayngrib mvayngrib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

renamed to fix, conventional commits won't recognize security

Copy link
Contributor

@kewde kewde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@marcoskichel marcoskichel merged commit 7a01522 into master Sep 13, 2024
8 checks passed
@marcoskichel marcoskichel deleted the kichelm/keychain/stop-returning-secret branch September 13, 2024 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Only export sodium secret when exportPrivate is set to true
3 participants