Skip to content

substrate chart: no way to mount a database CA certificate on ate-api-server #125

Open

Description

@Rachael-Graham

The substrate chart has no way to mount a CA certificate on ate-api-server. Because of this gap, Agent Substrate cannot connect with sslmode=verify-full to an external PostgreSQL instance whose server certificate is signed by a private CA, such as Amazon RDS.

Evidence

  • charts/substrate/values.yaml has no volumes, volumeMounts, or CA value for ateApi (checked at chart 1.0.0-rc1 and on main).
  • templates/ate-api-server.yaml mounts only chart-defined volumes. The Postgres client-certificate volume carries no trust bundle.
  • The bundled install works only because its connection string points sslrootcert at the already-mounted servicedns trust bundle: sslrootcert=/run/servicedns.podcert.ate.dev/trust-bundle.pem.
  • pgx reads sslrootcert as a file path, so the CA must exist on disk in the pod. sslrootcert=system works only for a publicly trusted CA, and the RDS CA is not in the image's system roots.
  • The kagent chart already supports this through controller.volumes/controller.volumeMounts.

Docs impact

kagent-dev/website#687 documents the kagent side and states that Agent Substrate cannot verify a private CA in this release. A REVIEW comment on that page waits for this issue.

Open question

Should the fix be generic ateApi.volumes/ateApi.volumeMounts (matching the kagent chart), or a dedicated value such as postgres.caCertificateSecretRef that mounts the CA and documents a fixed sslrootcert path?

Activity

  1. VISHNU0906 commented on Nov 9, 2026

    @VISHNU0906

    Hi @Rachael-Graham, I'd like to take this if no one else is on it. My plan is generic ateApi.volumes and ateApi.volumeMounts (default empty) appended to the chart-defined ones in ate-api-server.yaml, matching controller.volumes/controller.volumeMounts in the kagent chart, plus a values comment and a doc example for mounting an RDS CA and pointing sslrootcert at it. Helm template tests would cover the empty default and a mounted Secret. If maintainers would rather have a dedicated postgres.caCertificateSecretRef, I can do that instead. Could someone assign it to me if this works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions