-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
4.16, 4.17, 4.18, 4.19, 4.20, 4.21
-
None
-
Quality / Stability / Reliability
-
False
-
-
None
-
Critical
-
None
-
None
-
Proposed
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
This is a clone of issue OCPBUGS-63546. The following is the description of the original issue:
—
This is a clone of issue OCPBUGS-63541. The following is the description of the original issue:
—
Description of problem:
The ccoctl aws commands always generate a new keypair when the private key file does not exist in the output dir. This forces the user to get the private key from the cluster when performing day-2 ccoctl operations. The private key is only needed for pre-install processes where there is no public key to be obtained from the cluster. And, we want to avoid forcing the user to download the private key as that poses security concerns.
Version-Release number of selected component (if applicable):
4.20
How reproducible:
Always
Steps to Reproduce:
1. Install an AWS cluster.
2. Follow the process[1] to enable token based authentication
3. 10.4.3 Step 2.ii - ./ccoctl aws create-identity-provider
[1] https://docs.redhat.com/en/documentation/openshift_container_platform/4.20/html/postinstallation_configuration/changing-cloud-credentials-configuration#post-install-enable-token-auth_changing-cloud-credentials-configuration
Actual results:
$ ccoctl aws create-all --output-dir "${CLUSTER_NAME}" \
--name "${CLUSTER_NAME}" \
--region "${CLUSTER_LOCATION}" \
--credentials-requests-dir "${CLUSTER_NAME}/creds/aws"
2025/10/24 12:43:38 Generating RSA keypair
2025/10/24 12:43:39 Writing private key to jstueversts3186/serviceaccount-signer.private
2025/10/24 12:43:39 Writing public key to jstueversts3186/serviceaccount-signer.public
Expected results:
$ ccoctl aws create-all --output-dir "${CLUSTER_NAME}" \
--name "${CLUSTER_NAME}" \
--region "${CLUSTER_LOCATION}" \
--credentials-requests-dir "${CLUSTER_NAME}/creds/aws"
2025/10/24 13:01:05 Using existing RSA keypair found at jstueversts3186/serviceaccount-signer.public
Additional info:
- blocks
-
OCPBUGS-63548 ccoctl aws always generates new keys when the private key file is missing
-
- New
-
- clones
-
OCPBUGS-63546 ccoctl aws always generates new keys when the private key file is missing
-
- POST
-
- is blocked by
-
OCPBUGS-63546 ccoctl aws always generates new keys when the private key file is missing
-
- POST
-
- is cloned by
-
OCPBUGS-63548 ccoctl aws always generates new keys when the private key file is missing
-
- New
-
- links to