Hi, we have quite a lot of secrets in many subpaths. We use vault agent with an injector and it doesn’t look nice to have a really long list of annotations when they clearly could be looped or at least use specific secret engines/team names as enviornment variables.
For example:
cluster-$ENV/shared/$TEAM/shared-secrets/
this directory contains many secrets inside. As far as I understand consul template syntax of range secrets with secret
works only on one path and doesn’t on a directory containing other directories which then have secrets.
I would like to use {{ range secrets "cluster-env" }}
which would also go to all subdirs and get key and value. Is that not possible? I cannot get a working syntax tho.
The second question is how to combine it with parametrizing env vars like ENV and TEAM?