Skip to content

Commit d941644

Browse files
committed
fix: add ./well-known endpoints to aio kong
1 parent 145e4d6 commit d941644

File tree

1 file changed

+104
-27
lines changed

1 file changed

+104
-27
lines changed
Lines changed: 104 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,101 @@
11
# ##############################################################################################
22
# Updating this file also requires a corresponding update in worker/src/lib/config-utils/kong.ts
33
# ##############################################################################################
4-
_format_version: '1.1'
4+
_format_version: "1.1"
55
services:
66
- {
77
name: auth-v1-open,
8-
url: 'http://localhost:9999/verify',
9-
routes: [{ name: auth-v1-open, strip_path: true, paths: [/auth/v1/verify] }],
8+
url: "http://localhost:9999/verify",
9+
routes:
10+
[{ name: auth-v1-open, strip_path: true, paths: [/auth/v1/verify] }],
1011
plugins: [{ name: cors }],
1112
}
1213
- {
1314
name: auth-v1-open-callback,
14-
url: 'http://localhost:9999/callback',
15-
routes: [{ name: auth-v1-open-callback, strip_path: true, paths: [/auth/v1/callback] }],
15+
url: "http://localhost:9999/callback",
16+
routes:
17+
[
18+
{
19+
name: auth-v1-open-callback,
20+
strip_path: true,
21+
paths: [/auth/v1/callback],
22+
},
23+
],
1624
plugins: [{ name: cors }],
1725
}
1826
- {
1927
name: auth-v1-open-authorize,
20-
url: 'http://localhost:9999/authorize',
21-
routes: [{ name: auth-v1-open-authorize, strip_path: true, paths: [/auth/v1/authorize] }],
28+
url: "http://localhost:9999/authorize",
29+
routes:
30+
[
31+
{
32+
name: auth-v1-open-authorize,
33+
strip_path: true,
34+
paths: [/auth/v1/authorize],
35+
},
36+
],
2237
plugins: [{ name: cors }],
2338
}
2439
- {
2540
name: auth-v1-open-saml,
26-
url: 'http://localhost:9999/sso/saml/',
27-
routes: [{ name: auth-v1-open-saml, strip_path: true, paths: [/auth/v1/sso/saml/] }],
41+
url: "http://localhost:9999/sso/saml/",
42+
routes:
43+
[
44+
{
45+
name: auth-v1-open-saml,
46+
strip_path: true,
47+
paths: [/auth/v1/sso/saml/],
48+
},
49+
],
50+
plugins: [{ name: cors }],
51+
}
52+
- {
53+
name: auth-v1-open-well-known,
54+
url: "http://localhost:9999/.well-known/",
55+
routes:
56+
[
57+
{
58+
name: auth-v1-open-well-known,
59+
strip_path: true,
60+
paths: [/auth/v1/.well-known/],
61+
},
62+
],
2863
plugins: [{ name: cors }],
2964
}
3065
- {
3166
name: auth-v1,
32-
url: 'http://localhost:9999/',
67+
url: "http://localhost:9999/",
3368
routes: [{ name: auth-v1, strip_path: true, paths: [/auth/v1/] }],
34-
plugins: [{ name: cors }, { name: key-auth, config: { hide_credentials: false } }],
69+
plugins:
70+
[
71+
{ name: cors },
72+
{ name: key-auth, config: { hide_credentials: false } },
73+
],
3574
}
3675
- {
3776
name: rest-v1-admin,
38-
url: 'http://localhost:3001/',
39-
routes: [{ name: rest-admin-v1, strip_path: true, paths: [/rest-admin/v1/] }],
40-
plugins: [{ name: cors }, { name: key-auth, config: { hide_credentials: true } }],
77+
url: "http://localhost:3001/",
78+
routes:
79+
[{ name: rest-admin-v1, strip_path: true, paths: [/rest-admin/v1/] }],
80+
plugins:
81+
[
82+
{ name: cors },
83+
{ name: key-auth, config: { hide_credentials: true } },
84+
],
4185
}
4286
- {
4387
name: rest-v1,
44-
url: 'http://localhost:3000/',
88+
url: "http://localhost:3000/",
4589
routes: [{ name: rest-v1, strip_path: true, paths: [/rest/v1/] }],
46-
plugins: [{ name: cors }, { name: key-auth, config: { hide_credentials: true } }],
90+
plugins:
91+
[
92+
{ name: cors },
93+
{ name: key-auth, config: { hide_credentials: true } },
94+
],
4795
}
4896
- {
4997
name: graphql-v1,
50-
url: 'http://localhost:3000/rpc/graphql',
98+
url: "http://localhost:3000/rpc/graphql",
5199
routes: [{ name: graphql-v1, strip_path: true, paths: [/graphql/v1] }],
52100
plugins:
53101
[
@@ -61,28 +109,57 @@ services:
61109
}
62110
- {
63111
name: admin-v1,
64-
url: 'https://localhost:8085/',
112+
url: "https://localhost:8085/",
65113
routes: [{ name: admin-v1, strip_path: true, paths: [/admin/v1/] }],
66-
plugins: [{ name: cors }, { name: key-auth, config: { hide_credentials: false } }],
114+
plugins:
115+
[
116+
{ name: cors },
117+
{ name: key-auth, config: { hide_credentials: false } },
118+
],
67119
}
68120
- {
69121
name: admin-v1-user-routes,
70-
url: 'https://localhost:8085/privileged',
71-
routes: [{ name: admin-v1-user-routes, strip_path: true, paths: [/customer/v1/privileged] }],
72-
plugins: [{ name: cors }, { name: basic-auth, config: { hide_credentials: false } }],
122+
url: "https://localhost:8085/privileged",
123+
routes:
124+
[
125+
{
126+
name: admin-v1-user-routes,
127+
strip_path: true,
128+
paths: [/customer/v1/privileged],
129+
},
130+
],
131+
plugins:
132+
[
133+
{ name: cors },
134+
{ name: basic-auth, config: { hide_credentials: false } },
135+
],
73136
}
74137
- {
75138
name: admin-v1-metrics,
76-
url: 'https://localhost:8085/metrics/aggregated',
77-
routes: [{ name: admin-v1-metrics, strip_path: true, paths: [/supabase-internal/metrics] }],
78-
plugins: [{ name: cors }, { name: ip-restriction, config: { allow: [10.0.0.0/8] } }],
139+
url: "https://localhost:8085/metrics/aggregated",
140+
routes:
141+
[
142+
{
143+
name: admin-v1-metrics,
144+
strip_path: true,
145+
paths: [/supabase-internal/metrics],
146+
},
147+
],
148+
plugins:
149+
[
150+
{ name: cors },
151+
{ name: ip-restriction, config: { allow: [10.0.0.0/8] } },
152+
],
79153
}
80154
consumers:
81155
- { username: anon-key, keyauth_credentials: [{ key: anon_key }] }
82156
- { username: service_role-key, keyauth_credentials: [{ key: service_key }] }
83-
- { username: supabase-admin-key, keyauth_credentials: [{ key: supabase_admin_key }] }
157+
- {
158+
username: supabase-admin-key,
159+
keyauth_credentials: [{ key: supabase_admin_key }],
160+
}
84161
basicauth_credentials:
85162
- consumer: service_role-key
86-
username: 'service_role'
163+
username: "service_role"
87164
password: service_key
88165
plugins: []

0 commit comments

Comments
 (0)