Skip to content

Commit

Permalink
contour: adds global auth support to fallback certificates \n When us…
Browse files Browse the repository at this point in the history
…ing Fallback certificates, the global auth was previously ignored. This is needed when using IP routing with no SNI. \n Fixes projectcontour#6512 \n Signed-off-by: Erik Flores [email protected]
  • Loading branch information
Erik Flores committed Jul 16, 2024
1 parent 260151f commit b827942
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/xdscache/v3/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,14 @@ func (c *ListenerCache) OnChange(root *dag.DAG) {
alpnProtos...,
)

var authzFilter *envoy_filter_network_http_connection_manager_v3.HttpFilter
if vh.ExternalAuthorization != nil {
authzFilter = envoy_v3.FilterExternalAuthz(vh.ExternalAuthorization)
}

cm := envoy_v3.HTTPConnectionManagerBuilder().
DefaultFilters().
AddFilter(authzFilter).
RouteConfigName(fallbackCertRouteConfigName(listener)).
MetricsPrefix(listener.Name).
AccessLoggers(cfg.newSecureAccessLog()).
Expand Down

0 comments on commit b827942

Please sign in to comment.