-
Notifications
You must be signed in to change notification settings - Fork 976
(feat): adds publish support for aws secrets manager and parameter store #1953
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
base: main
Are you sure you want to change the base?
(feat): adds publish support for aws secrets manager and parameter store #1953
Conversation
Signed-off-by: bruce-szalwinski-he <[email protected]>
Signed-off-by: bruce-szalwinski-he <[email protected]>
…ive destination validation - Add comprehensive destination conflict validation tests for all 5 destinations (S3, GCS, Vault, AWS Secrets Manager, AWS Parameter Store) in config_test.go - Add keyvalue-secrets.yaml example showing optimal format for AWS console key/value editor - Add aws-secrets-manager-keyvalue-format.md documentation explaining JSON vs key/value formats - Add destination-test-coverage.md documenting complete test matrix (10 conflict scenarios) This ensures proper validation of destination conflicts and provides clear guidance for using AWS Secrets Manager key/value format to enable the AWS console editor. Signed-off-by: bruce-szalwinski-he <[email protected]>
Signed-off-by: bruce-szalwinski-he <[email protected]>
…tinations - Add test to verify Upload method returns NotImplementedError - Replace Parameter Store Upload implementation with NotImplementedError - Ensure consistency with Vault and Secrets Manager destinations - The publish command uses UploadUnencrypted for all structured destinations This removes unreachable code and aligns with the current design where: - S3/GCS: Upload encrypted files (Upload method) - Vault/Secrets Manager/Parameter Store: Upload decrypted JSON (UploadUnencrypted method) Test-driven fix: wrote failing test, then implemented the fix. Signed-off-by: bruce-szalwinski-he <[email protected]>
Signed-off-by: bruce-szalwinski-he <[email protected]>
…avior - Update TestAWSParameterStoreDestination_EncryptedFile_Integration to test NotImplementedError - Remove test of legacy Upload functionality that's not used by publish command - Verify Upload method now returns NotImplementedError consistently with other destinations - All integration tests pass with real AWS credentials The publish command uses UploadUnencrypted for Parameter Store, so Upload method should return NotImplementedError like Vault and Secrets Manager destinations. Signed-off-by: bruce-szalwinski-he <[email protected]>
Signed-off-by: bruce-szalwinski-he <[email protected]>
094d6c9 to
292c9b0
Compare
| @@ -0,0 +1,123 @@ | |||
| package config | |||
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.
config_test was getting a little long, so added aws config tests as separate file.
Signed-off-by: bruce-szalwinski-he <[email protected]>
| parameterType = "SecureString" | ||
| } | ||
|
|
||
| // Ensure parameter path starts with / |
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.
https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-hierarchies.html - parameter hierarchies require leading /. parameter hierarchies was introduced in 2017, https://aws.amazon.com/about-aws/whats-new/2017/06/amazon-ec2-systems-manager-adds-hierarchy-tagging-and-notification-support-for-parameter-store/
Signed-off-by: bruce-szalwinski-he <[email protected]>
Signed-off-by: bruce-szalwinski-he <[email protected]>
Signed-off-by: bruce-szalwinski-he <[email protected]>
ca8cf9f to
9427fab
Compare
Signed-off-by: bruce-szalwinski-he <[email protected]>
Signed-off-by: bruce-szalwinski-he <[email protected]>
|
@felixfontein I see that you have been busy preparing the 3.11.0 release, so may not have had time to look at this one. Just checking in to see if there is anything else I need to provide for this PR. |
Signed-off-by: bruce-szalwinski-he <[email protected]>
Signed-off-by: bruce-szalwinski-he <[email protected]>
Signed-off-by: bruce-szalwinski-he <[email protected]>
Signed-off-by: bruce-szalwinski-he <[email protected]>
Signed-off-by: bruce-szalwinski-he <[email protected]>
Adds AWS Secrets Manager and Parameter Store
publishsupport. Works same asvaultin that it uploads unencrypted results as plain text JSON.fixes #1942, #1105