Skip to content

Commit 30e7b9c

Browse files
authored
Merge pull request #28974 from jeana-redhat/CO-1159_delete_GCP_root_creds_post-install
HIVE-1159: Cloud Credentials Operator (CCO) support for deleting GCP root creds post-install
2 parents 85c9c8f + 6dc493b commit 30e7b9c

11 files changed

+349
-93
lines changed

installing/installing_aws/manually-creating-iam.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
include::modules/common-attributes.adoc[]
44
:context: manually-creating-iam-aws
55

6+
//TO-DO: this should be one file for AWS, Azure, and GCP with conditions for specifics.
7+
68
toc::[]
79

810
In environments where the cloud identity and access management (IAM) APIs are not reachable, or the administrator prefers not to store an administrator-level credential secret in the cluster `kube-system` namespace, you can put the Cloud Credential Operator (CCO) into manual mode before you install the cluster.
@@ -11,7 +13,10 @@ include::modules/alternatives-to-storing-admin-secrets-in-kube-system.adoc[level
1113

1214
.Additional resources
1315

14-
See xref:../../operators/operator-reference.adoc#cloud-credential-operator_red-hat-operators[Cloud Credential Operator] for a detailed description of all available CCO credential modes and their supported platforms.
16+
// Not supported in Azure. Condition out if combining topic for AWS/Azure/GCP.
17+
* To learn how to rotate or remove the administrator-level credential secret after installing {product-title}, see xref:../../post_installation_configuration/cluster-tasks.adoc#post-install-rotate-remove-cloud-creds[Rotating or removing cloud provider credentials].
18+
19+
* See xref:../../operators/operator-reference.adoc#cloud-credential-operator_red-hat-operators[Cloud Credential Operator] for a detailed description of all available CCO credential modes and their supported platforms.
1520

1621
include::modules/manually-create-identity-access-management.adoc[leveloffset=+1]
1722

installing/installing_azure/manually-creating-iam-azure.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,26 @@ include::modules/common-attributes.adoc[]
55

66
toc::[]
77

8+
In environments where the cloud identity and access management (IAM) APIs are not reachable, or the administrator prefers not to store an administrator-level credential secret in the cluster `kube-system` namespace, you can put the Cloud Credential Operator (CCO) into manual mode before you install the cluster.
9+
10+
include::modules/alternatives-to-storing-admin-secrets-in-kube-system.adoc[leveloffset=+1]
11+
12+
.Additional resources
13+
14+
* See xref:../../operators/operator-reference.adoc#cloud-credential-operator_red-hat-operators[Cloud Credential Operator] for a detailed description of all available CCO credential modes and their supported platforms.
15+
816
include::modules/manually-create-identity-access-management.adoc[leveloffset=+1]
917

1018
include::modules/admin-credentials-root-secret-formats.adoc[leveloffset=+1]
1119

1220
include::modules/manually-maintained-credentials-upgrade.adoc[leveloffset=+1]
1321

1422
include::modules/mint-mode.adoc[leveloffset=+1]
23+
24+
[id="manually-creating-iam-azure-next-steps"]
25+
== Next steps
26+
27+
* Install an {product-title} cluster:
28+
** xref:../../installing/installing_azure/installing-azure-default.adoc#installing-azure-default[Quickly install a cluster] with default options on installer-provisioned infrastructure
29+
** xref:../../installing/installing_azure/installing-azure-customizations.adoc#installing-azure-customizations[Install a cluster with cloud customizations on installer-provisioned infrastructure]
30+
** xref:../../installing/installing_azure/installing-azure-network-customizations.adoc#installing-azure-network-customizations[Install a cluster with network customizations on installer-provisioned infrastructure]

installing/installing_gcp/manually-creating-iam-gcp.adoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,30 @@ include::modules/common-attributes.adoc[]
55

66
toc::[]
77

8+
In environments where the cloud identity and access management (IAM) APIs are not reachable, or the administrator prefers not to store an administrator-level credential secret in the cluster `kube-system` namespace, you can put the Cloud Credential Operator (CCO) into manual mode before you install the cluster.
9+
10+
include::modules/alternatives-to-storing-admin-secrets-in-kube-system.adoc[leveloffset=+1]
11+
12+
.Additional resources
13+
14+
* To learn how to rotate or remove the administrator-level credential secret after installing {product-title}, see xref:../../post_installation_configuration/cluster-tasks.adoc#post-install-rotate-remove-cloud-creds[Rotating or removing cloud provider credentials].
15+
16+
* See xref:../../operators/operator-reference.adoc#cloud-credential-operator_red-hat-operators[Cloud Credential Operator] for a detailed description of all available CCO credential modes and their supported platforms.
17+
818
include::modules/manually-create-identity-access-management.adoc[leveloffset=+1]
919

1020
include::modules/admin-credentials-root-secret-formats.adoc[leveloffset=+1]
1121

1222
include::modules/manually-maintained-credentials-upgrade.adoc[leveloffset=+1]
1323

1424
include::modules/mint-mode.adoc[leveloffset=+1]
25+
26+
include::modules/mint-mode-with-removal-of-admin-credential.adoc[leveloffset=+1]
27+
28+
[id="manually-creating-iam-gcp-next-steps"]
29+
== Next steps
30+
31+
* Install an {product-title} cluster:
32+
** xref:../../installing/installing_gcp/installing-gcp-default.adoc#installing-gcp-default[Quickly install a cluster] with default options on installer-provisioned infrastructure
33+
** xref:../../installing/installing_gcp/installing-gcp-customizations.adoc#installing-gcp-customizations[Install a cluster with cloud customizations on installer-provisioned infrastructure]
34+
** xref:../../installing/installing_gcp/installing-gcp-network-customizations.adoc#installing-gcp-network-customizations[Install a cluster with network customizations on installer-provisioned infrastructure]
Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,44 @@
11
// Module included in the following assemblies:
22
//
3+
// * installing/installing_aws/manually-creating-iam.adoc
4+
// * installing/installing_azure/manually-creating-iam-azure.adoc
35
// * installing/installing_gcp/manually-creating-iam-gcp.adoc
46

7+
ifeval::["{context}" == "manually-creating-iam-aws"]
8+
:aws:
9+
endif::[]
10+
ifeval::["{context}" == "manually-creating-iam-azure"]
11+
:azure:
12+
endif::[]
13+
ifeval::["{context}" == "manually-creating-iam-gcp"]
14+
:google-cloud-platform:
15+
endif::[]
16+
517
[id="alternatives-to-storing-admin-secrets-in-kube-system.adoc_{context}"]
6-
= Alternatives to storing administrator-level secrets in the `kube-system` project
18+
= Alternatives to storing administrator-level secrets in the kube-system project
719

820
The Cloud Credential Operator (CCO) manages cloud provider credentials as Kubernetes custom resource definitions (CRDs). You can configure the CCO to suit the security requirements of your organization by setting different values for the `credentialsMode` parameter in the `install-config.yaml` file.
921

10-
If you prefer not to store an administrator-level credential secret in the cluster `kube-system` project, you can choose one of the following options when installing {product-title} on AWS:
22+
ifdef::aws,google-cloud-platform[]
23+
If you prefer not to store an administrator-level credential secret in the cluster `kube-system` project, you can choose one of the following options when installing {product-title}:
24+
25+
* *Manage cloud credentials manually*:
26+
+
27+
You can set the `credentialsMode` parameter for the CCO to `Manual` to manage cloud credentials manually. Using manual mode allows each cluster component to have only the permissions it requires, without storing an administrator-level credential in the cluster. You can also use this mode if your environment does not have connectivity to the cloud provider public IAM endpoint. However, you must manually reconcile permissions with new release images for every upgrade. You must also manually supply credentials for every component that requests them.
28+
29+
* *Remove the administrator-level credential secret after installing {product-title} with mint mode*:
30+
+
31+
If you are using the CCO with the `credentialsMode` parameter set to `Mint`, you can remove or rotate the administrator-level credential after installing {product-title}. Mint mode is the default configuration for the CCO. This option requires the presence of the administrator-level credential during an installation. The administrator-level credential is used during the installation to mint other credentials with some permissions granted. The original credential secret is not stored in the cluster permanently.
32+
33+
[NOTE]
34+
====
35+
Prior to a non z-stream upgrade, you must reinstate the credential secret with the administrator-level credential. If the credential is not present, the upgrade might be blocked.
36+
====
37+
38+
endif::aws,google-cloud-platform[]
1139

12-
* *Manage cloud credentials manually*. You can set the `credentialsMode` for the CCO to `Manual` to manage cloud credentials manually. Using manual mode allows each cluster component to have only the permissions it requires, without storing an administrator-level credential in the cluster. You can also use this mode if your environment does not have connectivity to the AWS public IAM endpoint. However, you must manually reconcile permissions with new release images for every upgrade. You must also manually supply credentials for every component that requests them.
40+
ifdef::azure[]
41+
If you prefer not to store an administrator-level credential secret in the cluster `kube-system` project, you can set the `credentialsMode` parameter for the CCO to `Manual` when installing {product-title} and manage your cloud credentials manually.
1342

14-
* *Remove the administrator-level credential secret after installing {product-title} with mint mode*. You can remove or rotate the administrator-level credential after installing {product-title} with the `Mint` CCO credentials mode applied. The `Mint` CCO credentials mode is the default. This option requires the presence of the administrator-level credential during an installation. The administrator-level credential is used during the installation to mint other credentials with some permissions granted. The original credential secret is not stored in the cluster permanently.
43+
Using manual mode allows each cluster component to have only the permissions it requires, without storing an administrator-level credential in the cluster. You can also use this mode if your environment does not have connectivity to the cloud provider public IAM endpoint. However, you must manually reconcile permissions with new release images for every upgrade. You must also manually supply credentials for every component that requests them.
44+
endif::azure[]

0 commit comments

Comments
 (0)