-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add encrypted string parameter (#1041)
* feat: Add encrypted string parameter * chore: refactor and add test * chore: development tools * fix: import --------- Co-authored-by: Thomas Geese <[email protected]> Co-authored-by: Markus Siebert <[email protected]> Co-authored-by: Markus <[email protected]>
- Loading branch information
1 parent
4dcd754
commit 2bcd06f
Showing
46 changed files
with
1,409 additions
and
530 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.22.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
golang 1.22.3 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"RequestType": "Create", | ||
"LogicalResourceId": "LogicalResourceId", | ||
"ResourceProperties": { | ||
"ParameterName": "arn:aws:ssm:eu-central-1:123456789012:parameter/testsecret", | ||
"SopsS3File": { | ||
"Bucket": "..", | ||
"Key": "../test-secrets/binary/sopsfile.enc-age.binary" | ||
}, | ||
"Format": "binary", | ||
"ConvertToJSON": "false", | ||
"SopsAgeKey": "AGE-SECRET-KEY-1EFUWJ0G2XJTJFWTAM2DGMA4VCK3R05W58FSMHZP3MZQ0ZTAQEAFQC6T7T3" | ||
}, | ||
"ResourceType": "Custom::SOPS::Secret", | ||
"RequestId": "RequestId", | ||
"StackId": "StackId" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package main | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/gkampitakis/go-snaps/snaps" | ||
) | ||
|
||
func Test_FullWorkflow_Create_S3_Parameter_RAW_Simple(t *testing.T) { | ||
mocks, ctx, event := prepareHandler(t, "events/event_create_s3_parameter_raw_simple.json") | ||
|
||
phys, data, err := mocks.syncSopsToSecretsmanager(ctx, event) | ||
check(err) | ||
snaps.MatchSnapshot(t, ">>>syncSopsToSecretsmanager", phys, data, err) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.