Skip to content

Commit 82a80c7

Browse files
akurinnoyclaude
authored andcommitted
fix: grant dashboard SA read access to DevWorkspaceOperatorConfig (#2099)
The dashboard backup feature needs to read the DWOC to get backup configuration (schedule, registry path, auth secret name). Without this permission, the dashboard SA gets 403 Forbidden when reading the DWOC in the DWO namespace, causing backup endpoints to fail for all users. Assisted-by: Claude Opus 4.6 Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 84cc99a commit 82a80c7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pkg/deploy/dashboard/rbac.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ func GetPrivilegedPoliciesRulesForKubernetes() []rbacv1.PolicyRule {
5353
Resources: []string{"configmaps"},
5454
Verbs: []string{"get", "list"},
5555
},
56+
{
57+
APIGroups: []string{"controller.devfile.io"},
58+
Resources: []string{"devworkspaceoperatorconfigs"},
59+
Verbs: []string{"get"},
60+
},
5661
}
5762

5863
if !infrastructure.IsOpenShift() {

0 commit comments

Comments
 (0)