Setting the idle session timeout
Upgrade to IBM Software Hub Version 5.1 before IBM Cloud Pak for Data Version 4.8 reaches end of support. For more information, see Upgrading from IBM Cloud Pak for Data Version 4.8 to IBM Software Hub Version 5.1.
You can adjust the idle session timeout for IBM Cloud Pak for Data in accordance with your security and compliance requirements. If a user leaves their session idle in a web browser for the specified length of time, the user is automatically logged out of the web client.
- Who needs to complete this task?
-
To complete this task, you must have one of the following roles on the Red Hat® OpenShift® Container Platform cluster:
- Cluster administrator
- Instance administrator
- When do you need to complete this task?
-
Complete this task only if you want to override the default idle session timeout for an instance of IBM Cloud Pak for Data.
Repeat as needed If you have multiple instances of Cloud Pak for Data, repeat this task for each instance where you want to override the default behavior.
About this task
By default, Cloud Pak for Data logs users out after 12
hours. You can edit the Cloud Pak for Data
product-configmap to adjust:
| Setting | Parameter name | Description |
|---|---|---|
| The length of time until a user's session expires | TOKEN_EXPIRY_TIME |
The default is 12 hours.
When the user leaves their session idle for the specified length of time, the user is automatically logged out of the web client. It is recommended that you set the value between 0.1 and 1. |
| The length of time until an administrator's session expires | ADMIN_TOKEN_EXPIRY_TIME |
By default, the TOKEN_EXPIRY_TIME setting applies to all users. You can
optionally set Users with the Administer platform
permission have elevated permissions on the platform. You can use the
For example, set:
|
| The length of time that a user has to refresh their session | TOKEN_REFRESH_PERIOD |
The default is 12 hours. If you set It is recommended that you set the value between 1 and 24. If you
don't want to allow users to extend their sessions, set the value of the
|
| The length of time that an administrator has to refresh their session | ADMIN_TOKEN_REFRESH_PERIOD |
By default, the TOKEN_REFRESH_PERIOD setting applies to all users.You
can optionally set the Users with the Administer platform
permission have elevated permissions on the platform. You can use the
|
Use the following examples to understand how these settings work:
- Sample configuration 1
- In this configuration, the same settings are applied to all users.
TOKEN_EXPIRY_TIME: "0.5" TOKEN_REFRESH_PERIOD: "2"If a user starts work at 8 AM and logs in to the web client, the user must be active in the web session within 30 minutes for their token to be refreshed:- If the user stops using the web client at 8:10 and attempts to use the web client again until 8:41, the user must re-authenticate to the web client because their session expired.
- If the user remains active in their session and their token refreshes at 9:59 AM, their session will last until 10:29 AM. However, when the session expires at 10:29, the user must re-authenticate to the web client because the token refresh period expired.
- Sample configuration 2
- In this configuration, more restrictive settings are applied to users with the
Administer platform
permission.
TOKEN_EXPIRY_TIME: "0.5" ADMIN_TOKEN_EXPIRY_TIME: "0.25" TOKEN_REFRESH_PERIOD: "2" ADMIN_TOKEN_REFRESH_PERIOD: "0.1"If a user without the Administer platform permission starts work at 8 AM and logs in to the web client, the user must be active in the web session within 30 minutes for their token to be refreshed:- If the user stops using the web client at 8:10 and attempts to use the web client again until 8:41, the user must re-authenticate to the web client because their session expired.
- If the user remains active in their session and their token refreshes at 9:59 AM, their session will last until 10:29 AM. However, when the session expires at 10:29, the user must re-authenticate to the web client because the token refresh period expired.
If another user with the Administer platform permission starts work at 8 AM and logs in to the web client, the user's session will automatically expire a 8:15 AM, even if the user is active in the web client.