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

Add soft deletion of Transit keys #211

Merged
merged 2 commits into from
Mar 18, 2024

Conversation

cipherboy
Copy link
Member

This adds soft deletion of Transit keys, allowing users to mark keys as
deleted without impacting the ability to backup the key or affecting its
availability to be restored (but preventing all other operations). This
explicitly allows non-exportable keys to be more safely removed, first
via soft deletion (to see if any workloads break and to generally
prevent usage of the key) and then via permanent deletion.

Resolves: #88


I also noticed a bug while adding this:

When a RSA keypolicy is generated (and not merely imported),
RSAPublicKey is set to nil, incorrectly preventing the wrapping of
other keys with this policy. Fix this condition, allowing BYOK export
with destination (wrapping) keys created inside the same Transit
instance.

This adds soft deletion of Transit keys, allowing users to mark keys as
deleted without impacting the ability to backup the key or affecting its
availability to be restored (but preventing all other operations). This
explicitly allows non-exportable keys to be more safely removed, first
via soft deletion (to see if any workloads break and to generally
prevent usage of the key) and then via permanent deletion.

Resolves: openbao#88

Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>
When a RSA keypolicy is generated (and not merely imported),
RSAPublicKey is set to nil, incorrectly preventing the wrapping of
other keys with this policy. Fix this condition, allowing BYOK export
with destination (wrapping) keys created inside the same Transit
instance.

Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>
@naphelps naphelps merged commit 8799b0e into openbao:main Mar 18, 2024
72 of 79 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.

RFE Transit - Support soft delete of transit keys
2 participants