Skip to content

Commit

Permalink
fix(platform): set cluster user as privileged user (#2066)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Ryu authored Aug 22, 2022
1 parent e8739f5 commit 6b8e4f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/auth/filter/inspector.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (i *clusterInspector) Inspect(handler http.Handler, c *genericapiserver.Con
}
ctx := req.Context()
username, tenantID := authentication.UsernameAndTenantID(ctx)
if (username == i.privilegedUsername || username == "system:apiserver") && tenantID == "" {
if (username == i.privilegedUsername || username == "system:apiserver" || username == "system:serviceaccount:clusternet-system:clusternet-app-deployer") && tenantID == "" {
handler.ServeHTTP(w, req)
return
}
Expand Down

0 comments on commit 6b8e4f4

Please sign in to comment.