Keycloak deployment and infrastructure

Installing and running Keycloak on containers, OpenShift, virtual machines, Windows and restricted networks, and managing its configuration as code.

Running Keycloak in Docker for production

Moving from start-dev to a production container: the optimized image built with kc.sh build, start --optimized, database and hostname settings through environment variables, admin bootstrap, health checks and upgrades by image tag.

Building a custom Keycloak container image

Packaging providers, themes and extra certificates into your own Keycloak image: multi-stage builds, the providers directory, adding OS packages through a UBI stage, image signing and rebuilding on every Keycloak release.

Keycloak on OpenShift

Deploying Keycloak or Red Hat build of Keycloak on OpenShift with the Operator from OperatorHub: routes and TLS re-encryption, database choices, realm import resources, and the support differences between community and Red Hat builds.

Keycloak hostname and TLS configuration

Getting Keycloak URLs and certificates right: hostname v2 settings, separate admin hostname, backchannel URLs for internal clients, TLS keystores and truststores, and the errors that point to a wrong hostname.

Choosing and configuring the Keycloak database

Picking a supported production database for Keycloak, usually PostgreSQL, and configuring it: versions, drivers (Oracle is not bundled), connection pooling, replication for HA, and why the dev-file database cannot be used in production.

Running Keycloak as a Windows service

Installing Keycloak on Windows Server with kc.bat tools windows-service and Procrun: prerequisites, service accounts, system-wide KC_ variables, applying configuration changes, and when Linux or containers are the better host.

Managing Keycloak configuration with Terraform

Keeping realms, clients, roles, identity providers and flows in version control with the keycloak/keycloak Terraform provider: supported Keycloak versions, state and secrets handling, drift detection and promotion across environments.

Keycloak in air-gapped and restricted networks

Running Keycloak where outbound internet is blocked or absent: mirroring images and providers, outbound proxy settings for brokering and token exchange, OCSP and CRL checks, upgrades without internet access, and which features need external reach.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.