Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additionalClusterRoleBindings to allow setting cluster wide access for a tenant. #1386

Open
devantler opened this issue Feb 24, 2025 · 0 comments
Assignees
Labels
blocked-needs-validation Issue need triage and validation

Comments

@devantler
Copy link

Describe the feature

We have a need to control cluster-scoped RBAC for a Tenant, to allow it cluster-scoped access to things outside of its Tenant. Today we do this by creating native ClusterRole and ClusterRoleBinding resources next to the capsule.clastix.io/v1beta2.Tenant resource. This works, but we would love a more Capsule-native way of doing this.

The concrete need spawned as we want to install the Grafana Alloy Agent in a Capsule Tenant, and allow it to scrape and monitor services, nodes, etc, in the full cluster, while still ensuring its has least-privilege.

It would be great if an additional object was added to the Tenant CR, so this is possible with an additionalClusterRoleBindings object alike so:

apiVersion: capsule.clastix.io/v1beta2
kind: Tenant
metadata:
  name: oil
spec:
  owners:
  - name: alice
    kind: User
  additionalClusterRoleBindings:
  - clusterRoleName: 'prometheus-servicemonitors-viewer'
    subjects:
    - ...

Expected behavior

Allow controlling cluster-scoped RBAC for tenants in a Capsule-native way.

@devantler devantler added the blocked-needs-validation Issue need triage and validation label Feb 24, 2025
@oliverbaehler oliverbaehler self-assigned this Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked-needs-validation Issue need triage and validation
Projects
None yet
Development

No branches or pull requests

2 participants