-
Language:
English
-
Language:
English
Chapter 3. Managing Cluster Credentials
Perform tasks to manage authentication for Data Grid clusters.
Prerequisites
-
An
oc
client in your$PATH
.
3.1. Retrieving Cluster Credentials
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-secret
contains credentials for the management user. -
example-rhdg-app-generated-secret
contains 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
TipUse the
jp
JSON processor to retrieve credentials as follows:$ oc get secret example-rhdg-app-generated-secret \ -n my_namespace -o json | jq '.data | map_values(@base64d)' { "password": "tUElqbfoJmT,NJVN", "username": "developer" }