Skip to content

[v0.14] Validate kubeConfig Namespaces against known Fleet namespaces#5244

Merged
thardeck merged 1 commit into
release/v0.14from
v0.14_backport_5224
Jun 5, 2026
Merged

[v0.14] Validate kubeConfig Namespaces against known Fleet namespaces#5244
thardeck merged 1 commit into
release/v0.14from
v0.14_backport_5224

Conversation

@thardeck

@thardeck thardeck commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Validates kubeConfig secret namespaces so only allowed Fleet-managed namespaces are accepted.
Adds kubeconfig secret indexer and secret-watcher handling to detect config changes and trigger cluster reimports.

Backports #5224

@thardeck thardeck self-assigned this Jun 5, 2026
@thardeck thardeck requested a review from a team as a code owner June 5, 2026 14:26
@thardeck thardeck added this to Fleet Jun 5, 2026
@thardeck thardeck moved this to 👀 In review in Fleet Jun 5, 2026
Restrict kubeconfig secret reads to Fleet-managed namespaces and
preserve same-namespace behavior for explicit or empty values.

Keep legacy namespace entries for now because migration code paths
still reference LegacyDefaultNamespace, and Rancher
manager-initiated registration sets kubeConfigSecretNamespace to the
cluster namespace.
@thardeck thardeck force-pushed the v0.14_backport_5224 branch from 9b7a722 to f9ea4f0 Compare June 5, 2026 14:27
@thardeck thardeck enabled auto-merge (squash) June 5, 2026 14:39
@thardeck thardeck merged commit fa05b51 into release/v0.14 Jun 5, 2026
22 checks passed
@thardeck thardeck deleted the v0.14_backport_5224 branch June 5, 2026 14:51
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in Fleet Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants