Spring frameworks uses these kind of expressions with env variable. This was fixed in Kubernetes during the initial days by allowing their secrets/configmaps to use dot in their Keys.
Is there any way to use env variable with dot in it ?
Step 3: When deploying the above YAML, everything works as expected but env variable is not exported. I have also tried export "{{ .Data.data.username }}"="{{ .Data.data.password }}" which errors out as ‘bad variable/Identifier’.
My question is:
Kubernetes can place such variable (env variable with periods in it) into container’s environment using Secret.
Is there any way by which Vault can enable the same thing. If not by Vault, any help with the scripting to achieve the same.
This did not work , also tried to run the command in the same shell and that is not working either. command: ["/vault/secrets/dictenv" && "/scripts/start.sh"]
Will check with an image allowing BASH shell to the user before looking into scripting to solve this.