Set up offline token authentication
Use Red Hat Single Sign-On (SSO) with a service account to authenticate automation to OpenShift Cluster Manager.
Before you begin Copy linkLink copied!
- You have a service account with a client ID and client secret. For more information about creating and managing service accounts, see Creating and Managing Service Accounts.
About this task Copy linkLink copied!
Use this method when automation needs to access OpenShift Cluster Manager without a user. This doesn’t apply to logging in to the OpenShift Cluster Manager console or to the CLI. Common examples of automation that need access to OpenShift Cluster Manager include Terraform configurations, CI/CD pipelines, scripts that call OpenShift Cluster Manager APIs, and scheduled jobs that interact with OpenShift Cluster Manager.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
- Run a script or automation workflow that authenticates to OpenShift Cluster Manager.
- Confirm that the automation runs successfully without user interaction.
Offline tokens and automation Copy linkLink copied!
The new secure method of authenticating using Red Hat Single Sign-On will not break any existing automations that rely on offline tokens.
To use offline tokens for automation or other purposes, you can download the OpenShift Cluster Manager API Token page, linked in Additional resources. You can also use service accounts, linked in Additional resources, for automation purposes.
Revoke OpenShift Cluster Manager API tokens Copy linkLink copied!
You can revoke offline tokens if you no longer need them or if you've reached the token limit.