-
Notifications
You must be signed in to change notification settings - Fork 3
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
Make kmsKey optional #14
Conversation
@@ -74,7 +78,7 @@ def on_create(event): | |||
data_type = fileType | |||
if not data_type: | |||
data_type = s3Path.rsplit('.', 1)[-1] | |||
secrets = sops_decode(raw_content, kmsKey, data_type) | |||
secrets = sops_decode(raw_content, data_type, kmsKey) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh god I've just realised what a horrible job of the camel-vs-snake casing I've done in this file who even am I?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ikr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@winjer Merged and released as 1.3.0 - https://www.npmjs.com/package/sops-secretsmanager-cdk/v/1.3.0 |
you don't need to specify the key, since it is defined in the sops encrypted file.
this change makes the key optional.