Skip to content

Commit

Permalink
fix: add ocirepositories to nsaccess rules
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgb committed Feb 1, 2025
1 parent 9722058 commit bf9b879
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core/nsaccess/nsaccess.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ import (
var DefautltWegoAppRules = []rbacv1.PolicyRule{
{
APIGroups: []string{""},
Resources: []string{"secrets", "pods", "events"},
Resources: []string{"pods", "secrets"},
Verbs: []string{"get", "list"},
},
{
APIGroups: []string{""},
Resources: []string{"events"},
Verbs: []string{"get", "list", "watch"},
},
{
APIGroups: []string{"apps"},
Resources: []string{"deployments", "replicasets"},
Expand All @@ -38,14 +43,9 @@ var DefautltWegoAppRules = []rbacv1.PolicyRule{
},
{
APIGroups: []string{"source.toolkit.fluxcd.io"},
Resources: []string{"buckets", "helmcharts", "gitrepositories", "helmrepositories"},
Resources: []string{"buckets", "helmcharts", "helmrepositories", "gitrepositories", "ocirepositories"},
Verbs: []string{"get", "list"},
},
{
APIGroups: []string{""},
Resources: []string{"events"},
Verbs: []string{"get", "list", "watch"},
},
}

// Checker contains methods for validing user access to Kubernetes namespaces, based on a set of PolicyRules
Expand Down

0 comments on commit bf9b879

Please sign in to comment.