Skip to content

opensearch: per-user Secret names collide across releases because the username is a free key #4116

Open

Description

Describe the bug
packages/apps/opensearch/templates/users.yaml renders one Secret per user as {{ .Release.Name }}-user-{{ }}, and users in values.schema.json is an object with additionalProperties and no key pattern, so the tail of the Secret name is a free string the tenant chooses. Application x with a user named http-server and application x-user with TLS enabled both write opensearch-x-user-http-server.

The dot-separated suffixes from #2682 do not cover this family: that argument rests on application names being DNS-1035 labels, and a user key is not one; it may even contain a dot.

Environment

To Reproduce

  1. helm template x packages/apps/opensearch --set 'users.http-server.roles={admin}' and helm template x-user packages/apps/opensearch --set tls.enabled=true --set external=true into one namespace
  2. opensearch-x-user-http-server is in both outputs

Expected behaviour
No Secret name of one release can be produced by another release of the same chart.

Actual behaviour
Two releases write the same object.

Additional context
Closing it needs a pattern on the user key, which is a breaking schema change and out of scope for #2682; that PR states the residual risk in the header of templates/certmanager.yaml. Same family as #4065.

Checklist

  • I have checked the documentation
  • I have searched for similar issues
  • I have included all required information
  • I have provided clear steps to reproduce
  • I have included relevant logs

Activity

  1. added
    kind/bugCategorizes issue or PR as related to a bug
    area/databaseIssues or PRs related to managed databases (postgres, mariadb, redis, etcd, kafka, clickhouse)
    on Sep 7, 2026
  2. added
    triage/acceptedIndicates an issue is ready to be actively worked on
    priority/backlogGeneral backlog priority. Lower than priority/important-longterm
    and removed
    triage/needs-triageIndicates an issue needs triage by a maintainer
    on Sep 23, 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

    area/databaseIssues or PRs related to managed databases (postgres, mariadb, redis, etcd, kafka, clickhouse)kind/bugCategorizes issue or PR as related to a bugpriority/backlogGeneral backlog priority. Lower than priority/important-longtermtriage/acceptedIndicates an issue is ready to be actively worked on

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions