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

task(auth): Add environment to totp service name #18165

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

dschom
Copy link
Contributor

@dschom dschom commented Dec 21, 2024

Because

  • We want to be able to distinguish the environment that generated the totp entries

This pull request

  • Append the environment name to the service provided to authenticator.keyuri

Issue that this pull request solves

Closes: FXA-10834

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

Any other information that is important to this pull request.

@dschom dschom requested a review from a team as a code owner December 21, 2024 02:24
@@ -173,7 +173,8 @@ module.exports = function (
customs,
config.totp,
glean,
profile
profile,
config.sentry.env
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the Sentry env name?

Copy link
Contributor Author

@dschom dschom Dec 23, 2024

Choose a reason for hiding this comment

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

It's the most reliable. You can't use NODE_ENV, cause it's production on stage and production...

Copy link
Contributor

Choose a reason for hiding this comment

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

I see. Maybe update the comment for that config?

Copy link
Contributor

@chenba chenba left a comment

Choose a reason for hiding this comment

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

Thank you for making this change. r+wc

@dschom dschom force-pushed the FXA-10834 branch 2 times, most recently from e72f1e9 to 073212d Compare December 23, 2024 21:57
Because:
- We want to be able to distinguish totp entries

This Commit:
- Append the environment name to the service provided to authenticator.keyuri
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.

2 participants