This PR makes SADS "offline" available to external clients at https://<cloud-host>/sads-offline, fixing #238.
Implementation note
The SADS "offline" routing rule must come before the one for SADS classic. This is because we're using a prefix match
in both cases: /sads-offline and /sads. So if we invert the order, both routes will hit SADS classic---see #238. Why not use a regex match? In principle it's a better option since it avoids reliance on Istio match order, which is a bit of a hack.
For example,
- match:
- uri:
regex: /(sads$|sads[^-])
should match /sads, /sads/, /sads/wada-wada but not /sads-offline. Unfortunately, that regex doesn't work with Istio 1.11.4. Hence the hack.
This PR makes SADS "offline" available to external clients at
https://<cloud-host>/sads-offline
, fixing #238.Implementation note
The SADS "offline" routing rule must come before the one for SADS classic. This is because we're using a prefix match in both cases:
/sads-offline
and/sads
. So if we invert the order, both routes will hit SADS classic---see #238. Why not use a regex match? In principle it's a better option since it avoids reliance on Istio match order, which is a bit of a hack. For example,should match
/sads
,/sads/
,/sads/wada-wada
but not/sads-offline
. Unfortunately, that regex doesn't work with Istio1.11.4
. Hence the hack.