Skip to content

fix: render auth checksum as annotation#128

Open
beckcl wants to merge 2 commits into
valkey-io:mainfrom
beckcl:cb-add-secret-checksum
Open

fix: render auth checksum as annotation#128
beckcl wants to merge 2 commits into
valkey-io:mainfrom
beckcl:cb-add-secret-checksum

Conversation

@beckcl

@beckcl beckcl commented Jan 23, 2026

Copy link
Copy Markdown

Currently changes to the auth secret do not result in a fresh rollout of the Valkey Pods.

We can fix this by rendering an annotation with the secret checksum to the Deployment/StatefulSet similar to what is already being done for ConfigMaps.

This is a common pattern in Helm: https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments

@beckcl beckcl force-pushed the cb-add-secret-checksum branch from 7431c47 to 591a3eb Compare January 23, 2026 13:34
@beckcl beckcl marked this pull request as draft January 23, 2026 13:53
Add a checksum of the auth secret to the Deployment/Statefulset
to ensure a new rollout of Valkey if the auth secret changed.

This follows the existing pattern for the init and regular
valkey configuration.

Signed-off-by: Clemens Beck <mail@beckcl.dev>
@beckcl beckcl force-pushed the cb-add-secret-checksum branch from 591a3eb to 349f174 Compare January 23, 2026 14:07
@beckcl beckcl marked this pull request as ready for review January 23, 2026 14:07

@sgissi sgissi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, it makes sense. A few comments below.

Comment thread valkey/templates/deploy_valkey.yaml
Comment thread valkey/templates/deploy_valkey.yaml Outdated
Comment thread valkey/templates/deploy_valkey.yaml Outdated
Comment thread valkey/templates/statefulset.yaml Outdated
Comment thread valkey/templates/statefulset.yaml Outdated
Comment thread valkey/templates/statefulset.yaml Outdated
Signed-off-by: Clemens Beck <mail@beckcl.dev>
@beckcl beckcl force-pushed the cb-add-secret-checksum branch from 19b0aee to 1e86cc2 Compare January 25, 2026 10:41
@beckcl

beckcl commented Jan 25, 2026

Copy link
Copy Markdown
Author

Thanks for the review @sgissi. I changed the volume mounts and added the missing quote. This should be ready for another look.

rlunar added a commit to rlunar/valkey-k8s-helm that referenced this pull request Apr 5, 2026
…cret change

Add checksum/auth-secret annotation to Deployment and StatefulSet pod
templates so that password rotations or ACL changes via helm upgrade
trigger a rolling restart. Follows the existing pattern used for
checksum/initconfig and checksum/config.

Also normalizes checksum quoting in the Deployment template to match
the StatefulSet.

Ref: valkey-io#128
@beckcl

beckcl commented Apr 8, 2026

Copy link
Copy Markdown
Author

Hey @sgissi. Friendly ping on this PR. Please let me know if I can do anything to get this merged. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants