bitnami/sealed-secrets

Improve secrets-unseale RBAC configuration to avoid cluster-wide read/write of secret objects

開放

#353 建立於 2020年2月12日

 (2 則留言) (2 個反應) (0 位負責人)Go (771 個分叉)auto 404
enhancementhelp wanted

倉庫指標

星標
 (9,222 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

If I understand it correctly, the controller does not make any assumption that it can read secrets cluster-wide. The current installed cluster role 'secrets-unsealer' is written such that the controller is granted with such capability, which it does not appear to be needing.

I suggest the ClusterRole be refactored so it has a cluster-scoped portion and a namespace-scoped portion. The cluster-scoped portion would allow cluster-wide access to sealedsecrets, while the namespace portion would allow namespaced access to secrets and events. By default both ClusterRole can be ClusterRoleBind to the same service account so nothing should have changed; but a cluster admin would remove the second ClusterRoleBinding and make it RoleBinding in the namespace where sealed secrets is being used.

Happy to come up with a PR if this is the right thing to do.

貢獻者指南