lambda-decorators icon indicating copy to clipboard operation
lambda-decorators copied to clipboard

`secrets_manager` works if secret isn't json

Open sauln opened this issue 4 years ago • 0 comments

While encouraged to be a valid json object, the secrets manager doesn't actually enforce that the secrets are json.

This PR first tries to decode the json, and if it fails it will return the plain text secret instead.

Love this library by the way. It has greatly simplified our lambda development. Thank you!

sauln avatar Jan 22 '21 21:01 sauln