Skip to main content
On-premisesGitHub EnterpriseGitLabBitbucket
Use this guide when a Git provider, identity provider (IdP), or directly contacted external AI endpoint uses a private certificate authority (CA). Covered Qodo applications need that CA to verify its HTTPS certificate. This configures outbound application trust. Your ingress certificate and browser or workstation trust are separate. For more information, see Network and security considerations. Qodo trusts your CA in addition to the public CAs already in the images. You give Qodo only your private CA certificates. You do not give it public root certificates.
This guide applies to the Qodo on-premises Helm chart that includes the custom-ca-cert Secret. If your values file still sets global.caBundle, read Migrate from global.caBundle first.

How it works

You create one optional Kubernetes Secret named custom-ca-cert. Each key in the Secret holds one CA certificate file. When a pod starts, an init container named ca-builder does these steps:
  1. It copies the trust store of the image (/etc/ssl/certs/ca-certificates.crt) to a temporary volume.
  2. It then adds every certificate from the Secret to that copy.
  3. The application container mounts the merged file in place of the original.
The chart sets the SSL_CERT_FILE, REQUESTS_CA_BUNDLE, and GIT_SSL_CAINFO variables to the merged file. Python and Git then use it. If the Secret does not exist, the pod starts and uses the trust store of the image without changes.

What the chart covers

The chart adds ca-builder to these deployments when they are enabled:
  • qodo-engine-indexer
  • qodo-engine-pr-kn-consumer
  • qodo-engine-retriever
  • qodo-git
  • qodo-git-event-consumer
  • qodo-gitway
  • qodo-litegit
  • qodo-platform
  • qodo-pr-agent-agentic
  • qodo-agent-runtime-qar
  • qodo-user-to-allowed-repos-consumer
  • qodo-zitadel
It also runs in the qodo-sync-installations CronJob. The onboarding release CronJob (qodo-platform-release-onboarding-candidates) needs a prepared CA bundle for its certificate-file mount. Some earlier packages omit its ca-builder initializer. If its Pod reports a mount error for custom-ca-bundle at /etc/ssl/certs/ca-certificates.crt, contact Qodo for help. Include your package version and the error text. A package without this initializer needs a corrected chart. The chart does not cover these workloads:
  • The analytics and health-probe sidecar containers in qodo-git.
  • The bundled AI gateway, also called the LLM gateway (qodo-litellm, Helm key litellm).
The qodo-litellm AI gateway Pod does not read this Secret. If its upstream endpoint uses a private CA, contact Qodo for a supported gateway trust configuration.

Prerequisites

Complete these steps before installing or upgrading the Helm chart. Your Kubernetes credentials must permit Secret updates and Qodo Deployment restarts in the release namespace. Verification also needs Pod logs and exec access.

Prepare the certificate files

Each file must be in PEM format. A PEM file is text. It starts with -----BEGIN CERTIFICATE-----.
Use PEM certificates. DER files are not supported and can invalidate the merged trust bundle. Do not include private keys or a server TLS key pair.
1

Check the PEM header

Check that the first line of each file is the PEM header.
The output must be -----BEGIN CERTIFICATE-----.
2

Check that the file is a valid certificate

If the check fails, confirm the file format and contents. Convert it only if you have a DER certificate.
3

Convert DER to PEM

If the file is DER, convert it to PEM.
A .crt or .cer file can be PEM or DER. Always do step 1 or step 2 to check.

Create the Secret

1

Select the namespace

Set the namespace used by your Qodo release. Use this value in all following commands.
If this namespace does not exist, create it before creating the Secret.
2

Create the Secret from your CA files

Choose one example. Both create the same Secret and preserve its manifest for later updates.
Each key holds PEM CA certificate material. Supply only your private CA certificates; public roots remain in the images.If GitOps or External Secrets Operator manages this Secret, update that source instead. For more information, see GitOps and external secrets.

Install or upgrade

Run your normal helm upgrade --install command. You do not set a Helm value for this feature. The chart finds the Secret by name. If your pods already use this chart and you create the Secret later, restart them before verification. Existing pods keep their startup bundle. For more information, see Add or rotate certificates.

Verify the setup

1

Read the init container log

Read the init container log of a pod.
The log shows one line for each certificate:
If the Secret is not present, the log shows No custom certs found, using system bundle only.
2

Check the Secret keys

Confirm that the Secret exists in the release namespace and contains the intended certificate files.
This displays key names and sizes without displaying the certificate contents.
3

