auth: set helm default role to kubeshark-viewer

Per round-2 permissions clarifications: SSO users whose claim doesn't
match any built-in role and isn't in AUTH_GROUP_MAPPING should fall
back to a read-only baseline instead of strict-deny ("").

defaultRole="" causes the dashboard to 403-storm gated endpoints from
unmatched users; viewer (snapshot:read only) gives them a sensible
read-only UX while still preventing any state change.
This commit is contained in:
Volodymyr Stoiko
2026-05-17 21:34:50 +00:00
parent fd5bf8c1b5
commit 90a6fb3d40
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -103,6 +103,7 @@ func CreateDefaultConfig() ConfigStruct {
},
Auth: configStructs.AuthConfig{
RolesClaim: "groups",
DefaultRole: "kubeshark-viewer",
GroupMapping: map[string]string{},
},
EnabledDissectors: []string{
+1 -1
View File
@@ -154,7 +154,7 @@ tap:
enabled: false
type: saml
rolesClaim: groups
defaultRole: ""
defaultRole: kubeshark-viewer
groupMapping: {}
saml:
idpMetadataUrl: ""