Hello,
We would like to use Hashicorp Vault. You can see an example of how I use it.
annotations:
# Environment variable export template
vault.hashicorp.com/agent-inject-template-temporal-db-creds.sh: |
{{ with secret "db/creds/data" -}}
export SQL_USER="{{ .Data.user.user }}"
export SQL_PWD="{{ .Data.user.pwd }}"
{{- end }}
We need to run temporal-db-creds.sh before running the Temporal server. I know there is a script prepared called entrypoint.sh in the containers, but I could not find a way to modify the ‘command’ and ‘args’ of the main container in the Helm Chart Deployment.
I would expect to have something like this:
command:
- sh
args:
- "-c"
- "for f in /vault/secrets/*.sh; do . $f; done && source /etc/temporal/entrypoint.sh
I appreciate your help!