Skip to content

Commit

Permalink
fix: add .well-known endpoints to envoy config (#1255)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
kangmingtay authored Oct 3, 2024
1 parent 9b64ef3 commit 7295fc0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ansible/files/envoy_config/lds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,10 @@ resources:
type.googleapis.com/envoy.extensions.filters.http.rbac.v3.RBACPerRoute
- match:
safe_regex:
google_re2:
max_program_size: 150
regex: >-
/auth/v1/(verify|callback|authorize|sso/saml/(acs|metadata|slo))
/auth/v1/(verify|callback|authorize|sso/saml/(acs|metadata|slo)|\.well-known/(openid-configuration|jwks\.json))
route:
cluster: gotrue
regex_rewrite:
Expand Down
6 changes: 6 additions & 0 deletions docker/all-in-one/etc/kong/kong.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ services:
routes: [{ name: auth-v1-open-saml, strip_path: true, paths: [/auth/v1/sso/saml/] }],
plugins: [{ name: cors }],
}
- {
name: auth-v1-open-well-known,
url: 'http://localhost:9999/.well-known/',
routes: [{ name: auth-v1-open-well-known, strip_path: true, paths: [/auth/v1/.well-known/] }],
plugins: [{ name: cors }],
}
- {
name: auth-v1,
url: 'http://localhost:9999/',
Expand Down

0 comments on commit 7295fc0

Please sign in to comment.