Skip to content

[FEATURE] Limit secrets permissions #205

Description

@consooo

The problem
The clusterrole for the reverser always needs these broad secrets permissions

- apiGroups: [""]
  resources: ["secrets"]
  verbs: [get, list, watch]

even if it shouldn't sync any secrets.

The solution
add a flag --secret-namespaces=ns1,ns2 that would restrict the cache for secrets to namespaces. Then we could add a Role + RoleBinding for these namespaces. This would significantly reduce the blast radius.
For us, we don't want to watch secrets so we could put only the gitrepo secret in this namespace.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions