network
network copied to clipboard
Updating custom domain does not update magic link url correctly
Preflight checklist
- [X] I could not find a solution in the existing issues, docs, nor discussions.
- [X] I agree to follow this project's Code of Conduct.
- [X] I have read and am following this repository's Contribution Guidelines.
- [X] This issue affects my Ory Network project.
- [ ] I have joined the Ory Community Slack.
- [ ] I am signed up to the Ory Security Patch Newsletter.
Describe the bug
When updating the custom domain (to another domain), the /selfservice/methods/link/config/base_url value is not properly being set.
Reproducing the bug
- Create a project
- Set a custom domain
- Use magic links
- Send verification email (via oryapis.com, not via custom domains)
- Set new custom domain
- Send verification email (via oryapis.com, not via custom domains)
- Verification link uses old CNAME
Relevant log output
No response
Relevant configuration
No response
Version
master
On which operating system are you observing this issue?
Ory Network
In which environment are you deploying?
Ory Network
Additional Context
There is a workaround - run the following command to reset this config value, which sets it to the correct custom domain:
ory patch identity-config <your-project-id> \
--remove '/selfservice/methods/link/config/base_url'
https://ory-community.slack.com/archives/C02MR4DEEGH/p1673886271632689