Add secrets module: Spring Cloud Vault, AWS Secrets Manager, Kubernetes configtree and Jasypt on Spring Boot 4.1.2, with real transcripts
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6tTs7ivgTNq4ZrurU
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
moto: created secret /secrets/secrets-demo (JSON with db.password, db.username)
|
||||
spring.config.import = aws-secretsmanager:/secrets/secrets-demo
|
||||
bound: DbProperties[url=null, username=app, password=<redacted:15 chars>]
|
||||
property sources that hold db.password: [configurationProperties, aws-secretsmanager:/secrets/secrets-demo]
|
||||
-> PutSecretValue with db.password=aws-password-v2
|
||||
environment, no reload: db.password = aws-password-v1
|
||||
secret version with stages=[AWSCURRENT]
|
||||
secret version with stages=[AWSPREVIOUS]
|
||||
restart with reload.strategy=refresh, reload.period=PT1S: db.password = aws-password-v2
|
||||
-> PutSecretValue with db.password=aws-password-v3
|
||||
environment after 10 s of 1 s polling: db.password = aws-password-v2
|
||||
ContextRefresher.refresh() changed keys: [db.password]
|
||||
environment after manual refresh: db.password = aws-password-v3
|
||||
@RefreshScope bean after manual refresh: aws-password-v3
|
||||
missing secret, import = aws-secretsmanager:/secrets/nope:
|
||||
started: no; ResourceNotFoundException: Secrets Manager can't find the specified secret. (Service: SecretsManager, Status Code: 404, Request ID: <id> (SDK Attempt Count: 1)
|
||||
missing secret, import = optional:aws-secretsmanager:/secrets/nope:
|
||||
started: yes; db.password = null
|
||||
Reference in New Issue
Block a user