Skip to content

remove CRUD on secrets for operator ClusterRole#225

Open
boddumanohar wants to merge 1 commit into
mainfrom
INCIDENT-011
Open

remove CRUD on secrets for operator ClusterRole#225
boddumanohar wants to merge 1 commit into
mainfrom
INCIDENT-011

Conversation

@boddumanohar

Copy link
Copy Markdown
Member

fixes: #190

The operator's ClusterRole granted full CRUD on secrets cluster-wide. We fixed it:

  • Reduced ClusterRole secrets to get/list/watch (read-only)
    Added a namespace-scoped Role in the operator's namespace for secret writes
    Added roles/rolebindings to ClusterRole for dynamic namespace Role creation
    Added ensureNamespaceSecretAccess in StorageClusterReconciler for StorageClusters in non-operator namespaces
    Wired OPERATOR_SERVICE_ACCOUNT via Downward API so the operator knows its own SA name at runtime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

INCIDENT-011: Cluster-Wide Read/Write Access to All Kubernetes Secrets

1 participant