Skip to content

[v0.15] Validate kubeConfig Namespaces against known Fleet namespaces#5243

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

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

Conversation

@thardeck
Copy link
Copy Markdown
Collaborator

@thardeck thardeck commented Jun 5, 2026

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:04
@thardeck thardeck added this to 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.15_backport_5224 branch from fc85175 to 1bd03f5 Compare June 5, 2026 14:25
@thardeck thardeck moved this to 👀 In review in Fleet Jun 5, 2026
@thardeck thardeck enabled auto-merge (squash) June 5, 2026 14:39
@thardeck thardeck merged commit e7ae3e3 into release/v0.15 Jun 5, 2026
22 checks passed
@thardeck thardeck deleted the v0.15_backport_5224 branch June 5, 2026 14:50
@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