[Feature Request] Chart-native trusted CA certificates for private-CA image registries (create-from-image pulls)
Problem
cubemastercli template create-from-image pulls the source OCI image from inside a pod (CubeTemplateCenter native rootfs export, go-containerregistry). TLS verification uses the pod image's system CA bundle, so any registry serving a certificate signed by a private CA (self-hosted Harbor, offline test registries) fails:
pull image fail: ... https://registry.example.com/v2/:
tls: failed to verify certificate: x509: certificate signed by unknown authorityThere is no chart-native way to trust a private CA. We have seen two independent deployments hand-roll the same workaround — an init container merging the system CA bundle with a ConfigMap-held cert, exposed to the main container via SSL_CERT_FILE:
- Deployment A (chart 0.7.0): patch applied to the
cube-masterDeployment -> wiped on the nexthelm upgradebecause it is not part of the Helm manifest. - Deployment B (chart 0.7.1): patch applied to a local chart copy of
templatecenter.yaml.
Note: node-side kubelet/containerd pulls are unaffected because operators typically install the CA into the node trust store (/etc/containerd/certs.d/...); there is no equivalent inside the template center pod.
Proposal
An opt-in trustedCACerts values block:
- renders inline PEM certs into a chart-managed ConfigMap (
<release>-trusted-ca), or referencesexistingConfigMap; - injects a
merge-cainit container into CubeTemplateCenter that concatenates the image's system bundle (/etc/ssl/certs/ca-certificates.crt) with the ConfigMap certs into anemptyDir, exposed to the main container viaSSL_CERT_FILE(honored by Go'scrypto/x509); - default
enabled: false— zero rendered-output change unless enabled; - keeps TLS verification ON (adds trust; no
InsecureSkipVerify).
Happy to submit a PR implementing this.
Source: TencentCloud/CubeSandbox