secrets-provider-for-k8s
secrets-provider-for-k8s copied to clipboard
leverage file temaplates with k8s-secret targets
Desired Outcome
File templates can be used the same way for k8s_secrets as it is used in push-to-file configuration. Templates in secret annotation are rendered and store in target k8s secret. The Secret key can then be mounted as a file into the container's filesystem.
Implemented Changes
Template processing functionality has been refactored - common code has been extracted from the pushtofile package into a new shared package. This allows template processing to be used in both scenarios: when processing file templates in the k8s_secrets target mode and push-to-file mode. When target secret is processed, both conjur-map and temaplates/groups are processed and rendered.
Connected Issue/Story
DRAFT for:
https://github.com/cyberark/secrets-provider-for-k8s/issues/549