Why moving Keycloak from WildFly to Quarkus is a rebuild, not a file copy
If your Keycloak is older than version 17 and runs on WildFly with a standalone XML configuration, possibly with custom providers and themes, the move to the Quarkus distribution changes the packaging, the configuration model and the deployment path. Your database and realms usually carry over, but the server around them is rebuilt. Plan for that from the start rather than treating the upgrade as a copy of the deployment directory.
Effort depends mostly on four things: how many custom SPI providers you have and whether each one must be recompiled against the Quarkus build, how heavily your themes and templates were customized, whether your current cluster uses a discovery method that the new distribution handles differently, and where the new server will run. A single VM with a few custom providers is a very different job from a clustered estate on containers. This section does not give a duration. Ask any partner for an estimate only after they have inventoried these four areas in your environment.
The first task is an inventory, not a configuration change. Export the standalone.xml or standalone-ha.xml settings you actually use, list every JAR under the deployments and modules directories, and record which themes, login pages and email templates were modified. Confirm which Keycloak minor version you run today and read the Keycloak upgrading guide for the migration path that applies to your starting version. Items that do not map cleanly to Quarkus settings become decisions you must make, not steps you can script.
Treat the database and realm data as the part most likely to survive intact, and test that assumption on a copy. Schema migration runs at startup by default, so confirm the database version and backup state before the first Quarkus start. Keep the old WildFly environment available for rollback until the new instance has passed your functional and login tests.
What maps cleanly from WildFly Keycloak and what does not
This table compares each area of a WildFly-based Keycloak with its Quarkus equivalent and marks whether it moves through export and import or must be rebuilt. Read it as a checklist: realm data usually transfers, while datasource, clustering, proxy, logging and custom provider work need deliberate rework. The main takeaway is that the admin console and realm content are rarely the hard part of the move.
| Area | Quarkus equivalent and migration note | Carries over through export and import? |
|---|---|---|
| Realms, clients and roles | Same model in the Quarkus distribution. Review client redirect URIs and web origins after import, since they are easy to miss. | Yes, through a full realm export and import |
| Users and credentials | Password hashes and OTP or WebAuthn credentials are exported with the realm. Confirm hash iteration settings still apply on the target. | Yes, verify after import |
| Identity brokering | Identity provider definitions transfer, but client secrets for upstream providers may be masked in exports and must be re-entered. | Partly, secrets often re-entered |
| User federation (LDAP, Active Directory, Kerberos) | Provider configuration moves with the realm. Bind credentials and Kerberos keytab files live outside the realm data and must be placed on the new hosts. | Partly, credentials and files re-entered |
| Themes and custom SPI providers | WildFly deployments (JAR or module files) do not run on Quarkus. Each provider must be rebuilt against the Quarkus packaging and redeployed into the providers directory. | No, rebuild and redeploy |
| Datasource and Infinispan settings | XML datasource and cache definitions in standalone.xml are replaced by the Quarkus configuration file and build-time options. Re-express each setting and test the database connection before cutover. | No, rewrite configuration |
| Cluster discovery | JGroups and cache settings from the WildFly profile must be re-expressed for the Quarkus clustering options. Confirm node discovery in a staging cluster. | No, rebuild and test |
| Logging | Logging moves from the WildFly logging subsystem to Quarkus logging settings. Log categories and formats need to be rewritten and checked against your log pipeline. | No, rewrite configuration |
| HTTPS, hostname and proxy headers | TLS, hostname and forwarded-header settings are rewritten in Quarkus configuration. Public URLs and the reverse proxy path rules must match the new setup, including the change from the /auth path. | No, rewrite and retest |
How custom providers, themes and the /auth path change the move
A deployment that uses only the built-in login pages, default realm settings and standard identity providers has the smallest provider and theme workload. The main job is to confirm that nothing in the WildFly installation was quietly customized outside the documented extension points, such as edited files under the server's standalone directory or changed startup scripts. Those edits do not carry over, and they are easy to miss when the team that built the server has moved on.
- Inventory the installation: Compare the WildFly
standalonedirectory and startup scripts against a clean distribution to find any hand-edited files. - Confirm built-in features only: List the authenticators, mappers and identity providers in use and verify each one ships with Keycloak.
- Rebuild the server configuration: Recreate system properties and XML subsystem settings as Quarkus configuration options rather than copying the old files.
- Test login flows end to end: Run each browser login, token refresh and logout path against the new distribution in a non-production realm.
- Check the upgrade notes: Read the notes for your target version, since default behavior changes can affect deployments with no custom code.
Before cutover, ask the team to sign off that the inventory matches what runs in production, because an undocumented edit is the most common surprise in this tab's situation.
Custom SPI providers, including authenticators, event listeners, protocol mappers and user storage providers, are compiled Java code that was built against the WildFly packaging and its module layout. On the Quarkus distribution they must be rebuilt and deployed in the Quarkus provider format, and any dependency that the old server supplied through its modules may no longer be on the classpath. Treat each provider as a separate work item with its own tests rather than a file to copy across.
- List every provider jar: Record the provider, its source repository, the Keycloak version it was built against and the owner who can change it.
- Check each against the upgrade notes: Review the notes for your target version and the SPI changes between your current release and that target, instead of assuming a provider loads unchanged.
- Rebuild against the target version: Compile each provider against the target Keycloak API and resolve dependencies the WildFly modules used to supply.
- Test user storage behavior: For user storage providers, verify lookup, credential validation, import mode and attribute mapping with real accounts in a staging realm.
- Confirm provider loading: Start the server with the Quarkus build and check the logs and the admin console for each provider before any traffic moves.
Ask the vendor or the author of each custom provider whether a maintained build exists for your target version, because the rebuild cost depends on how much of the code relies on internal APIs.
Custom themes for login, account, admin and email pages are file-based templates, FreeMarker files and static resources, that sit in a theme directory. They are usually less tied to the server internals than Java providers, but they still depend on template variables, message bundles and CSS class names that change between releases. A theme that looked correct on WildFly can break silently on the new distribution, especially in error pages and the account console.
- Locate the theme directory: Confirm where the theme files live and whether they were packaged into a deployment or copied into the server tree.
- Review template variables: Compare the FreeMarker templates against the default theme of the target version and update any changed variables.
- Verify message bundles: Check that translated strings still resolve, including error and expired-link messages.
- Test every page type: Walk through login, registration, password reset, OTP, consent, the account console and the email templates.
- Account for theme reloading: Confirm the cache and theme settings for the Quarkus server match your production expectations.
If a theme depends on a custom JavaScript framework or extra build step, ask the team that maintains it for a documented build process before scheduling the cutover.
On the WildFly distribution, many deployments serve Keycloak under the /auth context path. The Quarkus distribution serves it at the root by default, so every client, reverse proxy rule and bookmark that assumed /auth will fail unless it is changed. This affects browser redirects, the OIDC discovery URL, the admin console and any service that calls the Administration REST API. The change is easy to underestimate because it touches many systems that are not part of the Keycloak project.
- Update client configuration: Review every client's valid redirect URIs, web origins and admin URL, and replace
/authpaths with the new root paths. - Update discovery and token endpoints: Change any application or library setting that hardcodes the issuer or well-known endpoint with the old path.
- Adjust reverse proxy path rules: Check that proxy routes forward the new paths and restrict admin endpoints as the production guide describes, and that no old
/authrule still exposes the admin console publicly. - Separate admin exposure: Serve the admin console and Administration REST API on a different hostname or context path from public frontend URLs.
- Plan redirect URI rollout: Add the new redirect URIs alongside the old ones during the parallel run, then remove the old ones after cutover.
Before cutover, test a login from each application and confirm the admin console is unreachable from public networks through the new proxy rules.
Documented tools and paths for the WildFly to Quarkus move
Keycloak documents a small set of routes for moving configuration and data from a WildFly deployment to the Quarkus distribution. Each route carries different work for the team, and the cards below set out what each one covers and what to check before choosing it. The common thread is that the database usually stays in place, while configuration, custom code and the deployment method change.
Realm export and import
A realm export through the server writes realm configuration to files that can be loaded into a Quarkus instance with the import option. It is the closest path to a full copy of clients, roles, identity providers and flows. Check how the export handles client secrets: exported secrets are masked by default, so the team must supply real values again or rotate them before any client can authenticate. Confirm the Keycloak version on both sides matches before importing.
Upgrading guideKeycloak Operator custom resources
When the target runs on Kubernetes, the Keycloak Operator manages the server through a Keycloak resource and imports realms through a KeycloakRealmImport resource. Clients can also be declared as KeycloakOIDCClient and KeycloakSAMLClient resources. Rebuilding configuration as these resources turns a one-time migration into reviewable manifests, but the team must still map each WildFly setting to a supported field.
Operator installationOperator Lifecycle Manager, kubectl or Helm
The Operator can be installed through Operator Lifecycle Manager, which is the recommended method, through kubectl, or through an experimental Helm chart. Choose the method your platform team already runs, and avoid the experimental chart for production unless your own tests back it. Record the chosen method and its version in the runbook so later upgrades use the same route.
Installation optionsRetained database and schema migration
The Quarkus instance normally connects to the same supported database used by the WildFly server, so user and session data stay in place while the distribution changes. Schema migration runs automatically at startup by default, and manual migration is available for large deployments. Take a verified backup before the first start, and confirm the database version is in the supported list.
Database guideManual approval for operator updates
The Operator documentation strongly recommends manual approval mode for operator updates, so that an upgrade does not start without review. Under Operator Lifecycle Manager, this means setting the subscription approval to manual. Plan who approves each update and when, so a routine catalog change does not restart the identity provider during business hours.
Operator docsHow the WildFly to Quarkus cutover runs in phases
The sequence turns a WildFly Keycloak into a tested Quarkus deployment with a known rollback path, so the cutover is a planned switch rather than a first attempt. Each phase produces a checkpoint that the next phase depends on.
Inventory realms, providers and configuration
Capture everything the WildFly deployment depends on: realms and their clients, user federation and identity brokering settings, custom SPI providers and their JAR files, themes, the standalone XML datasource and clustering settings, and any JVM options or system properties. DeployOpen and the client's platform team usually produce this together, with the platform team confirming which settings are still in use. Done means every item is listed with an owner and a disposition: carry over, rewrite, rebuild or retire.
Translate XML settings into Quarkus configuration
Map each standalone XML setting to its Quarkus equivalent, such as datasource, hostname, proxy and cache options, and decide which values belong in the configuration file, environment variables or the secret store. Confirm the current mapping against the upgrading guide, since option names change between releases. Done means a reviewed configuration set exists in version control, and no value that was in the XML is unaccounted for.
Rebuild and retest custom providers
Recompile custom SPI providers, authenticators, event listeners, user storage providers and themes against the target Keycloak version, and fix any API changes the build reports. The Quarkus distribution is built with a build step, so custom providers are included at build time rather than dropped into a deployments folder. Done means the providers compile, pass their own tests and load in a development instance without startup errors.
Build and test against a production database copy
Build the Quarkus distribution with the final configuration and start it against a restored copy of the production database. Decide whether schema migration runs automatically at startup, which is the default, or whether the team applies the SQL manually, as the upgrading guide suggests for large deployments. Test realm login, token issuance, admin console access, federation sync and the /auth path change in front of the proxy. Done means a written test script passes against the copy and any schema changes are reviewed.
Run a parallel environment on a test hostname
Point a set of non-critical clients at the Quarkus instance through a test hostname while the WildFly nodes keep serving production. Compare login, logout, token claims and refresh behavior between the two environments, and check the proxy headers and redirect URIs that each application receives. Done means the parallel results match the expected behavior and every discrepancy has an owner and a fix.
Decide the rollback path before cutover
Agree on the rollback path in writing before the cutover window opens. Confirm whether WildFly nodes stay running and whether the database remains compatible with them after the schema has been migrated, because a forward schema change may prevent a straight return to the old version. Name who makes the rollback call and the conditions that trigger it. Done means the rollback decision is signed off by the platform owner and the application owners.
Switch traffic in the planned cutover window
During the agreed window, stop writes or schedule the cutover so no sign-ins are lost, then switch DNS or the reverse proxy to the Quarkus instance. Run the smoke test script against the production hostname immediately afterward, and watch logs and metrics for failed logins and token errors. Done means the production test passes, the monitoring baseline is stable, and the change record is updated with the actual times.
Decommission WildFly after the rollback period
Keep the WildFly nodes available for the rollback period agreed earlier, then shut them down, remove their configuration from load balancers and archive the final XML and provider files. Confirm the period length with the client, since it depends on their change policy. Done means the WildFly nodes are retired, the archived configuration is stored with the migration record, and the Quarkus operations runbook is handed over.
How traffic and data move during a parallel run and cutover
The flow starts at the live WildFly Keycloak, which keeps serving production while its database is copied to a separate target database. The Quarkus Keycloak connects to that copy and sits behind the reverse proxy, where a test hostname lets teams sign in against it before anything changes for users. At cutover, the production hostname is switched to the Quarkus target, and the WildFly instance and its original database stay intact as the rollback path. Check that the admin and public hostnames are separated and that the copied database matches the source before the switch.
Traffic and data paths during the parallel run, cutover and rollback.
What drives the effort and cost of the move
The table lists the factors that change how much work a WildFly-to-Quarkus move takes, whether each cost is one-time or recurring, and what to ask a partner to quote. Use it to size your own inventory before comparing proposals, since most of the effort sits in custom code, configuration and testing rather than in the server install itself.
| Driver | Why it changes effort | One-time or recurring, and what to ask for |
|---|---|---|
| Custom SPI providers and their age | Each provider built against the WildFly-era APIs must be rebuilt, retested and redeployed as a Quarkus provider JAR. Older providers often depend on removed or changed internals. | One-time. Ask for a per-provider list with its owner, last build date and whether the source is in version control. |
| Number of themes | Login, account and email themes are usually copied from the old layout and may reference templates that changed. Each theme needs visual and functional checks. | One-time for the move, recurring if themes are customized again on every upgrade. Ask whether the quote covers theme regression testing. |
| Clustering and cache configuration | Infinispan settings, cache names and discovery in the XML subsystem must be translated into Quarkus configuration and tested under load, which takes more time when the cluster has several nodes. | One-time for translation and testing, with ongoing operational effort. Ask how node discovery and session cache behavior will be verified. |
| Database engine and version | The move keeps the database, but driver, connection pool and schema settings change. Migration behavior and supported engine versions must match the target release. | One-time. Ask which engine and version you run, whether a schema backup is included and who runs the migration rehearsal. |
| Applications and redirect URIs | Every client, redirect URI, web origin and adapter-based application must be inventoried. Deprecated adapters may need replacement before the server move. | One-time for the inventory and cutover, recurring when new clients are onboarded. Ask for a client list reviewed against each application owner. |
| Reverse proxy and /auth path references | The Quarkus distribution no longer serves under /auth by default, so proxy rules, bookmarks, health checks, scripts and application callback URLs that include the old path must change together. | One-time. Ask for a search of proxy configs, monitoring checks and application settings for /auth references. |
| Deployment target (VMs or Kubernetes with the Operator) | On VMs, the change is mostly configuration files and service units. Moving to the Keycloak Operator means rebuilding configuration as custom resources, which adds build and review work. | One-time for the rebuild. Ask whether the Operator will be installed through OLM with manual approval mode and who owns future upgrades. |
| Depth of testing and approval | Login flows, token lifetimes, logout, federation and admin tasks need test cases. Change approval, security sign-off and evidence collection extend the schedule. | One-time for the cutover, with ongoing regression tests for later upgrades. Ask for the test plan, the acceptance criteria and who signs off each stage. |
What usually goes wrong in a WildFly to Quarkus migration
Most failed WildFly to Quarkus moves fail in the same few places: old paths, custom code, configuration that did not carry over, and database and operator changes made without a rollback plan. Each card below names one risk, why it hurts this specific migration, and the check that prevents it before cutover.
Stale /auth paths in clients and proxies
The Quarkus distribution serves Keycloak at the root context rather than under /auth, so redirect URIs, admin links, discovery URLs and reverse proxy rules that still point at /auth will break sign-in. Inventory every client, proxy route, health check and bookmark that references the old path, and update them in the same change window. Test the login and logout flow for each application against a staging copy before DNS or load balancer cutover.
Keycloak production guideCustom providers that fail to build
SPI providers, themes and event listeners packaged for WildFly modules will not load on Quarkus, which builds an optimized server at build time and rejects unknown or incompatible extensions. Each custom provider must be rebuilt against the target release, placed in the providers directory and compiled into the server with the build step. Plan a build failure as a normal outcome and assign an owner for each provider before the schedule is set.
Secrets masked in exports and lost on import
Realm exports mask client secrets, SMTP passwords and identity provider credentials, so an import into a new server can create clients or connections that authenticate with placeholder values. Before migration, record every secret from its source system or vault and confirm each one after import with a test login or connection check. Treat the export file as sensitive and keep it out of shared tickets and version control.
Cluster discovery settings not carried over
Settings such as JGroups stack, cache configuration and node discovery that were defined in the WildFly XML do not translate directly into Quarkus configuration, so nodes may start as isolated instances and split sessions. Map each clustering and cache setting to its Quarkus equivalent and confirm the nodes form one cluster in logs before routing user traffic. Document the chosen discovery method so the operations team can reproduce it.
Schema migration without a tested backup
Keycloak migrates the database schema automatically at startup by default, and that change cannot be undone by restarting the old server. Take a verified database backup, rehearse the upgrade on a copy of production data, and time the run. For large deployments, consider applying the SQL manually as the upgrading guide describes, so a database administrator reviews the statements before they run.
Keycloak upgrading guideOperator updates applied automatically
If the Keycloak Operator is installed for the new deployment with automatic approval, an operator update can change the Keycloak version without a planned change window. The Operator documentation strongly recommends manual approval mode to avoid unintended upgrades. Set the approval mode before the first deployment, pin the Keycloak image version, and require a reviewed pull request for every version change.
Operator installation docsQuestions teams ask before moving Keycloak from WildFly to Quarkus
How much does a WildFly to Quarkus migration cost?
The cost depends mainly on how much custom work sits around your Keycloak, and no fixed price applies to every installation. The main cost lines are discovery of your current configuration, rewriting the XML settings into the Quarkus configuration model, rebuilding and testing custom providers and themes, and the parallel run and cutover. Some of this is one-time work, while upgrades and ongoing support recur. Ask for a fixed-scope quote that lists each deliverable, the environments covered, who runs the cutover and what happens if testing finds provider defects. DeployOpen works from a written scope, and the quote follows from that scope.
How long does a Keycloak WildFly to Quarkus migration take?
The duration is driven by the number of environments, realms, clients, custom providers and themes, the size of your database and how much testing your login flows need. A single production environment with no custom provider code takes far less effort than a multi-realm estate with several custom authenticators. Parallel runs and the change window add time that teams often underestimate. No general duration applies, so ask for a timeline in the written scope and confirm version-specific steps in the Keycloak upgrading guide before you commit to dates.
What must our team provide before a migration starts?
The team needs to gather the inputs that define the work before any change is made. The useful list includes:
- The current Keycloak version and how it runs, including the standalone or domain XML configuration files
- Custom provider source code and built JARs, plus themes and any event listeners
- Full realm exports and a current database backup, with access to a copy for testing
- A list of clients, redirect URIs, reverse proxy rules and DNS records
- Test accounts for each login method, and a named owner who can approve the change window and rollback
Missing provider source code is the most common reason for delays, so check it early.
Can our internal team do the migration alone?
An internal team can do the migration if it has people who operate Keycloak, can build Java provider code and can run a realistic test environment. The configuration rewrite is rarely the hardest part. The larger risks are untested login flows, custom providers that behave differently after the rebuild and gaps in rollback planning. Ask yourself whether the team can staff testing and cutover without pulling people away from production duties. DeployOpen can take the full migration under a written scope, or support part of it, and can continue with a retainer for upgrades and testing afterward.
Do our users, realms and client settings survive the move?
In a distribution change, users, realms, clients and roles stay in the database, because the migration moves the server runtime rather than the data. Pointing the new server at the same database keeps those records, but you still need to confirm that your starting version is supported for the direct move in the upgrading guide. Keycloak migrates its database schema automatically at startup by default. Large deployments can apply the SQL manually, which the upgrading guide suggests, so decide which path you will use before the window opens. Take a full backup first and test the restore.
Do custom providers need rewriting for Quarkus?
Custom providers usually need to be rebuilt, and some need code changes. Service provider interface (SPI) implementations, custom authenticators, themes and event listeners packaged for the WildFly distribution must be built against the Quarkus distribution and its build step. Configuration that was once read from XML may now be set at build time or at runtime, so check each option. Also check whether a provider depends on an adapter or module that the new distribution does not load. Test every provider on the login, token and admin paths it touches, because a successful build does not prove that the behavior matches.
What happens to clients on the old /auth path?
Clients that were built against the old /auth path must be updated, because the Quarkus distribution does not serve Keycloak under that prefix by default. Check issuer URLs, discovery endpoints, redirect URIs, logout URLs, reverse proxy rules and any client library that hard-codes the path. Token issuer changes can also cause validation failures in APIs that pin the issuer. If you cannot change every client in one window, plan a temporary proxy mapping and retire it on a fixed date. Confirm the exact path and issuer settings for your target version in the Keycloak upgrading guide.
What DeployOpen delivers for this migration
DeployOpen agrees the written scope before work starts, and for a WildFly to Quarkus move that scope starts with an inventory. We list every realm, client, identity provider, user federation link, custom SPI provider, theme and standalone.xml or domain.xml setting in the current deployment, then map each item to its Quarkus equivalent: a keycloak.conf key, a build-time option passed to kc.sh build, or a runtime setting. Custom providers are rebuilt against the Quarkus distribution and tested in isolation, and themes are re-packaged and checked against the new template structure. You receive that inventory and mapping as a reviewable document, so your security and platform teams can sign off on each change before a single environment is touched.
DeployOpen then plans, implements and tests the migration inside your own infrastructure, whether that is your cloud accounts, data centers or air-gapped network. The work covers the rebuilt configuration, the reverse proxy rules that replace the old /auth context path with the root path your applications now call, updated redirect URIs and frontend URLs, and the new Keycloak Operator resources if you are moving to Kubernetes. A parallel run against a copy of production data checks login, token issuance, logout, admin console access and the metrics endpoint. Your team confirms which production database and cutover window apply, since those choices depend on your environment and are not part of the standard scope. DeployOpen supports the cutover, then documents the final state so your operators can run it.
After cutover, DeployOpen can continue to back up, upgrade and support the self-hosted Keycloak under a retainer, with the same scope and documentation discipline applied to each future release. Retainers are priced from the agreed scope, and the fixed-scope migration itself is quoted from the written statement of work. DeployOpen does not issue audit reports or certifications for the result. Ask the proposal to name every deliverable, the acceptance test for each one, and who holds responsibility for the production database and the reverse proxy, so that the boundary of the engagement is clear before the work starts.
How DeployOpen scopes and delivers the migration
DeployOpen plans, rebuilds and hands over the move from a pre-17 Keycloak on WildFly to the Quarkus distribution inside your own infrastructure. The work starts with an inventory of your XML configuration, custom providers and proxy setup, and ends with a documented, tested cutover.
How we scope
- Inventory every standalone XML setting, datasource, cache and subsystem override the current server depends on
- Identify custom SPI providers, themes and deprecated adapter use that must be rebuilt or replaced for Quarkus
- Agree in writing which hostnames, /auth path references and reverse proxy rules are in and out of scope
How we build
- Translate supported settings into Quarkus configuration, build options and environment variables, then test each change
- Rebuild custom providers against the current Keycloak APIs and verify them in a staging copy of your realms
- Stand up the target on your chosen platform, including the Keycloak Operator where you deploy on Kubernetes
How we hand over
- Deliver the rebuilt configuration, provider source, build pipeline and a runbook for the cutover and rollback steps
- Document the verification results for login, token issuance, logout, federation and admin access
- Walk your platform and security teams through the configuration so they can review it against their own standards
How we support
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts
- Ongoing support, upgrades and continuous testing are available as a retainer after handover
- Confirm with your team which change-control and approval steps apply before the cutover window is booked

