Repository navigation
Conversation
With sync.toHost.pods.useSecretsForSATokens unset, the token requested for a synced pod's service account was written into a host pod annotation and mounted through the downward API, where everyone who can read pods in the host namespace can read it. The default is now true, so the token lives in a Secret owned by the host pod. Setting the value to false keeps the previous behaviour. chart/values.yaml and chart/values.schema.json are regenerated. Signed-off-by: Youssef Omar Bouden <youssef.bouden2002@gmail.com>
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.
What issue type does this pull request address?
/kind enhancement
What does this pull request do? Which issues does it resolve?
resolves #4276
Flips the default of
sync.toHost.pods.useSecretsForSATokenstotrue, so the service account tokens of synced pods are stored in a Secret owned by the host pod instead of in a host pod annotation. The comment now says what the annotation mode exposes.chart/values.yamlandchart/values.schema.jsonare regenerated from the config sources. Setting the value tofalserestores the previous behaviour.Please provide a short message that should be published in the vcluster release notes
Service account tokens of synced pods are now stored in Secrets by default (
sync.toHost.pods.useSecretsForSATokens: true); set it tofalseto keep the previous pod annotation behaviour.What else do we need to know?
The e2e configurations and
test/commonValues.yamlalready run with the secrets mode. Existing host pods are not touched; new pods get the Secret.Note
Medium Risk
Changes default credential storage for newly synced pods and could affect RBAC/Secret volume expectations; existing pods are unchanged but upgrades behave differently unless explicitly set to false.
Overview
Default storage for synced pod service account tokens now uses Secrets (
useSecretsForSATokens: true) inconfig/values.yamlandchart/values.yaml, with matching schema/docs updates inconfig/config.goandchart/values.schema.json.Comments now call out that the legacy pod annotation path exposes tokens to anyone who can read pods in the host namespace. Set
sync.toHost.pods.useSecretsForSATokenstofalseto keep the old annotation behavior.Reviewed by Cursor Bugbot for commit dd4ab2f. Bugbot is set up for automated code reviews on this repo. Configure here.