Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

About

The Keycloak Operator is a Kubernetes operator developed by Hostzero that manages Keycloak instances through the Keycloak Admin API. The overall goal is to provide a cloud-native management interface for Keycloak instances.

Features

  • Declarative Configuration: Manage Keycloak resources as Kubernetes Custom Resources
  • Automatic Synchronization: Changes to CRs are automatically applied to Keycloak
  • Secret Management: Client secrets are automatically synced to Kubernetes Secrets
  • Status Tracking: Resource status reflects the current state in Keycloak
  • Finalizers: Proper cleanup when resources are deleted

Goals

  • Manage Keycloak instances solely through Kubernetes resources
  • Provide a GitOps-friendly way to manage Keycloak configuration
  • Enable infrastructure-as-code for identity management
  • Support multiple Keycloak instances from a single operator

Non-Goals

  • Manage the deployment of Keycloak instances (use Keycloak Operator or Helm for that)
  • Support other IdM solutions than Keycloak

Supported Resources

ResourceDescription
KeycloakInstanceConnection to a Keycloak server (namespaced)
ClusterKeycloakInstanceConnection to a Keycloak server (cluster-scoped)
KeycloakRealmRealm configuration (namespaced)
ClusterKeycloakRealmRealm configuration (cluster-scoped)
KeycloakClientOAuth2/OIDC client configuration
KeycloakClientScopeClient scope configuration
KeycloakProtocolMapperToken claim mappers for clients/scopes
KeycloakUserUser management
KeycloakUserCredentialUser password management
KeycloakGroupGroup management
KeycloakRoleRealm and client role definitions
KeycloakRoleMappingRole-to-user/group assignments
KeycloakIdentityProviderExternal identity provider configuration
KeycloakComponentLDAP federation, key providers, etc.
KeycloakOrganizationOrganization management (Keycloak 26+)

Enterprise Support

Hostzero

This operator is developed and maintained by Hostzero GmbH, a provider of sovereign IT infrastructure and security solutions based in Germany.

For organizations with critical infrastructure needs (KRITIS), we offer:

ServiceDescription
Enterprise SupportSLA-backed support with guaranteed response times
Security ConsultingHardening, compliance audits, and KRITIS certification support
On-Premises DeploymentAir-gapped and sovereign cloud deployments
Incident Response24/7 emergency support for production environments
TrainingWorkshops and certification programs

Contact Hostzero for enterprise solutions

License

This project is licensed under the MIT License. See the LICENSE file for details.