Skip to content
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

Passcodes | Use correct CTA format on RegistrationPasscode email #2729

Merged
merged 1 commit into from
May 15, 2024

Conversation

coldlink
Copy link
Member

@coldlink coldlink commented May 14, 2024

What does this change?

When trying to apply terraform for this email template in https://github.com/guardian/identity-platform, we kept getting unhelpful 400, 404, or 409 errors.

After much debugging and using the following command when trying to apply terraform, I was able to output the terraform raw logs to a file.

TF_LOG=DEBUG TF_LOG_PATH=tf.log terraform apply -auto-approve

This helpfully returns a full error message rather than just the status code. After much digging, the reason this template wasn't getting applied is that the CTA for the one time passcode had to be in the following format

$${oneTimePasscode}

which it then shortens to the format it needs, i.e the one that we tried using (${oneTimePasscode}).

This PR updates that CTA, and a separate PR will be created in identity-platform for applying the terraform configuration once this one is merged in.

@coldlink coldlink changed the title fix(email): use correct CTA format on RegistrationPasscode email Passcodes | Use correct CTA format on RegistrationPasscode email May 14, 2024
@coldlink coldlink marked this pull request as ready for review May 15, 2024 07:57
@coldlink coldlink requested a review from a team as a code owner May 15, 2024 07:57
Copy link
Contributor

@raphaelkabo raphaelkabo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 Amazing detective work! So glad you worked it out.

@coldlink coldlink merged commit 2a2434b into main May 15, 2024
27 checks passed
@coldlink coldlink deleted the mm/fix-registration-passcode-email branch May 15, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants