I’m attempting to use the Vault feature in Keycloak by following the documentation provided at Using a vault - Keycloak.
According to the documentation, I’ve tried to set up a plain-text file-based vault as follows.
- I mounted a folder
/vault/secrets/that contains a filetest_smtppasswordin the Keycloak Docker container. - The run command first executes
/opt/keycloak/bin/kc.sh build --vault=file - Then It executes
exec /opt/keycloak/bin/kc.sh start-dev --http-port=8200 --hostname=localhost --vault-dir=/vault/secrets/ - I referred
${vault.smtppassword}for smtp password in the admin console realm settings.
Keycloak starts normally and works properly. However, when attempting to send an email, it doesn’t retrieve the value from the secret file I provided; instead, it interprets the string literally and fails.
Keycloak Version : 20.0.1
Deployment : Local docker deployment
Is there anything else am I missing. Please advice