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 handing of public objects with nssdb #125

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Conversation

simo5
Copy link
Member

@simo5 simo5 commented Dec 9, 2024

The fetch side was unconditionally applying sensitivity object parsing which meant it would try to decrypt any CKA_VALUE attribute regardless of object type. However the store() function would encrypt it only for the private database objects.

Fix the asymmetry and add a test to ensure writing public object works as expected.

@simo5 simo5 requested a review from Jakuje December 9, 2024 19:20
@simo5
Copy link
Member Author

simo5 commented Dec 9, 2024

@Jakuje this pr should fix the nssdb+fips issue you see in your PR

Copy link
Contributor

@Jakuje Jakuje left a comment

Choose a reason for hiding this comment

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

lgtm. Came up with the same solution in #122.

@simo5 simo5 merged commit 93ad186 into latchset:main Dec 9, 2024
6 checks passed
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.

2 participants