Skip to content

Commit

Permalink
feat: sdkv2 (#1111)
Browse files Browse the repository at this point in the history
# BREAKING CHANGE: v2.0

Fixes #1090, #1096, #1092, #1043, #1045

# Features

- update Go AWS SDK V2
- Handling of raw secrets
- Handling of binary secrets

## Migrate from V1 to V2

It was required to change some user facing configuration properties. So minor changes are required to make things work again.

### SecretsManager
- Removed property convertToJSON, flatten, stringifiedValues 
- Use property rawOutput instaed:
  - `undefined / not set` => (default) convertToJSON and flatten and stringifiedValues = true
  - `RawOutput.STRING` => convertToJSON and flatten and stringifiedValues = false
  - `RawOutput.BINARY` => convertToJSON and flatten and stringifiedValues = false and Secret is binary

### Parameter
- Removed property convertToJSON, flatten, stringifiedValues => all of them made no sense - now only raw output of decrypted secret

### MultiParameter
- Removed property convertToJSON, flatten, stringifiedValues => most of this combinations made no sense
- Allways convertToJson and flatten (as we have to parse it to create multiple parameters)
- You are allowed to chose the flattenSeperator
---------

Signed-off-by: Florian Fl Bauer <[email protected]>
Signed-off-by: github-actions <[email protected]>
Signed-off-by: lennartrommeiss <[email protected]>
Co-authored-by: Florian Bauer <[email protected]>
Co-authored-by: github-actions <[email protected]>
Co-authored-by: lennartrommeiss <[email protected]>
Co-authored-by: Lennart Rommeiss <[email protected]>
  • Loading branch information
5 people authored Feb 11, 2025
1 parent d2a0e2c commit dc789a9
Show file tree
Hide file tree
Showing 204 changed files with 7,575 additions and 19,384 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 24 additions & 32 deletions .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .gitleaks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ paths = [
regexTarget = "match"
regexes = [
'''AGE-SECRET-KEY-1EFUWJ0G2XJTJFWTAM2DGMA4VCK3R05W58FSMHZP3MZQ0ZTAQEAFQC6T7T3''',
'''ghp_abcd1234''',
'''sk-1234567890abcdef''',
]

2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.22.3
1.23.5
7 changes: 3 additions & 4 deletions .npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dc789a9

Please sign in to comment.