Skip to content

clickhouse: expose new backup.endpointCA field from cozystack values schema #18

Open

Description

Upstream cozystack adds a new nested field to the ClickHouse app's values schema: backup.endpointCA ({name, key}), which points the clickhouse-backup sidecar at a Secret holding a PEM CA bundle so it can verify an S3 endpoint whose certificate is signed by a private CA (Cozystack's in-cluster SeaweedFS being the motivating case).

Upstream PR: cozystack/cozystack#3385

Because this provider hand-maintains a Terraform schema plus an expand/flatten pair per Kind — with no codegen from values.schema.json — the new field is not surfaced until it is added here. Per the upstream trigger map in docs/agents/contributing.md, "add, remove or rename a field in an app's values.schema.json" reaches the schema, the model, and the expand/flatten pair.

Scope for clickhouse:

  • add endpoint_ca (or the naming this provider prefers) as a nested block under backup, with name and key attributes;
  • key defaults to ca.crt upstream — note the provider restates defaults on Optional+Computed attributes and therefore sends its own default, so a stale or missing default silently wins over the API's;
  • extend the expand/flatten pair and the hand-vendored field-name copies in the tests.

Filing as an issue rather than a PR because the right moment is presumably alongside the next api/apps/v1alpha1 pin bump, which is a maintainer call rather than mine.

Activity

  1. lexfrei commented on Aug 7, 2026

    @lexfrei
    Collaborator

    The field isn't upstream yet — backup.endpointCA is added by cozystack/cozystack#3385, which is still open, so it's not in any released api-module tag (checked through v1.6.1) nor on main. I'll pick this up with the next api pin bump once that PR merges and ships in a release.

  2. lexfrei commented on Sep 21, 2026

    @lexfrei
    Collaborator

    Checked this against the pinned API: endpointCA exists on PostgreSQL in v1.6.3, but not on ClickHouse. The chart-side field this issue refers to has not reached a released api module yet, so there is nothing to model until it does.

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