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

Can SOPS be used with AWS KMS keys that have automatic rotation turned on? #1227

Open
imoisharma opened this issue Jun 26, 2023 · 2 comments

Comments

@imoisharma
Copy link

I was looking for this issue #1135 and I am wondering does the SOPS now supports w/ an AWS KMS key that has automatic rotation.

/kind information
/kind looking-for-clear-answer
/kind support

@dmore
Copy link

dmore commented Aug 25, 2023

rotation does not change the kms id.

@yogeek
Copy link

yogeek commented Aug 27, 2023

@dmore the key is not modified but the content of the key is...so can you please be more specific about the implications on sops ?

As stated in the linked issue #1135, the documentation says :

When you enable automatic key rotation for a KMS key, AWS KMS generates new cryptographic material for the KMS key every year.

So what will be the behavior in the following scenario :
a sops secret has been encrypted with the version N of the 'id1' KMS key; after 1 year, the key is rotated so the N+1 version of 'id1' key will contain different cryptographic material : what about all the secret that have been encrypted with the old version ? Sops must use the old content to decrypt them so is sops able to use the 'id1' key history to decrypt ?
Or do we have to encrypt all our secrets again to be able to go on with the N+1 version of the key ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants