operator RO creds: read operator CRD API groups #135
Reference in New Issue
Block a user
Delete Branch "benvin/operator-read-crds"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The
operatorkube context is a Vault-minted, read-only credential (Kubernetessecret engine role
cluster-operator, bound to aget/list/watch-onlyClusterRole). It is currently RBAC-forbidden from listing operator-owned CRDs —
the immediate breakage is
valkeyclusters.valkey.io— and likewise every otheroperator CRD group deployed via
argocd-apps. This extends the RO ruleset so thecontext can read those CRDs. Still strictly read-only: no create/update/delete.
Change
cluster-operatorgenerated_role_rules(
resources/secret_backend/kubernetes/au/syd1/roles/cluster-operator.yaml)with
get/list/watchon the CRD API groups of the operators deployed viaargocd-apps(verbs andresources: "*"unchanged; same single rule block).API groups added
valkey.io(valkey-operator — immediate need)ceph.unkin.net(cephrgw-operator)bind.unkin.net(bind-operator)kea.unkin.net(kea/dhcp operator)k8up.io(k8up)grafana.integreatly.org(grafana-operator)operator.victoriametrics.com(VictoriaMetrics operator)clickhouse.altinity.com,clickhouse-keeper.altinity.com(altinity clickhouse-operator)acme.cert-manager.io(cert-manager companion CRD group)deviceplugin.intel.com,fpga.intel.com(intel device plugins operator)autoscaling.k8s.io(VPA)apm.k8s.elastic.co,beat.k8s.elastic.co,agent.k8s.elastic.co,maps.k8s.elastic.co,enterprisesearch.k8s.elastic.co,autoscaling.k8s.elastic.co,stackconfigpolicy.k8s.elastic.co(ECK — theelasticsearch/kibana/logstashECK groups were already granted)snapshot.storage.k8s.io,groupsnapshot.storage.k8s.io(CSI external-snapshotter, deployed via csi-cephfs/csi-cephrbd)Groups already present (
postgresql.cnpg.io,cert-manager.io,externaldns.k8s.io,secrets.hashicorp.com,purelb.io,nfd.k8s-sigs.io,elasticsearch/kibana/logstash.k8s.elastic.co,gateway.networking.k8s.io,etc.) are unchanged. Rancher/RKE/Calico/cluster-api/fleet management-layer CRD
groups are intentionally excluded — they are not
argocd-appsoperators.