Repository navigation
fix(operator): refuse cross-namespace token Secrets; bound lost-reply claims; keep flag on handover (0.2.1 final review) - #109
Merged
Conversation
… claims; keep the flag on manager handover Final 0.2.1 independent review (R2): - F1 (high, present since the operator's first release): a FeatureFlag names both the token Secret (any namespace) and the URL the token is sent to, and the operator can read every Secret, so anyone allowed to create a FeatureFlag could exfiltrate any Secret in the cluster. A tokenSecretRef in another namespace is now refused (Ready=False, SecretNotAllowed, nothing sent) unless the operator runs with --allow-cross-namespace-secrets. - F2 (low): an unconfirmed proposal is resolved by claiming only a request created within the client timeout of the proposal (2 min clock skew), a stale record is forgotten, and with the requester unknown only a single unambiguous match is claimed. - F3 (low): deleting the managing FeatureFlag no longer deletes the flag from Checkgate while another FeatureFlag will take it over. - F4 (low): documented the multi-tenancy limit of age-based arbitration. - Upgrade page: how to keep 0.2.0's per-account login ceiling (F5).
akosidencio
added a commit
that referenced
this pull request
Nov 30, 2026
…ew-2 fix(operator): follow-ups of the #109 review (handover peers, claim window, docs)
5 tasks
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.
Fixes for the findings of the final 0.2.1 independent review on
2b0080b. That review found no critical or high-severity issue new in 0.2.1. F1 was there before 0.2.1. The owner chose deny-by-default for it.tokenSecretRef.namespace, any namespace) and the URL the token is sent to, and the operator's ClusterRole can read every Secret. So anyone allowed to create a FeatureFlag could make the operator send any Secret to a server of their choosing. A Secret in another namespace is now refused:Ready=False, reasonSecretNotAllowed, and nothing is sent.--allow-cross-namespace-secretsrestores the 0.2.0 behaviour. Behaviour change: the CHANGELOG (Security, Upgrading), the upgrade page, the operator README and the docs page all cover it.LOGIN_MAX_FAILURES_PER_ACCOUNT=5).Evidence
The new tests were run against the pre-fix code (
2b0080b) first:TestCrossNamespaceSecretIsRefusedByDefaultSecretNotAllowed)TestStaleProposalRecordDoesNotClaimAnotherUsersRequest(record 1 h old, requester unknown, admin token)TestManagerDeletionKeepsTheFlagForTheNextManagerTestSameNamespaceExplicitSecretIsAllowed,TestCrossNamespaceSecretAllowedWhenEnabledOther checks:
-race -count=3passes.run-real-server.shPASS.check-docs-site.py: ok.RBAC is unchanged. The operator still needs cluster-wide Secret read for same-namespace Secrets in every namespace it watches.