lambda-decorators
lambda-decorators copied to clipboard
`secrets_manager` works if secret isn't json
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!