Skip to Content
IAM
Installation
Upgrade GuidesUpgrading IAM to 1.7

Upgrading IAM to 1.7

IAM 1.7 changes how notification emails and the Keycloak login page are configured. These customizations predate 1.6, so the same migration applies when upgrading to 1.7 from any earlier release that uses them. Installations on a release earlier than 1.6 must also follow the earlier upgrade guides, such as Upgrading IAM from 1.5.x to 1.6.0. IAM 1.7 also makes refresh tokens single-use, which can affect clients without any customization.

  • Clients that refresh tokens themselves in the platform realm: update them before the upgrade so that they save the new refresh token after each refresh and never refresh the same token twice in parallel. See Single-use refresh tokens.
  • Custom email templates (a custom EmailTemplates ConfigMap; chart 1.7.0 and later): the templates are not migrated automatically. See Email templates.
  • Login page customizations (global.whitelabel, keycloak.themes.regnology, a custom keycloak.extraVolumeMounts list, or a login theme selected in the realm settings): see Login theme and whitelabeling. Every upgrade now sets the realm login theme, so a theme selected by hand in the realm settings is reset.
  • No email or login customizations: skip those migration steps. After the upgrade, check Step 7 — Verify and review Other changes.

Before the upgrade

  • Update clients in the platform realm that refresh tokens themselves (see Single-use refresh tokens).
  • List every realm that used a custom EmailTemplates ConfigMap, and save the content of that ConfigMap.
  • List the customized login values: global.whitelabel, keycloak.themes.regnology, a custom keycloak.extraVolumeMounts list, and login themes selected in the realm settings.
  • Prepare the values file changes from Step 1 — Remove obsolete Helm values and from the login theme migration checklist.
  • Take a Keycloak database backup (see Backup and Restore). helm rollback does not undo changes that IAM 1.7 stores in Keycloak. For example, the IAM 1.6 realm configuration does not set the refresh token options, so refresh tokens stay single-use after a rollback. A complete rollback can require restoring this backup together with the previous Helm release and values. Changes made in Keycloak after the backup are lost when it is restored.
  • Test the upgrade on a non-production environment. If the result is not correct, fix the values and run helm upgrade again.

After the upgrade


Single-use refresh tokens

This change can affect every installation, with or without customizations.

The platform realm sets revokeRefreshToken: true and refreshTokenMaxReuse: 0, so every refresh returns a new refresh token. Reusing a consumed refresh token ends that client session, and the browser signs in again. Clients in the platform realm that refresh tokens themselves must save the new refresh token after each refresh and must not refresh the same token in parallel. Such clients can be updated before the upgrade, because saving the new refresh token also works with IAM 1.6.


Email templates

Helm chart breaking changes

  • The EmailTemplates ConfigMap is removed. The chart no longer creates or mounts it. Remove the Helm values listed in Step 1 — Remove obsolete Helm values.
  • Bundled catalog replaces ConfigMap copy. After upgrade, subject and body text come from the embedded en-GB catalog unless you have imported locale overrides that include the emails.* keys for that realm.
  • Custom ConfigMap text is not migrated automatically. If you customized templates in a ConfigMap before 1.7, re-apply those strings as translation overrides (see below) or recipients will receive the catalog defaults.

Template mapping (ConfigMap → catalog keys)

Old ConfigMap template names map to dotted catalog keys under emails. Positional {0}…{3} placeholders become named {{tokens}}.

Old ConfigMap templateNew key prefixPlaceholder mapping
PermissionsAssignedemails.permissionsAssigned{0} → {{firstName}}, {1} → {{lastName}}, {2} → {{applicationName}}, {3} → {{permissions}}
PermissionsUnassignedemails.permissionsUnassignedsame as permissions assigned
UserJoinedGroupemails.userJoinedGroup{0} → {{firstName}}, {1} → {{lastName}}, {2} → {{applicationName}}, {3} → {{groupName}}
UserLeftGroupemails.userLeftGroupsame as user joined group

Each template has a .subject and .body leaf, for example:

  • emails.permissionsAssigned.subject
  • emails.permissionsAssigned.body

Subject lines typically have no placeholders. Bodies must keep the same set of {{tokens}} as the en-GB reference for that key; mismatching placeholders are rejected on import and ignored at resolve time.

Step 1 — Remove obsolete Helm values

Remove from every values file:

  • backend.emailTemplates.existingConfigmap, and the backend.emailTemplates block if it is then empty.
  • A custom email templates ConfigMap created outside the chart, if one exists.

Leftover keys are ignored by the chart. Remove them so it is clear they no longer have an effect.

This change affects only email templates. Whitelabel ConfigMaps (global.whitelabel.existingConfigmap) are still supported.

Step 2 — Migrate custom templates per realm

Repeat this for each realm that used a custom EmailTemplates ConfigMap, and for each locale that the ConfigMap contained (en-GB, de-DE, fr-FR, …). Overrides are stored on the Keycloak realm, so migrating one realm does not cover others that shared the old ConfigMap.

