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 <kvapss@gmail.com>
This commit is contained in:
Andrei Kvapil committed 2026-11-26 10:52:32 +01:00
1 parent 6ed0541eb2
commit e6c32304b3
5 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -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-<name> kubernetes-<clusterName>-admin-kubeconfig -o go-template='{{ printf "%s\n" (index .data "admin.conf" | base64decode) }}' > admin.conf
kubectl get tenantsecret -n tenant-<name> kubernetes-<clusterName>-admin-kubeconfig -o go-template='{{ printf "%s\n" (index .data "admin.conf" | base64decode) }}' > admin.conf
```
There are several kubeconfig options available:
+2 -2
View File
@@ -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
+1 -1
View File
@@ -265,7 +265,7 @@ users:
maxUserConnections: 1000
```
Passwords cannot be set here — they (and the `root` account) are auto-generated and stored in the `<release>-credentials` Secret. Read a user's password with `kubectl get secret <release>-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 `<release>-credentials` Secret. Read a user's password with `kubectl get tenantsecret <release>-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
+1 -1
View File
@@ -76,7 +76,7 @@ kubectl --context <ctx> --namespace <tenant> \
--output jsonpath='{.data.ca\.crt}' | base64 --decode > ca.crt
kubectl --context <ctx> --namespace <tenant> \
get secret mongodb-<name>-credentials \
get tenantsecret mongodb-<name>-credentials \
--output jsonpath='{.data.uri}' | base64 --decode
```
+1 -1
View File
@@ -352,7 +352,7 @@ users:
replication: true
```
Passwords cannot be set here — they are auto-generated and stored in the `<release>-credentials` Secret. Read a user's password with `kubectl get secret <release>-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 `<release>-credentials` Secret. Read a user's password with `kubectl get tenantsecret <release>-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