Variable Substitution
keycloak-config-cli supports variable substitution in configuration files. This allows you to use the same config files across different environments.
Enabling Variable Substitution
Set import.var-substitution.enabled=true (disabled by default).
Supported Variable Types
Environment Variables
File Content
Base64
JavaScript Evaluation
System Properties
URL Content
Recursive Substitution
Variables can reference other variables:
Best Practices
- Use environment variables for environment-specific values
- Store secrets in files mounted as Docker/K8s secrets
- Use JavaScript for dynamic calculations