kubeshop / kusk-gateway

Kusk-gateway is an OpenAPI-driven API Gateway for Kubernetes
https://kubeshop.github.io/kusk-gateway/
MIT License
253 stars 21 forks source link

Disable OAuth2 on the root path #836

Closed mbana closed 1 year ago

mbana commented 1 year ago

Disable OAuth2 validation for the root path - "/" - by specifying a pass_through_matcher in internal/envoy/auth/oauth2_filter.go:

pass_through_matcher (repeated config.route.v3.HeaderMatcher) Any request that matches any of the provided matchers will be passed through without OAuth validation.

Source: https://www.envoyproxy.io/docs/envoy/v1.23.1/api-v3/extensions/filters/http/oauth2/v3/oauth.proto#extensions-filters-http-oauth2-v3-oauth2config.


Resolves kubeshop/kusk-gateway/issues/680.

See: https://github.com/kubeshop/kusk-gateway/issues/680.

Signed-off-by: Mohamed Bana mohamed@bana.io

netlify[bot] commented 1 year ago

Deploy Preview for kusk-docs-preview canceled.

Name Link
Latest commit 8220be28850ecc46312e946ba5d9407844583c79
Latest deploy log https://app.netlify.com/sites/kusk-docs-preview/deploys/633ea96ddbc3020009c2fdac