title | type | weight |
---|---|---|
Upgrading Versions |
docs |
3 |
This doc contains important information for upgrading uds-identity-config versions. It is not meant to be an exhaustive list of changes between versions, rather information and steps required to manually upgrade versions without a full redeploy of keycloak.
Upgrade Details
- An custom Keycloak event logger that replaces the default event logger is included in this release, if you wish to enable manually as part of an upgrade do the following (in the
Unicorn Delivery Service
realm):- Click on the
Realm Settings
>Events
and addjsonlog-event-listener
. - Remove the built in
jboss-logging
event listener. - Click
Save
- Click on the
- The custom registration event listener was renamed from
custom-registration-listener
toregistration-event-listener
. To manually update this event listener (in theUnicorn Delivery Service
realm):- Click on the
Realm Settings
>Events
and addregistration-event-listener
. - Remove
custom-registration-listener
. - Click
Save
- Click on the
- An additional scope (
bare-groups
) was included in the uds realm.json. To add this scope manually do the following (in theUnicorn Delivery Service
realm):- Click on
Client Scopes
>Create client scope
. - Name the scope
bare-groups
, and configure it to be to be- Type:
Optional
- Include in token scope:
On
- Type:
- Click
Save
- Click
Mappers
>Create a new mapper
- Select
Custom Group Path Mapper
and name itbare groups
- To enable this scope to be added as a
defaultClientScope
for your clients, navigate to the top levelClients
>Client registration
tab.- Click
Allowed Client Scopes
- Add
bare-groups
to the list ofAllowed Client Scopes
- Click
Save
- Click
- Click on
Upgrade Details
This version upgrade utilizes built in Keycloak functionality for User Managed Attributes.
{{% alert-note %}} User managed attributes are only available in Keycloak 24+ {{% /alert-note %}}
If upgrading without a full redeploy of keycloak the following changes will be needed:
- The
realm.json
will need to be updated to contain the correct User Managed Attributes definition, User Managed Attributes Configuration. The following steps can be used to do this with clickops:- In
Realm Settings
tab and on theGeneral
page- toggle off
User-managed access
Unmanaged Attributes
set toOnly administrators can write
- toggle off
- On
User profile
page- select the
JSON Editor
tab - Copy and Paste the value of the User Attribute Definition from the realm.json
Save
- select the
- In
- Incorporate STIG password rules, in accordance with these two hardening guides:
- Elasticsearch 8.0 Application Server
- Elasticsearch 8.0 Central Log Server
- Changes:
- Passwords expire in 60 days
- Passwords complexity: 2 special characters, 1 digit, 1 lowercase, 1 uppercase, and 15 character minimum length
- IDP session idle timeout is now 10 minutes
- Maximum login attempts is now 3
Upgrade Details
This version upgrade brings in a new Authentication Flow for group authorization.If upgrading without a full redeploy of keycloak the following steps will be necessary to create and use group authorization:
- In keycloak admin portal, in
UDS
realm, navigate toAuthentication
sidebar tab - In
Authentication
tab add theAuthorization
flow toUDS Authentication
,UDS Registration
,UDS Reset Credentials
- In each
Authentication
flowAdd step
->UDS Operator Group Authentication Validation
- Make sure that the step is at the base level and bottom of the Authentication flow
- In each
- Finally if using
SAML
IDP- In the
Authentication
tabCreate Flow
Name
->Authorization
Description
->UDS Operator Group Authentication Validation
Basic Flow
Create
Add execution
Add
theUDS Operator Group Authentication Validation
- In the
Identity Providers
tab, select theSAML
Provider- Add the
Authorization
flow to thePost login flow
in theAdvanced settings
section
- Add the
- In the