Skip to content

Commit

Permalink
bug - jwt validation returning turning listener bound flag to false.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurret committed Oct 26, 2023
1 parent 4a2fc73 commit edfd30a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion agent/consul/gateways/controller_gateways.go
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,10 @@ func (g *gatewayMeta) updateRouteBinding(route structs.BoundRoute) (bool, []stru

if httpRoute, ok := route.(*structs.HTTPRouteConfigEntry); ok {
var jwtErrors map[structs.ResourceReference]error
didBind, jwtErrors = g.validateJWTForRoute(httpRoute)
hasJWTErrors, jwtErrors := g.validateJWTForRoute(httpRoute)
if hasJWTErrors {
didBind = false
}
for ref, err := range jwtErrors {
errors[ref] = err
}
Expand Down

0 comments on commit edfd30a

Please sign in to comment.