Repository navigation
Reload user passwords from a Secret without restarting ClickHouse - #2100
Open
alex-zaitsev wants to merge 8 commits into
Open
alex-zaitsev wants to merge 8 commits into
alex-zaitsev wants to merge 8 commits into
Conversation
valueFrom.hotReload publishes those users in a CHI-owned Secret mounted beside chop-generated-users.xml, so a later password change is picked up from users.d instead of a Pod recreate. Co-authored-by: Cursor <cursoragent@cursor.com>
The plan is stored on chi-storage-{chi} and is gone once the namespace is deleted.
Co-authored-by: Cursor <cursoragent@cursor.com>
alex-zaitsev
force-pushed
the
hot-reload-user-passwords
branch
from
October 15, 2026 13:41
e15e67c to
88ff4ca
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
valueFrom.hotReload: truefor ClickHouse userpassword,password_sha256_hex, andpassword_double_sha1_hexfields to support password rotation from Kubernetes Secrets without restarting Pods.chop-generated-hot-reload-users.xmlinside the CHI-owned Secretchi-<chi>-users. Other users remain in the existing users ConfigMap. Both files are projected intousers.dwithoutsubPath, allowing ClickHouse to reload updated credentials.from_envbehavior whenhotReloadis omitted. Enabling hot reload requires a one-time Pod rollout; subsequent password rotations do not.hotReloadon unsupported fields, including settings, profiles, quotas, files, and Keeper configuration. Automatic Secret-change detection supports references declared directly in the CHI; template-inherited references require manual reconciliation.Resolves #2092.
Test plan
test_010011_6: verify password rotation on both replicas, rejection of previous passwords, unchanged passwords for users withouthotReload, and no Pod restarts.