Determining the Cloud Credential Operator mode
For platforms that support using the CCO in multiple modes, you can determine what mode the CCO is configured to use by using the web console or the CLI.
Determining the Cloud Credential Operator mode by using the web console
You can determine what mode the Cloud Credential Operator (CCO) is configured to use by using the web console.
Before you perform upgrades or troubleshoot, ensure you understand your cluster’s credential management configuration.
|
|
Only Amazon Web Services (AWS), global Microsoft Azure, and Google Cloud clusters support multiple CCO modes. |
-
You have access to an Red Hat OpenShift Container Platform account with cluster administrator permissions.
-
Log in to the Red Hat OpenShift Container Platform web console as a user with the
cluster-adminrole. -
Navigate to Administration → Cluster Settings.
-
On the Cluster Settings page, select the Configuration tab.
-
Under Configuration resource, select CloudCredential.
-
On the CloudCredential details page, select the YAML tab.
-
In the YAML block, check the value of
spec.credentialsMode. The following values are possible, though not all are supported on all platforms:-
'': The CCO is operating in the default mode. In this configuration, the CCO operates in mint or passthrough mode, depending on the credentials provided during installation. -
Mint: The CCO is operating in mint mode. -
Passthrough: The CCO is operating in passthrough mode. -
Manual: The CCO is operating in manual mode.
To determine the specific configuration of an AWS, Google Cloud, or global Microsoft Azure cluster that has a
spec.credentialsModeof'',Mint, orManual, you must investigate further.AWS and Google Cloud clusters support using mint mode with the root secret deleted.
An AWS, Google Cloud, or global Microsoft Azure cluster that uses manual mode might be configured to create and manage cloud credentials from outside of the cluster with AWS STS, Google Cloud Workload Identity, or Microsoft Entra Workload ID. You can determine whether your cluster uses this strategy by examining the cluster
Authenticationobject. -
-
AWS or Google Cloud clusters that use the default (
'') only: To determine whether the cluster is operating in mint or passthrough mode, inspect the annotations on the cluster root secret:-
Navigate to Workloads → Secrets and look for the root secret for your cloud provider.
Ensure that the Project dropdown is set to All Projects.
Platform Secret name AWS
aws-credsGoogle Cloud
gcp-credentials -
To view the CCO mode that the cluster is using, click
1 annotationunder Annotations, and check the value field. The following values are possible:-
Mint: The CCO is operating in mint mode. -
Passthrough: The CCO is operating in passthrough mode.
If your cluster uses mint mode, you can also determine whether the cluster is operating without the root secret.
-
-
-
AWS or Google Cloud clusters that use mint mode only: To determine whether the cluster is operating without the root secret, navigate to Workloads → Secrets and look for the root secret for your cloud provider.
Ensure that the Project dropdown is set to All Projects.
Platform Secret name AWS
aws-credsGoogle Cloud
gcp-credentials-
If you see one of these values, your cluster is using mint or passthrough mode with the root secret present.
-
If you do not see these values, your cluster is using the CCO in mint mode with the root secret removed.
-
-
AWS, Google Cloud, or global Microsoft Azure clusters that use manual mode only: To determine whether the cluster is configured to create and manage cloud credentials from outside of the cluster, you must check the cluster
Authenticationobject YAML values.-
Navigate to Administration → Cluster Settings.
-
On the Cluster Settings page, select the Configuration tab.
-
Under Configuration resource, select Authentication.
-
On the Authentication details page, select the YAML tab.
-
In the YAML block, check the value of the
.spec.serviceAccountIssuerparameter.-
A value that contains a URL that is associated with your cloud provider indicates that the CCO is using manual mode with short-term credentials for components. These clusters are configured using the
ccoctlutility to create and manage cloud credentials from outside of the cluster. -
An empty value (
'') indicates that the cluster is using the CCO in manual mode but was not configured using theccoctlutility.
-
-
Determining the Cloud Credential Operator mode by using the CLI
You can determine what mode the Cloud Credential Operator (CCO) is configured to use by using the CLI.
Before you perform upgrades or troubleshoot, ensure you understand your cluster’s credential management configuration.
|
|
Only Amazon Web Services (AWS), global Microsoft Azure, and Google Cloud clusters support multiple CCO modes. |
-
You have access to an Red Hat OpenShift Container Platform account with cluster administrator permissions.
-
You have installed the OpenShift CLI (
oc).
-
Log in to
ocon the cluster as a user with thecluster-adminrole. -
To determine the mode that the CCO is configured to use, enter the following command:
$ oc get cloudcredentials cluster \ -o=jsonpath={.spec.credentialsMode}The following output values are possible, though not all are supported on all platforms:
-
'': The CCO is operating in the default mode. In this configuration, the CCO operates in mint or passthrough mode, depending on the credentials provided during installation. -
Mint: The CCO is operating in mint mode. -
Passthrough: The CCO is operating in passthrough mode. -
Manual: The CCO is operating in manual mode.
To determine the specific configuration of an AWS, Google Cloud, or global Microsoft Azure cluster that has a
spec.credentialsModeof'',Mint, orManual, you must investigate further.AWS and Google Cloud clusters support using mint mode with the root secret deleted.
An AWS, Google Cloud, or global Microsoft Azure cluster that uses manual mode might be configured to create and manage cloud credentials from outside of the cluster with AWS STS, Google Cloud Workload Identity, or Microsoft Entra Workload ID. You can determine whether your cluster uses this strategy by examining the cluster
Authenticationobject. -
-
AWS or Google Cloud clusters that use the default (
'') only: To determine whether the cluster is operating in mint or passthrough mode, run the following command:$ oc get secret <secret_name> \ -n kube-system \ -o jsonpath \ --template '{ .metadata.annotations }'where
<secret_name>isaws-credsfor AWS orgcp-credentialsfor Google Cloud.This command displays the value of the
.metadata.annotationsparameter in the cluster root secret object. The following output values are possible:-
Mint: The CCO is operating in mint mode. -
Passthrough: The CCO is operating in passthrough mode.
If your cluster uses mint mode, you can also determine whether the cluster is operating without the root secret.
-
-
AWS or Google Cloud clusters that use mint mode only: To determine whether the cluster is operating without the root secret, run the following command:
$ oc get secret <secret_name> \ -n=kube-systemwhere
<secret_name>isaws-credsfor AWS orgcp-credentialsfor Google Cloud.If the root secret is present, the output of this command returns information about the secret. An error indicates that the root secret is not present on the cluster.
-
AWS, Google Cloud, or global Microsoft Azure clusters that use manual mode only: To determine whether the cluster is configured to create and manage cloud credentials from outside of the cluster, run the following command:
$ oc get authentication cluster \ -o jsonpath \ --template='{ .spec.serviceAccountIssuer }'This command displays the value of the
.spec.serviceAccountIssuerparameter in the clusterAuthenticationobject.-
An output of a URL that is associated with your cloud provider indicates that the CCO is using manual mode with short-term credentials for components. These clusters are configured using the
ccoctlutility to create and manage cloud credentials from outside of the cluster. -
An empty output indicates that the cluster is using the CCO in manual mode but was not configured using the
ccoctlutility.
-