Repository navigation
Let Kubernetes RBAC, not the Cloud role, decide user-run operations #1899
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
Merged
nadaverell
merged 16 commits into
skyhook-io:main
from
arlenvasconcelos:arlen/rad-578-decouple-hub-roles
Oct 4, 2026
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d6db910
Let Kubernetes RBAC, not the Cloud role, decide user-run operations
arlenvasconcelos e23185f
Explain an empty cluster to users who can read no namespace
arlenvasconcelos 7da7e0b
Drop the RBAC snippet from the no-access banner
arlenvasconcelos 00e502d
chart: bind only radar:system for hub background identities
arlenvasconcelos 5b3fea7
Show every group in the no-access banner
arlenvasconcelos e3622c5
Leave the RBAC snippet's subject to the admin
arlenvasconcelos acbdbad
chart: radar:system is one all-or-nothing grant, and Cloud Helm no lo…
arlenvasconcelos 55fc3ef
Let Helm writes check the signed-in user, not Radar's ServiceAccount
arlenvasconcelos e51efe0
Answer /auth/me's no-namespace flag from the permission cache only
arlenvasconcelos c401888
chart: radar:system is for the alerts worker and timeline puller only
arlenvasconcelos 6eb752a
Keep asking about namespace access until the server knows
arlenvasconcelos af4afc7
Keep the no-access banner's group IDs out of session replay
arlenvasconcelos c0f51b9
Revert "Keep asking about namespace access until the server knows"
arlenvasconcelos 48c83d5
Gate Helm values preview like the write it previews
arlenvasconcelos 60ae376
Render the no-access banner's groups with the shared Badge
arlenvasconcelos 812e48f
Debounce the Helm write check and drop leftovers from the role gate
arlenvasconcelos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| {{- /* | ||
| Read-only access for Radar Cloud's own background identities. | ||
|
|
||
| The hub's background identities have no user or IdP groups; they assert the | ||
| radar:system group. That is the alerts worker and the timeline puller (AI | ||
| diagnose reads as radar:viewer). Without a binding of their own they would ride | ||
| on radar:owner, which disappears when an org turns the role bindings off | ||
| (cloud.defaultRbac.create=false) to let IdP groups decide cluster access — | ||
| silently stopping alerts and the hub timeline. | ||
|
|
||
| The grant is the viewer set (view here, plus the cluster-read and | ||
| integration-read add-ons, which bind radar:system in their own templates) and | ||
| Secret read. Secret read is what Helm release alerts and Secret changes in the | ||
| hub timeline need: Radar lists Helm releases as the caller, and Helm stores | ||
| each release as a Secret. Kubernetes RBAC cannot narrow that to Helm's | ||
| Secrets, so it is all Secrets, read-only. No writes. All or nothing: | ||
| cloud.systemRbac=false removes the whole grant. | ||
| */}} | ||
| {{- if and (include "radar.cloudSystemRbac" . | eq "true") .Values.rbac.create -}} | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRoleBinding | ||
| metadata: | ||
| name: {{ include "radar.fullname" . }}-cloud-system-view | ||
| labels: | ||
| {{- include "radar.labels" . | nindent 4 }} | ||
| roleRef: | ||
| apiGroup: rbac.authorization.k8s.io | ||
| kind: ClusterRole | ||
| name: view | ||
| subjects: | ||
| - kind: Group | ||
| name: radar:system | ||
| apiGroup: rbac.authorization.k8s.io | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRole | ||
| metadata: | ||
| name: {{ include "radar.fullname" . }}-system-secrets-read | ||
| labels: | ||
| {{- include "radar.labels" . | nindent 4 }} | ||
| rules: | ||
| - apiGroups: [""] | ||
| resources: ["secrets"] | ||
| verbs: ["get", "list", "watch"] | ||
|
qodo-free-for-open-source-projects[bot] marked this conversation as resolved.
|
||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRoleBinding | ||
| metadata: | ||
| name: {{ include "radar.fullname" . }}-cloud-system-secrets-read | ||
| labels: | ||
| {{- include "radar.labels" . | nindent 4 }} | ||
| roleRef: | ||
| apiGroup: rbac.authorization.k8s.io | ||
| kind: ClusterRole | ||
| name: {{ include "radar.fullname" . }}-system-secrets-read | ||
| subjects: | ||
| - kind: Group | ||
| name: radar:system | ||
| apiGroup: rbac.authorization.k8s.io | ||
| {{- end -}} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Helm comments retain upgrade history
📘 Rule violation⚙ MaintainabilityAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation toolsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping it. The comment explains why an absent value means off, which is the logic, not history.