Skip to content

Commit 73136cb

Browse files
committed
Update ECK documentation for rotating credentials.
Signed-off-by: Michael Montgomery <[email protected]>
1 parent f2b151d commit 73136cb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

deploy-manage/users-roles/cluster-or-deployment-auth/managed-credentials-eck.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,17 @@ If you are using the `elastic` user credentials in your own applications, they w
6666
To regenerate all auto-generated credentials in a namespace, run the following command:
6767

6868
```sh
69-
kubectl delete secret -l eck.k8s.elastic.co/credentials=true
69+
kubectl delete secret -l eck.k8s.elastic.co/credentials=true,common.k8s.elastic.co/type!=kibana
7070
```
7171

7272
::::{warning}
7373
This command regenerates auto-generated credentials of **all** {{stack}} applications in the namespace.
7474
::::
7575

76+
:::{note}
77+
Previous documentation suggested deleting all secrets with the label `eck.k8s.elastic.co/credentials=true`, which included the Kibana secret that contained encryption keys. Deletion of the Kibana config secret is not recommended.
78+
:::
79+
7680
## Creating custom users
7781

7882
{{eck}} provides functionality to facilitate custom user creation through various authentication realms. You can create users using the native realm, file realm, or external authentication methods.
@@ -99,4 +103,4 @@ For more information, refer to [External authentication](/deploy-manage/users-ro
99103

100104
ECK facilitates file-based role management through Kubernetes secrets containing the roles specification. Alternatively, you can use the Role management API or the Role management UI in {{kib}}.
101105

102-
Refer to [Managing custom roles](/deploy-manage/users-roles/cluster-or-deployment-auth/defining-roles.md#managing-custom-roles) for details and ECK based examples.
106+
Refer to [Managing custom roles](/deploy-manage/users-roles/cluster-or-deployment-auth/defining-roles.md#managing-custom-roles) for details and ECK based examples.

0 commit comments

Comments
 (0)