Chapter 3. Managing Cluster Credentials
Perform tasks to manage authentication for Data Grid clusters.
Prerequisites
-
An
occlient in your$PATH.
3.1. Retrieving Cluster Credentials Copy linkLink copied to clipboard!
You can retrieve credentials for your Data Grid clusters as base64-encoded strings from secrets in your cluster namespace.
If you do not create secrets and credentials when you create clusters, the Data Grid Operator automatically generates them with the following defaults:
- Default usernames
-
Management user is
admin. -
Application user is
developer.
-
Management user is
- Default credentials secrets
-
example-rhdg-mgmt-generated-secretcontains credentials for the management user. -
example-rhdg-app-generated-secretcontains credentials for the application user.
-
Procedure
Get the credentials from the secret. For example, to get the password for the application user from the default secret:
oc get secret example-rhdg-app-generated-secret \ -n my_namespace -o jsonpath="{.data.password}" | base64 --decode$ oc get secret example-rhdg-app-generated-secret \ -n my_namespace -o jsonpath="{.data.password}" | base64 --decodeCopy to Clipboard Copied! Toggle word wrap Toggle overflow TipUse the
jpJSON processor to retrieve credentials as follows:Copy to Clipboard Copied! Toggle word wrap Toggle overflow