Decision (2026-10): stay cluster-wide for now; this tracks the follow-up.
Today
The chart default is a ClusterRole with full verbs on Secrets in every namespace, and the manager cache is unrestricted, so the first Get on a Secret starts a cluster-wide Secret informer (list/watch everywhere). Anyone who compromises the operator pod or image can read every Secret in the cluster. rbac.namespaced: true only gives a Role in the release namespace, which cannot serve tenant namespaces (alert-source webhook Secrets). DESIGN.md §9 documents this.
Where Secrets are touched after the redesign
<TerdutServer>-operator-key: in the TerdutServer's namespace (create/get/delete).
<TerdutAlertSource>-terdut-webhook: in the alert source's namespace (create/get/delete, Owns).
Chart value watchNamespaces: []; render a Role + RoleBinding per listed namespace for Secrets/Deployments/Services/PDBs.
Restrict the manager cache (cache.ByObject for those types) to them; keep CRDs/events/namespaces cluster-wide (namespaces get only, for allowedTeams selectors).
A CR in an unlisted namespace gets a clear NamespaceNotEnabled condition rather than a cache error.
Optionally watchNamespaces: [] meaning all namespaces with a ClusterRole, as an explicit single-tenant opt-in.
Drop the misleading rbac.namespaced toggle.
Onboarding a tenant namespace then becomes a values change, which makes allowedTeams enforceable by the cluster.
Decision (2026-10): stay cluster-wide for now; this tracks the follow-up.
## Today
The chart default is a `ClusterRole` with full verbs on `Secrets` in every namespace, and the manager cache is unrestricted, so the first `Get` on a Secret starts a cluster-wide Secret informer (list/watch everywhere). Anyone who compromises the operator pod or image can read every Secret in the cluster. `rbac.namespaced: true` only gives a Role in the release namespace, which cannot serve tenant namespaces (alert-source webhook Secrets). DESIGN.md §9 documents this.
## Where Secrets are touched after the redesign
- `<TerdutServer>-operator-key`: in the TerdutServer's namespace (create/get/delete).
- `<TerdutAlertSource>-terdut-webhook`: in the alert source's namespace (create/get/delete, `Owns`).
- Zalando credentials Secret: TerdutServer's namespace (get).
## Proposal
- Chart value `watchNamespaces: []`; render a Role + RoleBinding per listed namespace for Secrets/Deployments/Services/PDBs.
- Restrict the manager cache (`cache.ByObject` for those types) to them; keep CRDs/events/namespaces cluster-wide (namespaces `get` only, for `allowedTeams` selectors).
- A CR in an unlisted namespace gets a clear `NamespaceNotEnabled` condition rather than a cache error.
- Optionally `watchNamespaces: []` meaning all namespaces with a ClusterRole, as an explicit single-tenant opt-in.
- Drop the misleading `rbac.namespaced` toggle.
- Onboarding a tenant namespace then becomes a values change, which makes `allowedTeams` enforceable by the cluster.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Decision (2026-10): stay cluster-wide for now; this tracks the follow-up.
Today
The chart default is a
ClusterRolewith full verbs onSecretsin every namespace, and the manager cache is unrestricted, so the firstGeton a Secret starts a cluster-wide Secret informer (list/watch everywhere). Anyone who compromises the operator pod or image can read every Secret in the cluster.rbac.namespaced: trueonly gives a Role in the release namespace, which cannot serve tenant namespaces (alert-source webhook Secrets). DESIGN.md §9 documents this.Where Secrets are touched after the redesign
<TerdutServer>-operator-key: in the TerdutServer's namespace (create/get/delete).<TerdutAlertSource>-terdut-webhook: in the alert source's namespace (create/get/delete,Owns).Proposal
watchNamespaces: []; render a Role + RoleBinding per listed namespace for Secrets/Deployments/Services/PDBs.cache.ByObjectfor those types) to them; keep CRDs/events/namespaces cluster-wide (namespacesgetonly, forallowedTeamsselectors).NamespaceNotEnabledcondition rather than a cache error.watchNamespaces: []meaning all namespaces with a ClusterRole, as an explicit single-tenant opt-in.rbac.namespacedtoggle.allowedTeamsenforceable by the cluster.