Skip to content

fix(chart): quote secret values #250

Closed

Description

@uniqueg

Problem

The chart's Secret template for the FTP credentials renders ftp.username and ftp.password, and the one for the OIDC client renders auth.clientId and auth.clientSecret (also via their old keys auth.client_id and auth.client_secret), into stringData without quoting them. As a result:

  • A value containing # (comment) or : (mapping) produces invalid or wrong YAML, so the release fails to render or the secret holds a truncated value.
  • A numeric value (e.g., a numeric client ID) is rendered as a YAML number, and Kubernetes rejects a number in stringData.

The other Secret and ConfigMap templates (S3 files, netrc, service info) don't render values directly and are not affected.

Expected

Every value is rendered as a string, whatever it contains. Values that render correctly today render identically.

Plan

  • Add chart tests with #, : and numeric values (new and old keys).
  • Quote the values in the templates.
  • Note the behaviour in the configuration reference.

Activity

  1. added
    priority: medium
    status: in progress
    type: bug
    workload: hours
    on Nov 7, 2026
  2. added
    type: delivery
    and removed
    status: in progress
    on Nov 7, 2026
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

    priority: mediumtype: bugtype: deliveryworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions