이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 2. Install plugins from OCI registries by using custom certificates
In RHDH, you can install OCI plugins stored in an internal OCI artifact registry served over HTTPS with customer CA certificates, for example:
Example configuration in dynamic-plugins.yaml file
Prerequisites
You have a corporate CA bundle or a set of custom container-registry TLS certificates that the system should trust.
NoteYou can create a CA bundle from a set of CA certificates manually, by concatenating them into a single file, as follows:
# Concatenate CA certificates cat registry.crt intermediate.crt corporate-root.crt > ca-bundle.crt # Validate openssl verify -CAfile ca-bundle.crt registry.crt
# Concatenate CA certificates cat registry.crt intermediate.crt corporate-root.crt > ca-bundle.crt # Validate openssl verify -CAfile ca-bundle.crt registry.crtCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.1. Installing plugins from OCI plugins by using per-registry TLS configuration 링크 복사링크가 클립보드에 복사되었습니다!
Procedure
Create a ConfigMap from the CA certificate in the namespace where you are deploying your RHDH instance:
oc create configmap registry-ca-crt --from-file=ca.crt
oc create configmap registry-ca-crt --from-file=ca.crtCopy to Clipboard Copied! Toggle word wrap Toggle overflow Mount the CA certificate ConfigMap into your RHDH configuration:
For a Helm chart installation, update your Helm chart configuration file, as follows:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For Operator-based installations, update your Backstage Custom Resource (CR), as follows:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
2.2. Installing plugins from OCI plugins by mounting the CA bundle 링크 복사링크가 클립보드에 복사되었습니다!
Procedure
Create a ConfigMap from the CA bundle in the namespace where you are deploying your RHDH instance:
oc create configmap registry-ca-bundle --from-file=ca-bundle.crt
oc create configmap registry-ca-bundle --from-file=ca-bundle.crtCopy to Clipboard Copied! Toggle word wrap Toggle overflow Mount the CA bundle ConfigMap into your RHDH configuration
For a Helm chart installation, update your Helm chart configuration file, as follows:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For Operator-based installations, update your Backstage Custom Resource (CR), as follows:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
2.3. Installing plugins from OCI plugins in OpenShift 링크 복사링크가 클립보드에 복사되었습니다!
Prerequisites
- Your cluster administrator must add the trusted corporate CA bundle to the cluster-wide configuration. For more information, see Security and compliance in the OpenShift Container Platform documentation.
Procedure
Create an empty ConfigMap in the namespace where you are deploying your RHDH instance. You must add the
config.openshift.io/inject-trusted-cabundlelabel to your ConfigMap, as follows:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Wait for the trusted CA bundle to be injected into the ConfigMap. You can verify with the following command:
oc get cm trusted-ca
oc get cm trusted-caCopy to Clipboard Copied! Toggle word wrap Toggle overflow You should see a block of certificates under the
ca-bundle.crtkey.Mount the ConfigMap into the
/etc/pki/ca-trust/extracted/pempath of the RHDH init container.For a Helm chart installation, update your Helm chart configuration file, as follows:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For Operator-based installations, update your Backstage Custom Resource (CR), as follows:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow