Skip to content

Commit

Permalink
remove fallback to default sa
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon König committed Jan 26, 2024
1 parent a155877 commit bcc0744
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/auth/gatekeeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ func (s *gatekeeper) rbacAuthorization(ctx context.Context, claims *types.Claims
namespaceAccount, err := s.getServiceAccount(claims, getNamespace(req))
if err != nil {
log.WithError(err).Info("Error while SSO Delegation")
} else if precedence(namespaceAccount) > precedence(loginAccount) {
return nil, err
} else {
delegatedAccount = namespaceAccount
ssoDelegated = true
}
Expand Down

0 comments on commit bcc0744

Please sign in to comment.