You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end featuresNameXNameX and related services proxied via namexNames TeamName Request Name Examination TeamPriority1bugSomething isn't working
The magic link produced was: https://dashboard.business.bcregistry.gov.bc.ca/incorporateNow/?nr=NR+6668012&email=mihai.dinu%40gov.bc.ca&phone=1112223344
The correct URL, in Prod, should be: https://www.business-registry-dashboard.bcregistry.gov.bc.ca/
The 1Password key for this URL is:
vault web-url
section: BUSINESS_REGISTRY_UI
key: BUSINESS_REGISTRY_URL
The code has been reviewed, again, by separate developers, and is believed to be correct.
It is believed that the problem is that the env keys were not refreshed from 1Password during this morning's deployment.
It seems the problem is just that the Emailer is not picking up the proper BUSINESS-REGISTRY-URL value from OnePass when it gets deployed.
Your checklist would definitely work.
However there is another way this can be tested without having to shut anything down.
Redeploy the Emailer allowing it to pull the secrets from OnePassword.
Go into the YAML for the NameX Emailer where it tells you the secrets it pulled.
Confirm the BUSINESS-REGISTRY-URL properly updated.
In GCP the secrets look like this in the YAML
When Richard fixed this he just manually updated this value. So when the emailer gets redeployed and that value is not what it currently is it does not work (test failed). If it does pick up the proper value than test passed.
Thanks, Ethan. I'll leave to Mihai to determine if we want to see an email with the right link or if verifying the link in the YAML is good enough. (I vote for email.)
But then the emailer had another deployment this morning and this time it pulled the correct value:
So, if I am looking at this properly, the problem fixed itself in dev. Which makes me hopeful it would have fixed itself in prod as well even though have no idea where it would get the value https://business-registry-dev.web.app/ from OnePass unless this was updated recently.
Confirm BUSINESS_REGISTRY_URL value correctly updates in the YAML in NameX Emailer Test: GCP Link to check
Move NameX Emailer from Test -----> Prod
Confirm BUSINESS_REGISTRY_URL value correctly updates in the YAML in NameX Emailer Prod: GCP Link to check
At this point we know the issue with picking up the wrong value from OnePass has been resolved
Jan 21 @ 6:00 AM To-Do
Turn the FF on
Redeploy NameX Emailer
Test email with FF on confirming emailer can pick up FF with true
Turn the FF off
Redeploy NameX Emailer
Test email with FF off confirming emailer can pick up FF with false
At this point NameX emailer is ready to comply with Directed Launch (just have to update FF to true and redeploy)
What went wrong:
When a One Password value is updated the full GCP CD pipeline has to happen for prod to pick it up. The issue was that after the deployment to dev the OnePassword value changed and then it went to test and then prod without getting updated. To fix this the full deployment of dev to test to prod was conducted and the value correctly updated.
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end featuresNameXNameX and related services proxied via namexNames TeamName Request Name Examination TeamPriority1bugSomething isn't working
Activity
[-]Copy of Namex Email: fix magic link URL[/-][+]Namex Email: fix magic link URL[/+][-]Namex Email: fix magic link URL[/-][+]Namex Emailer: fix obsolete env key[/+]rarmitag commentedon Jan 17, 2025
Fixed, please test.
severinbeauvais commentedon Jan 17, 2025
@Mihai-QuickSilverDev , do you want to test the magic link (new emails) in Prod again? When?
severinbeauvais commentedon Jan 20, 2025
@rarmitag How long would it take to test this?
EPortman commentedon Jan 20, 2025
Hi @severinbeauvais, RIch is not at work today.
It seems the problem is just that the Emailer is not picking up the proper
BUSINESS-REGISTRY-URLvalue from OnePass when it gets deployed.Your checklist would definitely work.
However there is another way this can be tested without having to shut anything down.
BUSINESS-REGISTRY-URLproperly updated.In GCP the secrets look like this in the YAML

When Richard fixed this he just manually updated this value. So when the emailer gets redeployed and that value is not what it currently is it does not work (test failed). If it does pick up the proper value than test passed.
Mihai-QuickSilverDev commentedon Jan 20, 2025
@ALL I have sent an invite for 12 noon today with All details. Let's move the conversation on that channel.
severinbeauvais commentedon Jan 20, 2025
Thanks, Ethan. I'll leave to Mihai to determine if we want to see an email with the right link or if verifying the link in the YAML is good enough. (I vote for email.)
EPortman commentedon Jan 20, 2025
Something I noticed when looking at the dev deployments:
I looked at all of the deployment of the emailer in dev from last week and they actually all had the incorrect value for BUSINESS_REGISTRY_URL.

Although I don't think this was noticed since these URLs seem to be effectively the same thing.
https://business-registry-dev.web.app/
https://dev.business-registry-dashboard.bcregistry.gov.bc.ca/
But then the emailer had another deployment this morning and this time it pulled the correct value:

So, if I am looking at this properly, the problem fixed itself in dev. Which makes me hopeful it would have fixed itself in prod as well even though have no idea where it would get the value
https://business-registry-dev.web.app/from OnePass unless this was updated recently.But we will know in 30 minutes.
severinbeauvais commentedon Jan 20, 2025
Thanks for staying on top of this, Ethan.
I may have updated the keys in 1Password (from web.app to bcregistry domain) AFTER the last Dev deployment, so it wouldn't have picked up the new key.
Currently, the keys are:
Dev

Test

Prod

EPortman commentedon Jan 20, 2025
Yup that would totally explain why that happened in dev.
EPortman commentedon Jan 20, 2025
Jan 20 To-Do
Jan 21 @ 6:00 AM To-Do
What went wrong: