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

Make kmsKey optional #14

Merged
merged 2 commits into from
Feb 28, 2020
Merged

Make kmsKey optional #14

merged 2 commits into from
Feb 28, 2020

Conversation

winjer
Copy link
Contributor

@winjer winjer commented Feb 28, 2020

you don't need to specify the key, since it is defined in the sops encrypted file.

this change makes the key optional.

@winjer winjer requested a review from plumdog February 28, 2020 14:58
provider/main.py Outdated Show resolved Hide resolved
@@ -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)
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ikr

@plumdog plumdog changed the title kms key is not required Make kmsKey optional Feb 28, 2020
provider/main.py Outdated Show resolved Hide resolved
Copy link
Contributor

@plumdog plumdog left a comment

Choose a reason for hiding this comment

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

👍

@plumdog plumdog merged commit 8738751 into master Feb 28, 2020
@plumdog plumdog deleted the kms-key-optional branch February 28, 2020 15:13
@plumdog
Copy link
Contributor

plumdog commented Feb 28, 2020

@winjer Merged and released as 1.3.0 - https://www.npmjs.com/package/sops-secretsmanager-cdk/v/1.3.0

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