cmattoon / aws-ssm

Populates Kubernetes Secrets from AWS Parameter Store
https://hub.docker.com/r/cmattoon/aws-ssm/
Apache License 2.0
166 stars 32 forks source link

K8s secret key naming #33

Closed jamessthompson closed 2 years ago

jamessthompson commented 5 years ago

I'm a bit confused regarding the mapping of values to keys in the created k8s secret. The README.md states that an AWS securestring value of "foo = bar" would set a k8s value of "foo:bar"

However I always get

data: SecureString: bar

Where bar is base64 encoded as expected.

I've tried setting the parameter value as follows

bar # K8s secret get 'SecureString: bar' foo=bar # K8s secret gets 'SecureString: foo=bar'

Again the values are base64 encoded as expected.

If this is expected behavior then I think it would be nice to provide an annotation that overrides the default data.SecureString name so that I can adjust the name to match what applications are expecting to find in their secret.

jamessthompson commented 2 years ago

closing this as the project seems dead and I've moved on to external secrets