In order to expose a deployment in an ephemeral environment, we can use istio virtual service with either path based routing i.e, /prod endpoint pointing to prod instance and /ephemeral/pr-123 pointing to an ephemeral instance that is created off of a PR OR sub-domain based routing i.e, prod.hopic-sdpac.phac-aspc.alpha.canada.ca pointing to prod instance and *.dev.hopic-sdpac.phac-aspc.alpha.canada.ca pointing to ephemeral instances where * can be a PR id.
Path based routing has it's benefits in terms of SSO because the redirect URIs only need to be configured once, however, it might require some changes to the application code. Sub-domain based routing, on the other hand, does not require app updates, but also does work with SSO unless we can get a wildcard redirect URI.
Relates to #138
In order to expose a deployment in an ephemeral environment, we can use istio virtual service with either path based routing i.e,
/prodendpoint pointing to prod instance and/ephemeral/pr-123pointing to an ephemeral instance that is created off of a PR OR sub-domain based routing i.e,prod.hopic-sdpac.phac-aspc.alpha.canada.capointing to prod instance and*.dev.hopic-sdpac.phac-aspc.alpha.canada.capointing to ephemeral instances where*can be a PR id.Path based routing has it's benefits in terms of SSO because the redirect URIs only need to be configured once, however, it might require some changes to the application code. Sub-domain based routing, on the other hand, does not require app updates, but also does work with SSO unless we can get a wildcard redirect URI.
Relates to #138