Skip to content

Commit 7295fc0

Browse files
authored
fix: add .well-known endpoints to envoy config (#1255)
* fix: add .well-known endpoints to envoy config * fix: add ./well-known endpoints to aio kong * chore: fix formatting * fix: increase max_program_size for regex
1 parent 9b64ef3 commit 7295fc0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ansible/files/envoy_config/lds.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,10 @@ resources:
254254
type.googleapis.com/envoy.extensions.filters.http.rbac.v3.RBACPerRoute
255255
- match:
256256
safe_regex:
257+
google_re2:
258+
max_program_size: 150
257259
regex: >-
258-
/auth/v1/(verify|callback|authorize|sso/saml/(acs|metadata|slo))
260+
/auth/v1/(verify|callback|authorize|sso/saml/(acs|metadata|slo)|\.well-known/(openid-configuration|jwks\.json))
259261
route:
260262
cluster: gotrue
261263
regex_rewrite:

docker/all-in-one/etc/kong/kong.yml

+6
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ services:
2727
routes: [{ name: auth-v1-open-saml, strip_path: true, paths: [/auth/v1/sso/saml/] }],
2828
plugins: [{ name: cors }],
2929
}
30+
- {
31+
name: auth-v1-open-well-known,
32+
url: 'http://localhost:9999/.well-known/',
33+
routes: [{ name: auth-v1-open-well-known, strip_path: true, paths: [/auth/v1/.well-known/] }],
34+
plugins: [{ name: cors }],
35+
}
3036
- {
3137
name: auth-v1,
3238
url: 'http://localhost:9999/',

0 commit comments

Comments
 (0)