-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change app gateway to redirect self-registration links to /app #3344
Conversation
@nickclyde Have you tried rolling this out via a deploy to a lower environment? I'm not seeing your change reflected in the output of |
I actually manually made the changes in the Azure portal on the dev gateway but I haven't tried it through terraform. I do see it in the plan output here though. If I deploy this branch to dev, will terraform apply the changes only to the dev gateway? |
Yep! TF is part of a deploy, so your changes will be applied in dev. |
It works on dev!! Check it out: https://dev.simplereport.gov/register/E8Q2P I did have a question about the env naming though. If merged as is, the redirect in prod will point at https://prod.simplereport.gov/app instead of https://simplereport.gov/app. Do we have an existing pattern somewhere in TF for handling that difference, or should I just do a ternary like |
Nice!
As far as the ternary, that is, in fact, what we're doing elsewhere:
I still want to see if the rewrite rule provides some variables we can use but otherwise this is a reasonable way of doing it I think. |
Kudos, SonarCloud Quality Gate passed! |
Ah, I missed that! Thank you for pointing it out, and for the test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything here looks good to me, and it looks like you were able to verify these changes with Josh. Again, thank you for taking this on!
Related Issue or Background Info
/register/foo
) would render a blank white page. Our app gateway is currently configured to catch any/register/*
requests and rewrite them as/app/register/*
. React router v5 seemed to handle this just fine, but v6 does not. We can alter the app to pass out links prefixed with/app
, but we need to support the old links too in case orgs have them saved outside of the app. One way to support this is to change the configuration of our app gateway to redirect/register/*
requests to/app/register/*
instead of rewriting.Changes Proposed
/register/*
requests to/app/register/*
instead of rewriting.Additional Information
Screenshots / Demos
Checklist for Author and Reviewer
Infrastructure
terraform-plan
job inside the "Terraform Checks" workflow run for this PR. Confirm that there are no unexpected changes!Design
test
,dev
, orpentest
and smoke-tested by both the engineering and design teamsContent
Support
Testing
Changes are Backwards Compatible
(including re-granting permission to the no-PHI user if need be)
./gradlew liquibaseRollbackSQL
orliquibaseRollback
Security
Cloud
test
,dev
, orpentest
environment for verification