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: NanoTDF secure key from debug logging and iv conflict risk #208

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

jentfoo
Copy link
Contributor

@jentfoo jentfoo commented Nov 4, 2024

This change is motivated from the CodeQL result: https://github.com/opentdf/java-sdk/security/code-scanning/1

Although that use of a static IV is deliberate, it helped highlight that we should ensure that there is no reuse of the IV when encrypting the data.

In addition it was found that there were two places the key was logged, due to the sensitivity of the key this has been removed.

This change is motivated from the CodeQL result: https://github.com/opentdf/java-sdk/security/code-scanning/1

Although that use of a static IV is deliberate, it helped highlight that we should ensure that there is no reuse of the IV when encrypting the data.

In addition it was found that there were two places the key was logged, due to the sensitivity of the key this has been removed.
@jentfoo jentfoo self-assigned this Nov 4, 2024
@jentfoo jentfoo requested review from a team as code owners November 4, 2024 21:57
Copy link

sonarcloud bot commented Nov 4, 2024

@jentfoo jentfoo merged commit 6301d32 into main Nov 5, 2024
7 checks passed
@jentfoo jentfoo deleted the jent/nanoTDF_key_hardening branch November 5, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants