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

Fixing sender email address and cookie name conflicts in edX deployments #569

Merged
merged 1 commit into from
Jan 21, 2022

Conversation

blarghmatey
Copy link
Member

This fixes two distinct and unrelated issues that we are seeing in our edX installations.

  • When working across installations that share a subdomain (e.g. QA and production or residential staging and live) users are unable to stay logged into the corresponding edX installations. This is due to a conflict in the cookie names related to JWT sessions for e.g. the learner MFE. This adds environment scoping to all of the cookie names that might conflict across installations.
  • When sending bulk emails through the instructor dashboard we are seeing various failure modes. The root of the issue is that the BULK_EMAIL_DEFAULT_FROM_EMAIL value needs to be overridden or else those bulk emails will be sent from [email protected]. This adds an appropriate value for that setting to each of the configuration templates relating to our separate deployments.

@pdpinch
Copy link
Member

pdpinch commented Jan 20, 2022

lgtm, although it's an ambitious change set for one PR.

I think we should set EMAIL_USE_COURSE_ID_FROM_FOR_BULK to False as well, for all our open edx distributions. It defaults to False, but I think it will make more sense the next we look

For reference, I think openedx/edx-platform#29001 changed the bulk mail settings, and it was backported to maple shortly before release.

@briangrossman
Copy link
Contributor

Desired from email addresses for MITx Online and xPRO:

@pdpinch
Copy link
Member

pdpinch commented Jan 20, 2022

one more email address:

This fixes two distinct and unrelated issues that we are seeing in our edX installations.

- When working across installations that share a subdomain (e.g. QA and production or residential staging and live) users are unable to stay logged into the corresponding edX installations. This is due to a conflict in the cookie names related to JWT sessions for e.g. the learner MFE. This adds environment scoping to all of the cookie names that might conflict across installations.
- When sending bulk emails through the instructor dashboard we are seeing various failure modes. The root of the issue is that the `BULK_EMAIL_DEFAULT_FROM_EMAIL` value needs to be overridden or else those bulk emails will be sent from `[email protected]`. This adds an appropriate value for that setting to each of the configuration templates relating to our separate deployments.
@blarghmatey blarghmatey force-pushed the edx_email_and_cookie_fixes branch from 77c3ab8 to e896d63 Compare January 21, 2022 02:49
@blarghmatey blarghmatey merged commit f08af76 into main Jan 21, 2022
@blarghmatey blarghmatey deleted the edx_email_and_cookie_fixes branch January 21, 2022 02:51
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.

3 participants