Separate Kustomizations for cluster-scoped, high-permission objects #1689

Open
opened 2026-11-15 17:55:21 +00:00 by ginjiruu · 0 comments
Owner

Goal: cluster-scoped, high-permission objects on mini are applied by their own Flux Kustomizations, so each can later run under a ServiceAccount allowed to manage only that kind of object.

Today the root flux-system Kustomization applies all of them with kustomize-controller's full rights. clusters/mini/privileged-rbac/ (#1687) is the first separate Kustomization.

Each file below carries TODO(privileged) pointing here.

RBAC (ClusterRole / ClusterRoleBinding)

  • clusters/mini/automation/clusterRole.yaml, clusterRoleBinding.yaml
  • clusters/mini/ci/clusterRole.yaml, clusterRoleBinding.yaml
  • clusters/mini/iac/runner-serviceaccounts.yaml (ClusterRoleBinding tf-runner-per-root)
  • clusters/mini/monitoring/resources/kube-state-metrics/kube-state-metrics-rbac.yaml, kube-state-metrics-role-binding.yaml
  • clusters/mini/monitoring/resources/otel/otel-cluster-role.yaml, otel-cluster-role-binding.yaml
  • generic-templates/argo/workflows/account.yaml
  • generic-templates/grafana/grafana/dashboards/clusterrole.yaml, clusterrolebinding.yaml

CRDs and operators shipped as raw manifests

  • clusters/mini/wireguard-operator/release.yaml (ClusterRoles, CRDs, Namespace)

Cluster-wide stores, issuers, storage

  • clusters/mini/eso/vault-backend.yaml (ClusterSecretStore)
  • generic-templates/standard/cert-manager/resources/cluster-issuers.yaml (ClusterIssuer)
  • generic-templates/nats/issuer.yaml (ClusterIssuer)
  • clusters/mini/ebs/storage-class.yaml, generic-templates/media-stack/storage-class.yaml (StorageClass)

Flux itself

  • clusters/mini/flux-system/gotk-components.yaml stays with the bootstrap identity.

Not covered: cluster-scoped objects that HelmReleases install. helm-controller applies those with its own ServiceAccount.

Goal: cluster-scoped, high-permission objects on mini are applied by their own Flux Kustomizations, so each can later run under a ServiceAccount allowed to manage only that kind of object. Today the root `flux-system` Kustomization applies all of them with kustomize-controller's full rights. `clusters/mini/privileged-rbac/` (#1687) is the first separate Kustomization. Each file below carries `TODO(privileged)` pointing here. ## RBAC (ClusterRole / ClusterRoleBinding) - clusters/mini/automation/clusterRole.yaml, clusterRoleBinding.yaml - clusters/mini/ci/clusterRole.yaml, clusterRoleBinding.yaml - clusters/mini/iac/runner-serviceaccounts.yaml (ClusterRoleBinding tf-runner-per-root) - clusters/mini/monitoring/resources/kube-state-metrics/kube-state-metrics-rbac.yaml, kube-state-metrics-role-binding.yaml - clusters/mini/monitoring/resources/otel/otel-cluster-role.yaml, otel-cluster-role-binding.yaml - generic-templates/argo/workflows/account.yaml - generic-templates/grafana/grafana/dashboards/clusterrole.yaml, clusterrolebinding.yaml ## CRDs and operators shipped as raw manifests - clusters/mini/wireguard-operator/release.yaml (ClusterRoles, CRDs, Namespace) ## Cluster-wide stores, issuers, storage - clusters/mini/eso/vault-backend.yaml (ClusterSecretStore) - generic-templates/standard/cert-manager/resources/cluster-issuers.yaml (ClusterIssuer) - generic-templates/nats/issuer.yaml (ClusterIssuer) - clusters/mini/ebs/storage-class.yaml, generic-templates/media-stack/storage-class.yaml (StorageClass) ## Flux itself - clusters/mini/flux-system/gotk-components.yaml stays with the bootstrap identity. Not covered: cluster-scoped objects that HelmReleases install. helm-controller applies those with its own ServiceAccount.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/clusters#1689
No description provided.