Skip to content

[v0.12] Validate kubeConfig Namespaces against known Fleet namespaces#5246

Merged
thardeck merged 1 commit into
release/v0.12from
v0.12_backport_5224
Jun 8, 2026
Merged

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

Conversation

@thardeck

@thardeck thardeck commented Jun 8, 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

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 self-assigned this Jun 8, 2026
@thardeck thardeck requested a review from a team as a code owner June 8, 2026 06:03
@thardeck thardeck added this to Fleet Jun 8, 2026
@thardeck thardeck moved this to 👀 In review in Fleet Jun 8, 2026
@thardeck thardeck merged commit 347150a into release/v0.12 Jun 8, 2026
12 of 15 checks passed
@thardeck thardeck deleted the v0.12_backport_5224 branch June 8, 2026 08:58
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in Fleet Jun 8, 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