Trusting the object store CA in the storage service
Add the CA of the object store S3 gateway to the abs storage service trust bundle so that the storage leaves the Degraded state.
In this procedure, you add the CA of the object store S3 gateway to the trust bundle of the abs storage service. The abs service is written in Go and trusts only the CAs in the file named by SSL_CERT_FILE. If the CA of the object store gateway is missing, the storage ends in the Degraded state, and curl in the abs Pod reports ssl_verify=20.
You have administrator kubeconfig files for the Cloudera Cloud Factory console cluster and for the cluster that runs the object store.
If ssl_verify is 0, the CA is already trusted, and you stop. If it is 20, the CA is missing. Use the output of the first two commands to choose a case. In case A, the variable is empty and the service uses /etc/ssl/certs/ca-certificates.crt. In case B, SSL_CERT_FILE is /etc/ssl/certs/ccf-trust-bundle/ca.crt.
Back up the HelmRelease, and build the new bundle.
Patch the HelmRelease. For case B, send the complete values.volumes list with the trust volume pointing to the abs-trust-bundle ConfigMap, and send the unchanged values.volumeMounts.
For case A, append the volume {"name":"abs-trust-bundle","configMap":{"name":"abs-trust-bundle"}} to values.volumes, and the mount {"name":"abs-trust-bundle","mountPath":"/etc/ssl/certs/ca-certificates.crt","subPath":"ca-certificates.crt","readOnly":true} to values.volumeMounts.
Wait for the rollout.
kcc -n abs rollout status deploy/abs --timeout=300s
The result must be ssl_verify=0. An HTTP status of 403 without credentials is acceptable.
Register the storage service in the console.
The abs service trusts the object store CA, and the storage leaves the Degraded state.
Rolling back. Patch the original values.volumes and values.volumeMounts from abs-before.yaml, and wait for the rollout. Delete the ConfigMap abs-trust-bundle only after the rollout, and only if you created it.