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
EmailTemplatesConfigMap; chart1.7.0and later): the templates are not migrated automatically. See Email templates. - Login page customizations (
global.whitelabel,keycloak.themes.regnology, a customkeycloak.extraVolumeMountslist, 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
EmailTemplatesConfigMap, and save the content of that ConfigMap. - List the customized login values:
global.whitelabel,keycloak.themes.regnology, a customkeycloak.extraVolumeMountslist, 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 rollbackdoes 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 upgradeagain.
After the upgrade
- Sign in as an IAM super admin and import the email template overrides (Step 2 — Migrate custom templates per realm).
- Check the login page and the IAM web application (Step 7 — Verify).
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
EmailTemplatesConfigMap 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 template | New key prefix | Placeholder mapping |
|---|---|---|
PermissionsAssigned | emails. | {0} → {{firstName}}, {1} → {{lastName}}, {2} → {{applicationName}}, {3} → {{permissions}} |
PermissionsUnassigned | emails. | same as permissions assigned |
UserJoinedGroup | emails. | {0} → {{firstName}}, {1} → {{lastName}}, {2} → {{applicationName}}, {3} → {{groupName}} |
UserLeftGroup | emails. | same as user joined group |
Each template has a .subject and .body leaf, for example:
emails.permissionsAssigned.subjectemails.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 thebackend.emailTemplatesblock 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.
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.
- 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. - Add the
emails.*entries to that file. Convert each customized subject and body to the new keys and named placeholders using the mapping table. - Import the file. In the confirmation dialog, check that the number of removed customizations is
0, then confirm. - In a test realm, assign a permission to a test user whose
localeattribute 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.
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.whitelabelvaluesenabled,json,css, andfavicon.pngB64. - The
keycloak.themes.regnology.cssvalue. Installations that do not overridekeycloak.themes.regnology.themePropertiesget 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
| Area | Before 1.7 | IAM 1.7 |
|---|---|---|
| Realm login theme | Set only when whitelabeling was enabled; a theme picked by hand in the realm settings was otherwise kept | Set on every helm install and helm upgrade: whitelabel when global. is true, otherwise keycloak. (default regnology) |
| Login page texts | Partly set with CSS variables (--oru-login-*) | Set only in global. |
info. in the whitelabel JSON | Supported | Ignored; use info. and info. |
| Theme file paths | login/, login/ | login/, login/ |
| Page structure (for custom CSS rules) | Keycloakify DOM | PatternFly 5 (keycloak.); dark color scheme uses . |
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:
keycloak:
themes:
regnology:
themeProperties: |
parent=regnology-baseAfter:
keycloak:
themes:
regnology:
themeProperties: |
parent=regnology-plainStep 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 mountPath | New mountPath |
|---|---|
/ | / |
/ | / |
/ | / |
The new default list in IAM 1.7:
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: trueStep 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 variable | New JSON field |
|---|---|
--oru-login-support-email | login. |
--oru-login-support-phone | login. |
--oru-login-support-website | login. |
--oru-login-info-badge | login. |
--oru-login-info-title, --oru-login-info-subtitle, --oru-login-info-news-info | login.: 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-link | login. |
--oru-login-info-readmore-text | login. |
--oru-login-news-mode: 'info' | login. (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.
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.
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
global:
whitelabel:
enabled: true
css: |
:root {
--oru-brand-primary: #012D3F;
--oru-login-support-email: 'support@mycompany.com';
}becomes in 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 ofkeycloak.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/messagingthrough the IAM Ingress or Gateway API return403. 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.
Related
- IAM: Email Notifications — triggers, catalog keys, and day-to-day customization
- IAM Helm Chart Configuration — SMTP and remaining Helm parameters
- IAM: Whitelabeling — login page and IAM web application branding