Make an HTTPS call to your private endpoint

The qodo-platform image includes python3.
Replace https://git.example.com with your private endpoint. An HTTP response, including 401 or 403, confirms that TLS verification completed. Authentication or authorization may still be required. Certificate, DNS, and timeout failures remain errors.

Add or rotate certificates

Kubernetes can refresh mounted Secret files, but ca-builder creates a separate trust bundle only at pod startup. Restart Qodo Deployments after updating the Secret. For more information, see Using Secrets as files from a Pod.
1

Update the Secret

Update the listed certificate keys. Include every CA file you intend to retain. If a controller manages the Secret, update its source instead.
2

Remove retired CA keys, if applicable

First confirm that your endpoints no longer require the old CA. Inspect the Secret keys with kubectl describe secret.Applying a manifest does not remove keys that were created outside its apply history. For a manually managed Secret, remove any obsolete key explicitly.
Replace old-ca.pem with an existing retired key. Remove obsolete certificate blocks from retained PEM files too.
3

Select the installed Qodo instance

Read the instance label from your installed Deployment. This also handles GitOps-managed instance labels.
Confirm that the list contains your intended Qodo Deployments before restarting them.
4

Restart the Deployments

5

Wait for the rollout

The next qodo-sync-installations Pod reads the updated Secret at startup. An active sync Job does not need a restart when you add a CA. New onboarding release Pods (qodo-platform-release-onboarding-candidates) read the Secret at startup when their package includes ca-builder. Running Pods keep their startup CA bundle.

Handle a running repository sync

A sync Job that is already running keeps the certificates it had at startup. Wait for it to finish. This is the safe choice.
1

List the sync Jobs

2

Wait for the active Job to complete

Select the qodo-sync-installations- Job with a nonzero ACTIVE count. If there is no active Job, continue.
Do not delete a running sync Job unless you must. Installations that the Job claimed stay in the IN_PROGRESS state. The platform releases them only after a stale-claim reset of about 4 hours. Until then, those installations do not sync.
When you add a CA, the running Job does not need a restart. When you retire a CA, a running Job still trusts it until it ends. Wait for the Job to finish if you can.

Migrate from global.caBundle

Earlier chart versions used global.caBundle. It held a full PEM bundle in your values file and replaced the trust store. The chart no longer reads this key. If your values file still sets global.caBundle, Helm stops with an error that tells you to migrate. This is by design. It prevents a silent loss of trust.
1

Select the release namespace

Set the namespace of your existing Qodo release.
2
Copy your private CA certificate into a PEM file. Your old bundle held public roots and your CA. Take only your CA.
3

Create the Secret

4
Delete global.caBundle from every values file, overlay, or Helm parameter. Remove the key even if its value is empty.
5
Run helm upgrade --install again.
If you set global.ingress.caBundle, delete it too. The chart ignores this key.

GitOps and external secrets

The chart does not create the custom-ca-cert Secret. Create it outside the chart.
  • Argo CD or Flux: Apply the Secret from your own source of truth, or create it with kubectl. Do not put the certificates in the chart values.
  • External Secrets Operator: Make the ExternalSecret create a Secret named custom-ca-cert in the release namespace. Each key must hold one PEM certificate.
Reconcile the Secret, then rebuild the startup trust bundle through your deployment workflow. For a manual procedure, see Add or rotate certificates.

Configure pod security settings for OpenShift

No OpenShift-specific setting is required for this feature. Set global.podSecurityContext as your cluster requires. The ca-builder init container uses the same pod settings as the application container. For more information, see Deploy Qodo using Helm.

Troubleshooting

1

Select the affected Pod

2

Read the init container log

3

Read the pod events

For Permission denied, inspect the volume mounts and cluster-approved pod security settings. Do not assume a fixed UID or fsGroup is required. On OpenShift, use IDs permitted by the namespace security policy.
Check these causes in order:
  1. The file is DER and not PEM. Do the checks in Prepare the certificate files.
  2. The Secret is in the wrong namespace. The Secret and the release must be in the same namespace.
  3. The pods did not restart. Follow Add or rotate certificates to select and restart your installed instance.
  4. The Secret does not hold the full chain. Add the intermediate certificates as extra keys.
  5. The call comes from a workload that the chart does not cover, such as the qodo-git sidecar containers or the bundled LLM gateway.
Check every values file, overlay, and --set parameter. If you use --reuse-values, stored release values can restore the removed key. Supply the complete current base and customer values when migrating, while preserving existing Secret references.