I'm attempting to use the Vault feature in Keycloak 24 by following the documentation provided at https://www.keycloak.org/server/vault.
According to the documentation, I've tried to set up a plain-text file-based vault as follows and named as 'iam_smtphost', iam is realm name
smtphost.amazonses.com
/opt/keycloak/bin/kc.sh build --vault=file
.exec /opt/keycloak/bin/kc.sh start-dev --http-port=8200 --hostname=localhost --vault-dir=/vault/secrets/
.${vault.smtphost}
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.
I'm unsure how to properly utilize this feature.
You should try to start your server not with start-dev
but use start
and use --optimized
.