Skip to content
Migrate

Migrate self-hosted Keycloak to managed hosting

Move the realms you run on your own Keycloak, on Red Hat Single Sign-On or on the Red Hat build of Keycloak to upstream Keycloak on a dedicated cluster. Realms move by export and import, the way Keycloak supports, and users keep their passwords.

Vendor facts checked on · Sources

Point here to play
Your Keycloak today
RealmsClientsRoles and groupsIdentity providersUsers with password hashesRealm keysActive sessions
Dry run on a staging copy
RealmsClientsRoles and groupsIdentity providersUsers with password hashesRealm keysYou test with a real client
Your RealmDeploy cluster
RealmsClientsRoles and groupsIdentity providersUsers with password hashesRealm keysThen you switch DNS
The short answer

A full export from Keycloak’s command line holds the realm, its clients and secrets, roles, groups, identity providers, users with their password hashes, and the realm keys. Imported into the same Keycloak version or a newer one, users keep their passwords and tokens keep validating. Custom extensions and themes are the part that does not move.

What moves

What moves from your own Keycloak or Red Hat SSO, and what does not

Re-created means we build it again in your realm from your inventory; it does not come out of an export.

WhatIn the moveHow
Realms and their settingsMovesFrom a full command-line export.
Users and attributesMovesWith the user profile configuration.
PasswordsMovesPBKDF2 and Argon2 hashes verify as they are.
TOTP credentialsMovesOTP credentials are part of the user export.
Clients and their secretsMovesRedirect URIs, scopes and mappers included.
Roles and groupsMovesWith their mappings.
Identity providers and linked accountsMovesUsers stay linked to their social accounts.
Realm keysMovesTokens keep validating if the hostname stays the same.
Custom extensions, providers and themesDoes not moveClusters run the stock image; anything custom is replaced or removed first.
The master realmDoes not moveYour cluster has its own.
Active sessionsDoes not moveEveryone signs in once after the switch.
Branded sign-in pagesDoes not moveClusters run Keycloak’s own themes. Custom themes are not supported yet.
Passwords

Users keep their passwords

Keycloak’s command-line export writes each user with their credentials. Keycloak and Red Hat SSO hash passwords with PBKDF2 by default, and newer Keycloak versions with Argon2; both are hash providers every Keycloak ships, so the hashes verify as they are.

Users sign in once after the switch, because sessions do not move. If you added a custom hash provider of your own, tell us first: clusters run the stock image, so those users would set a new password by email link.

Getting the data out

The export

  1. Keycloak 17 and newer, and the Red Hat build: bin/kc.sh export --dir <dir> --users realm_file --realm <realm>, with the server stopped.
  2. Red Hat SSO 7.x: start the server once with -Dkeycloak.migration.action=export, the provider, the file and the realm name.
  3. The admin console’s partial export leaves users out and masks secrets, so it is not enough.

Treat the export as a secret: keep it encrypted, never send it by email or chat, and delete every copy when the move is done.

The plan

Moving from your own Keycloak or Red Hat SSO, step by step

  1. 1

    Export

    Export each realm from the command line, with users, from a stopped server or a copy of the database, so the export does not race live sign-ins. Do not export master. The file holds hashes, secrets and keys: it travels encrypted, never by email or chat.

  2. 2

    Map

    Compare your version with ours: a realm imports into the same version or a newer one. List custom extensions and themes and replace them with built-in features, and list outside connections such as SMTP and LDAP.

  3. 3

    Dry run on a staging copy

    Import into a staging copy. Sign in with an existing user and their password through a real client, and check identity providers, roles and token claims.

  4. 4

    Tell your users

    Tell users they sign in once again after the switch. Their passwords stay the same.

  5. 5

    Cut over

    Lower the DNS TTL a day ahead, freeze changes, export again and import, then point your hostname at the cluster. Changes made after the export do not come across.

  6. 6

    Keep a way back

    Rolling back is pointing DNS back at your old Keycloak. Changes made on the cluster after the switch stay behind.

How long it takes

It depends, and on what

We do not give a length without seeing what you run. These are the things that set it.

  • How far your version is from ours, and whether Red Hat SSO 7.x needs a step through a newer version first
  • Which custom extensions or themes must be replaced before the move
  • How large the export is, which sets the import window
  • How many applications sign users in, and how many redirect URIs and token claims each needs
  • How many social and enterprise identity providers you use, and how quickly each approves a new redirect URI
  • How much notice your users need before the switch
  • How many people on your side test the dry run, and when
Who does the work

What each plan includes for a move

Support is in writing, through the dashboard and the contact form. There are no calls and no demos.

Starter

You move, with our tools and guides

We
  • Your cluster, ready before you import
  • Free converters, a readiness checklist and email templates
  • A guide for your source in the docs
  • Answers in writing, first response the next business day
You
  • Export from your current system
  • Convert and import into a second realm as a dry run (Starter has two)
  • Write to your users and switch your apps
Premium and Enterprise

We do the move with you, in the plan’s service hours

We
  • Plan the move with you from your inventory
  • Convert users and re-create clients and identity providers
  • Import into a staging copy and fix what the dry run finds
  • Import into your cluster at cut-over and watch the first hours
  • Uses the plan’s 10 service hours a month
You
  • Export from your current system and hand it over encrypted
  • Test the dry run with your own apps
  • Send the emails to your users and switch your apps
Custom

Very large moves, scoped with you

We
  • Many realms, very many users, or a long period with both systems running
  • Scope, sizing and price agreed in writing
You
  • Tell us what you run through the contact form

Prices and the service hours each plan includes are on the pricing page. A move larger than the plan’s hours is scoped with you as Custom.

Questions

About moving from your own Keycloak or Red Hat SSO

Do my users have to reset their passwords?

No. Password hashes move with the users, so the same passwords keep working. Users sign in once after the switch, because sessions do not move.

Can you move Red Hat Single Sign-On 7.x?

Yes. Its export has the same realm format. We check the version gap in the dry run, because a realm imports into the same version or a newer one.

What about the Red Hat build of Keycloak?

It exports with the same kc.sh command as upstream Keycloak, so the move is the same.

Can I bring custom extensions or themes?

Not yet. Clusters run the stock Keycloak image, so anything custom is replaced or removed before the move.

Will tokens issued before the move still validate?

Yes, while they last, if the hostname stays the same: the realm keys move with the realm.

How long does a move from my own Keycloak take?

It depends on the version gap, custom extensions and the size of the export. We do not give a number without seeing what you run.

Who does the work?

On Premium and Enterprise we do the move with you, within the plan’s 10 service hours a month. On Starter you export and import with our guides, and ask us in writing.

Sources

Where the facts on this page come from

Read on 25 November 2026. Vendors change their products: if one of these has, tell us through the contact form and we will correct this page.

  1. Keycloak: Importing and exporting realms
  2. Keycloak: Server administration guide, password hashing
  3. Red Hat SSO 7.6: Importing and exporting the database

Ready to move?

Order a cluster, or write to us first about what you run today.