Skip to content

Commit

Permalink
Change auth order (#5294)
Browse files Browse the repository at this point in the history
## What changed?
Related: #5293

## Why?
<!-- Tell your future self why have you made these changes -->

## How did you test it?
<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->

## Potential risks
<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->

## Is hotfix candidate?
<!-- Is this PR a hotfix candidate or does it require a notification to
be sent to the broader community? (Yes/No) -->
  • Loading branch information
laniehei authored Jan 12, 2024
1 parent 41c67ba commit 7eeaae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/frontend/fx.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,6 @@ func GrpcServerOptionsProvider(
namespaceLogInterceptor.Intercept, // TODO: Deprecate this with a outer custom interceptor
grpc.UnaryServerInterceptor(traceInterceptor),
metrics.NewServerMetricsContextInjectorInterceptor(),
redirectionInterceptor.Intercept,
telemetryInterceptor.UnaryIntercept,
authorization.NewAuthorizationInterceptor(
claimMapper,
authorizer,
Expand All @@ -211,6 +209,8 @@ func GrpcServerOptionsProvider(
cfg.Global.Authorization.AuthHeaderName,
cfg.Global.Authorization.AuthExtraHeaderName,
),
redirectionInterceptor.Intercept,
telemetryInterceptor.UnaryIntercept,
healthInterceptor.Intercept,
namespaceValidatorInterceptor.StateValidationIntercept,
namespaceCountLimiterInterceptor.Intercept,
Expand Down

0 comments on commit 7eeaae9

Please sign in to comment.