Skip to content

feat: Ship sveltos-dashboard-viewer and sveltos-dashboard-editor ClusterRoles - #200

Merged
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:dashboard-viewer-editor-clusterroles
Oct 31, 2026
Merged

gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:dashboard-viewer-editor-clusterroles

Conversation

@gianlucam76

Copy link
Copy Markdown
Member

With OIDC login the dashboard acts as the user, so operators need roles to bind their groups to. The only documented option was cluster-admin.

sveltos-dashboard-viewer grants read access to every kind the dashboard checks with SubjectAccessReviews. sveltos-dashboard-editor adds create, update, patch and delete on ClusterProfiles and Profiles. Neither role grants access to ConfigMaps or Secrets, which must be granted with a namespaced Role.

The roles live in config/user-rbac, separate from config/default, so the ui-backend- name prefix is not applied to them. The manifests target appends them to manifest/manifest.yaml.

Envtest-based specs load the shipped YAML and check it against the same SubjectAccessReviews ui-backend issues, so the roles cannot drift from the code.

Part of 234

@gianlucam76
gianlucam76 force-pushed the dashboard-viewer-editor-clusterroles branch 2 times, most recently from 7a00ce6 to 381a03f Compare October 31, 2026 17:34
…terRoles

With OIDC login the dashboard acts as the user, so operators need roles to bind
their groups to. The only documented option was cluster-admin.

sveltos-dashboard-viewer grants read access to every kind the dashboard checks
with SubjectAccessReviews. sveltos-dashboard-editor adds create, update, patch
and delete on ClusterProfiles and Profiles. Neither role grants access to
ConfigMaps or Secrets, which must be granted with a namespaced Role.

The roles live in config/user-rbac, separate from config/default, so the
ui-backend- name prefix is not applied to them. The manifests target appends
them to manifest/manifest.yaml.

Envtest-based specs load the shipped YAML and check it against the same
SubjectAccessReviews ui-backend issues, so the roles cannot drift from the code.
@gianlucam76
gianlucam76 force-pushed the dashboard-viewer-editor-clusterroles branch from 381a03f to 2fded09 Compare October 31, 2026 17:55
@gianlucam76
gianlucam76 merged commit d803f23 into projectsveltos:main Oct 31, 2026
5 checks passed
@gianlucam76
gianlucam76 deleted the dashboard-viewer-editor-clusterroles branch October 31, 2026 18:06
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.

1 participant