From e6c32304b33ebca0278603dba955357e3d417eed Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Mon, 23 Nov 2026 22:29:38 +0100 Subject: [PATCH] docs(apps): read credentials through tenantsecrets The postgres, mariadb, mongodb and kubernetes docs, and the kubernetes release notes, told tenants to read their credentials and kubeconfigs with kubectl get secret. That worked only through the per-chart dashboard Roles, which no longer exist. Point them at tenantsecret, which serves the same data for every Secret the ApplicationDefinition includes, as the redis and rabbitmq docs already do. Assisted-by: LLM Signed-off-by: Andrei Kvapil --- packages/apps/kubernetes/README.md | 2 +- packages/apps/kubernetes/templates/NOTES.txt | 4 ++-- packages/apps/mariadb/README.md | 2 +- packages/apps/mongodb/README.md | 2 +- packages/apps/postgres/README.md | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/apps/kubernetes/README.md b/packages/apps/kubernetes/README.md index 300f42855..a5c3dcc27 100644 --- a/packages/apps/kubernetes/README.md +++ b/packages/apps/kubernetes/README.md @@ -33,7 +33,7 @@ It can be done via UI or a `kubectl` request: - Run the following command (using the management cluster kubeconfig): ```bash - kubectl get secret -n tenant- kubernetes--admin-kubeconfig -o go-template='{{ printf "%s\n" (index .data "admin.conf" | base64decode) }}' > admin.conf + kubectl get tenantsecret -n tenant- kubernetes--admin-kubeconfig -o go-template='{{ printf "%s\n" (index .data "admin.conf" | base64decode) }}' > admin.conf ``` There are several kubeconfig options available: diff --git a/packages/apps/kubernetes/templates/NOTES.txt b/packages/apps/kubernetes/templates/NOTES.txt index e78d90cae..6ddc2a058 100644 --- a/packages/apps/kubernetes/templates/NOTES.txt +++ b/packages/apps/kubernetes/templates/NOTES.txt @@ -1,6 +1,6 @@ To get the static admin kubeconfig (break-glass) for this cluster: - kubectl get secret -n {{ .Release.Namespace }} {{ .Release.Name }}-admin-kubeconfig -o go-template='{{`{{ printf "%s\n" (index .data "super-admin.conf" | base64decode) }}`}}' + kubectl get tenantsecret -n {{ .Release.Namespace }} {{ .Release.Name }}-admin-kubeconfig -o go-template='{{`{{ printf "%s\n" (index .data "super-admin.conf" | base64decode) }}`}}' {{- if ne .Values.oidc.mode "None" }} @@ -10,7 +10,7 @@ OIDC is enabled for this cluster (spec.oidc.mode={{ .Values.oidc.mode }}). Per-user kubeconfig wired to `kubectl oidc-login` (one-shot install of the plugin is a prerequisite — `kubectl krew install oidc-login`): - kubectl get secret -n {{ .Release.Namespace }} {{ .Release.Name }}-oidc-kubeconfig -o jsonpath='{.data.kubeconfig}' | base64 -d > {{ .Release.Name }}.kubeconfig + kubectl get tenantsecret -n {{ .Release.Namespace }} {{ .Release.Name }}-oidc-kubeconfig -o jsonpath='{.data.kubeconfig}' | base64 -d > {{ .Release.Name }}.kubeconfig kubectl --kubeconfig {{ .Release.Name }}.kubeconfig get pods --all-namespaces The first command writes the OIDC-ready kubeconfig to disk; the diff --git a/packages/apps/mariadb/README.md b/packages/apps/mariadb/README.md index 1ff195d95..98fff28c1 100644 --- a/packages/apps/mariadb/README.md +++ b/packages/apps/mariadb/README.md @@ -265,7 +265,7 @@ users: maxUserConnections: 1000 ``` -Passwords cannot be set here — they (and the `root` account) are auto-generated and stored in the `-credentials` Secret. Read a user's password with `kubectl get secret -credentials -o json | jq -r '.data["user1"]' | base64 -d` (a username may contain a `.`, which `jsonpath` would treat as a path step and return nothing). +Passwords cannot be set here — they (and the `root` account) are auto-generated and stored in the `-credentials` Secret. Read a user's password with `kubectl get tenantsecret -credentials -o json | jq -r '.data["user1"]' | base64 -d` (a username may contain a `.`, which `jsonpath` would treat as a path step and return nothing). ### databases diff --git a/packages/apps/mongodb/README.md b/packages/apps/mongodb/README.md index 044dafded..7790b3b75 100644 --- a/packages/apps/mongodb/README.md +++ b/packages/apps/mongodb/README.md @@ -76,7 +76,7 @@ kubectl --context --namespace \ --output jsonpath='{.data.ca\.crt}' | base64 --decode > ca.crt kubectl --context --namespace \ - get secret mongodb--credentials \ + get tenantsecret mongodb--credentials \ --output jsonpath='{.data.uri}' | base64 --decode ``` diff --git a/packages/apps/postgres/README.md b/packages/apps/postgres/README.md index ab34d1a91..2a7536b6c 100644 --- a/packages/apps/postgres/README.md +++ b/packages/apps/postgres/README.md @@ -352,7 +352,7 @@ users: replication: true ``` -Passwords cannot be set here — they are auto-generated and stored in the `-credentials` Secret. Read a user's password with `kubectl get secret -credentials -o json | jq -r '.data["user1"]' | base64 -d` (a username may contain a `.`, which `jsonpath` would treat as a path step and return nothing). +Passwords cannot be set here — they are auto-generated and stored in the `-credentials` Secret. Read a user's password with `kubectl get tenantsecret -credentials -o json | jq -r '.data["user1"]' | base64 -d` (a username may contain a `.`, which `jsonpath` would treat as a path step and return nothing). ### databases