envs

Keycloak — self-hosted server

keycloak/server · version 1

envs add keycloak/server

This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.

Key Needed Kind Notes
KC_BOOTSTRAP_ADMIN_USERNAME required secret The first administrator, created on first boot. Half of a login pair, so it is kept with the other half.. where to get it
KC_BOOTSTRAP_ADMIN_PASSWORD required secret Keycloak does not call it secret in those words; it says to prefer a non-command-line option where possible, which is guidance about shell history rather than a declaration. Treated as secret here.. where to get it
KC_DB_USERNAME optional secret The database user, when Keycloak runs against an external database.. where to get it
KC_DB_PASSWORD optional secret That user's password. Keycloak states no sensitivity for it, which is why this template says so.. where to get it

The JSON the CLI reads