Skip to content

Commit 5331a0c

Browse files
committed
Only rewrite and send profile requests to auth service.
1 parent 6556926 commit 5331a0c

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

charts/tidepool/charts/seagull/templates/4-routetable.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,27 @@ spec:
2121
extauth:
2222
disable: true
2323
- matchers:
24-
- prefix: /metadata/
24+
- regex: '/metadata/[^/]+/profile'
2525
routeAction:
2626
single:
2727
upstream:
2828
name: auth
2929
options:
30-
prefixRewrite: /v1/users/
30+
regexRewrite:
31+
pattern:
32+
regex: '/metadata/'
33+
substitution: '/v1/users/'
34+
retries:
35+
retryOn: '5xx'
36+
numRetries: 3
37+
perTryTimeout: '15s'
38+
- matchers:
39+
- prefix: /metadata/
40+
routeAction:
41+
single:
42+
upstream:
43+
name: seagull
44+
options:
3145
retries:
3246
retryOn: '5xx'
3347
numRetries: 3

0 commit comments

Comments
 (0)