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

Enable fake auth for new staging app #1206

Merged
merged 1 commit into from
Aug 14, 2023
Merged

Enable fake auth for new staging app #1206

merged 1 commit into from
Aug 14, 2023

Conversation

jazairi
Copy link
Contributor

@jazairi jazairi commented Aug 11, 2023

Why these changes are being introduced:

We have a temporary staging app, thesis-submit-staging-new, that we will use to test the new S3 bucket and SQS queues in the AWS org. It doesn't make sense to set up this second staging app with Touchstone, so it's best to use fake auth for testing purposes.

Relevant ticket(s):

N/A.

How this addresses that need:

This allows the new staging app to use fake auth.

Side effects of this change:

We'll want to remove this feature once we're done testing. An inline comment reiterates this. Longer term, it may make sense to log an exception and crash the application if fake auth is attempted in prod. (This is the situation that the app_name_pattern_match? method is trying to prevent.)

Developer

  • All new ENV is documented in README
  • All new ENV has been added to Heroku Pipeline, Staging and Prod
  • ANDI or Wave has been run in accordance to
    our guide and
    all issues introduced by these changes have been resolved or opened as new
    issues (link to those issues in the Pull Request details above)
  • Stakeholder approval has been confirmed (or is not needed)

Code Reviewer

  • The commit message is clear and follows our guidelines
    (not just this pull request message)
  • There are appropriate tests covering any new functionality
  • The documentation has been updated or is unnecessary
  • The changes have been verified
  • New dependencies are appropriate or there were no changes

Requires database migrations?

NO

Includes new or updated dependencies?

NO

Why these changes are being introduced:

We have a temporary staging app, `thesis-submit-staging-new`,
that we will use to test the new S3 bucket and SQS queues in the
AWS org. It doesn't make sense to set up this second staging
app with Touchstone, so it's best to use fake auth for testing
purposes.

Relevant ticket(s):

N/A.

How this addresses that need:

This allows the new staging app to use fake auth.

Side effects of this change:

We'll want to remove this feature once we're done testing. An inline
comment reiterates this. Longer term, it may make sense to log an
exception and crash the application if fake auth is attempted in prod.
(This is the situation that the `app_name_pattern_match?` method is
trying to prevent.)
@mitlib mitlib temporarily deployed to thesis-submit-pr-1206 August 11, 2023 17:27 Inactive
@coveralls
Copy link

Coverage Status

coverage: 98.313% (+0.001%) from 98.312% when pulling a22ae2b on temp-fake-auth-update into 233cc16 on main.

Copy link
Member

@JPrevost JPrevost left a comment

Choose a reason for hiding this comment

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

🙈

@jazairi jazairi merged commit c414177 into main Aug 14, 2023
1 check passed
@jazairi jazairi deleted the temp-fake-auth-update branch August 14, 2023 14:41
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.

4 participants