Caution

An import replaces all custom translations of the locale

An import stores only the entries in the imported file. Custom translations that are not in the file are deleted, including UI translations. A file that contains only emails.* keys deletes every other custom translation of that locale.

  1. Sign in as an IAM super admin, open Settings → Languages, select the locale, and download the custom translations (Download the custom translations). The file is named iam-translations.<locale>.custom.json.
  2. Add the emails.* entries to that file. Convert each customized subject and body to the new keys and named placeholders using the mapping table.
  3. Import the file. In the confirmation dialog, check that the number of removed customizations is 0, then confirm.
  4. In a test realm, assign a permission to a test user whose locale attribute is set to the migrated language. Check the subject, the body, and the language of the email, and that every {{token}} is replaced.

If someone changes the translations of the locale between the download and the import, the import is rejected. Download the file again and repeat the steps.

The import is also available as PUT /Translations/admin/{locale} (IAM super admin only). The request has the same effect: it replaces all custom translations of the locale.

Step 3 — Default behaviour

Realms that never customized the ConfigMap need no migration. After the upgrade they receive the bundled en-GB catalog text, layered with any existing locale overrides that already contain emails.* keys. The order in which the email language is chosen is described in IAM: Email Notifications — Language Selection.

Keycloak theme emails (registration, password reset, forgot password) are unchanged by this migration; they remain outside the shared catalog.


Login theme and whitelabeling

IAM 1.7 replaces the login theme regnology-base (React-based) with the new theme regnology-plain, built on the Keycloak keycloak.v2 theme (PatternFly 5). The login themes regnology and whitelabel now extend regnology-plain.

Warning

The realm login theme is set on every upgrade

From IAM 1.7, every helm install and helm upgrade sets the login theme of the realm: whitelabel when global.whitelabel.enabled is true, otherwise the value of keycloak.spiThemeDefault (default regnology). A login theme selected by hand in the Keycloak realm settings is reset. This affects every installation, not only ones with custom CSS.

An installation with global.whitelabel.enabled: false and the whitelabel theme selected by hand shows the default login page after the upgrade. To keep the branded login page, set global.whitelabel.enabled: true. This also turns on whitelabeling of the IAM web application.

What stays the same

  • The global.whitelabel values enabled, json, css, and favicon.pngB64.
  • The keycloak.themes.regnology.css value. Installations that do not override keycloak.themes.regnology.themeProperties get the new default.
  • The look of the login page for installations without customizations.

Installations that use only these values and the CSS variables listed in CSS Variables for the Login Page, and that do not select the login theme in the realm settings or define their own keycloak.extraVolumeMounts list, need no changes.

What changed

AreaBefore 1.7IAM 1.7
Realm login themeSet only when whitelabeling was enabled; a theme picked by hand in the realm settings was otherwise keptSet on every helm install and helm upgrade: whitelabel when global.whitelabel.enabled is true, otherwise keycloak.spiThemeDefault (default regnology)
Login page textsPartly set with CSS variables (--oru-login-*)Set only in global.whitelabel.json
info.markdown in the whitelabel JSONSupportedIgnored; use info.content and info.link
Theme file pathslogin/resources/dist/whitelabel.css, login/resources/dist/favicon-32x32.pnglogin/resources/css/whitelabel.css, login/resources/img/favicon.png
Page structure (for custom CSS rules)Keycloakify DOMPatternFly 5 (keycloak.v2); dark color scheme uses .pf-v5-theme-dark

Migration checklist

Step 1 — Fix theme overrides that use regnology-base

If keycloak.themes.regnology.themeProperties was copied from the old default and contains parent=regnology-base, the custom CSS from keycloak.themes.regnology.css is no longer applied. Change the parent or remove the override.

Before:

values.yaml
keycloak: themes: regnology: themeProperties: | parent=regnology-base

After:

values.yaml
keycloak: themes: regnology: themeProperties: | parent=regnology-plain

Step 2 — Update a custom keycloak.extraVolumeMounts list

This step applies only to a values file that defines its own keycloak.extraVolumeMounts list. Helm replaces lists instead of merging them, so such a list still mounts the files at the old paths. Update the paths:

Old mountPathNew mountPath
/opt/keycloak/themes/whitelabel/login/resources/dist/whitelabel.css/opt/keycloak/themes/whitelabel/login/resources/css/whitelabel.css
/opt/keycloak/themes/whitelabel/login/resources/dist/favicon-32x32.png/opt/keycloak/themes/whitelabel/login/resources/img/favicon.png
/opt/keycloak/themes/regnology/login/resources/dist/whitelabel.css/opt/keycloak/themes/regnology/login/resources/css/whitelabel.css

The new default list in IAM 1.7:

values.yaml
keycloak: extraVolumeMounts: - name: whitelabel-theme mountPath: "/opt/keycloak/themes/whitelabel/login/theme.properties" subPath: "theme.properties" readOnly: true - name: whitelabel-config mountPath: "/opt/keycloak/themes/whitelabel/login/resources/css/whitelabel.css" subPath: "whitelabel.css" readOnly: true - name: favicon-config mountPath: "/opt/keycloak/themes/whitelabel/login/resources/img/favicon.png" subPath: "favicon.png" readOnly: true - name: regnology-theme mountPath: "/opt/keycloak/themes/regnology/login/theme.properties" subPath: "theme.properties" readOnly: true - name: regnology-theme mountPath: "/opt/keycloak/themes/regnology/login/resources/css/whitelabel.css" subPath: "whitelabel.css" readOnly: true

Step 3 — Replace info.markdown in the whitelabel JSON

login.info.markdown is ignored. Move the text to login.info.content (plain text) and the link to login.info.link.

Before:

"info": { "markdown": "Read our [latest news](https://mycompany.com/news)." }

After:

"info": { "content": "Read our latest news.", "link": { "href": "https://mycompany.com/news", "label": "Latest news" } }

Step 4 — Move login texts from CSS to JSON

The login page no longer reads text and link variables from the whitelabel CSS. Remove them from global.whitelabel.css and set the matching JSON field in global.whitelabel.json:

Old CSS variableNew JSON field
--oru-login-support-emaillogin.supportEmail
--oru-login-support-phonelogin.supportPhone
--oru-login-support-websitelogin.supportWebsite
--oru-login-info-badgelogin.info.badge
--oru-login-info-title, --oru-login-info-subtitle, --oru-login-info-news-infologin.info.content: one plain-text field. The title and the subtitle are no longer separate, so the text usually has to be rewritten.
--oru-login-info-read-more-linklogin.info.link.href
--oru-login-info-readmore-textlogin.info.link.label
--oru-login-news-mode: 'info'login.info.mode: "info" (hides the badge)

These variables have no replacement on the login page and can be removed: --oru-login-welcome, --oru-login-forgot-password-link, --oru-login-info-readmore-color, and --oru-startup-footer-theme.

Warning

The information panel cannot be hidden

The new login page always shows the information panel next to the login form. --oru-login-news-mode: 'none' has no equivalent.

The old login page also read the text color variables --oru-primary-button-color, --oru-primary-button-hover-color, --oru-brand-text-color, --oru-brand-text-color-inverted, and --oru-brand-text-color-inverted-hover. The new login page ignores them, but the IAM web application still uses them (see CSS Variables for the IAM Web Application). Keep them in global.whitelabel.css if they are set.

Warning

The JSON replaces the defaults as a whole

global.whitelabel.json replaces the default JSON as a whole. Fields that are not set are not taken from the default. When global.whitelabel.json is set for the first time, include every field that should be shown, for example the footer texts.

Example: a 1.6 configuration with the support email in CSS

values.yaml (IAM 1.6)
global: whitelabel: enabled: true css: | :root { --oru-brand-primary: #012D3F; --oru-login-support-email: 'support@mycompany.com'; }

becomes in 1.7:

values.yaml (IAM 1.7)
global: whitelabel: enabled: true css: | :root { --oru-brand-primary: #012D3F; } # footer is set because this JSON replaces the defaults as a whole json: | { "login": { "supportEmail": "support@mycompany.com" }, "footer": { "companyName": "My Company" } }

Step 5 — Review custom CSS rules

CSS variables listed in CSS Variables for the Login Page keep working. Custom CSS rules with selectors written for the old login page do not match the new page and must be rewritten for PatternFly 5 classes (for example .pf-v5-c-login__main, .pf-v5-c-button.pf-m-primary). Rules for the dark color scheme use .pf-v5-theme-dark. See Custom CSS rules.

Step 6 — Select the login theme in values.yaml

This step applies only to installations where the login theme was selected in the Keycloak realm settings. Set the theme with global.whitelabel.enabled or keycloak.spiThemeDefault instead (see The realm login theme is set on every upgrade).

Step 7 — Verify

After helm upgrade, check:

  • in the Keycloak admin console, Realm settings → Themes: the login theme is whitelabel, or the value of keycloak.spiThemeDefault,
  • on the login page: logo, colors, and background image,
  • on the login page: information panel text and link, support contact block, and copyright line,
  • the favicon,
  • the login page in a dark color scheme, if used,
  • in the IAM web application: logo, primary button, and top navigation colors.

See IAM: Whitelabeling for all options.


Other changes

None of these changes needs a values change.

  • Registration endpoint closed on the IAM host. Requests to /api/messaging through the IAM Ingress or Gateway API return 403. Registration through Platform API keeps working, because it delivers messages to the IAM API service inside the cluster (platform-api.api.messaging.subscriptionsUrl). Callers that use the IAM host must switch to Platform API.
  • Registration skips shared clients. Registration no longer modifies system clients, the API service account, or a client already linked to another module, and assigns no roles to them. A module that registers with such a client gets no new roles from registration.
  • Role limits on module client registration. Limits on the IAM roles that a module client receives at registration are opt-in and off by default. See Module client registration roles.