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

Use maildev for local development #951

Closed
liangyuanruo opened this issue Nov 23, 2020 · 2 comments · Fixed by #1339
Closed

Use maildev for local development #951

liangyuanruo opened this issue Nov 23, 2020 · 2 comments · Fixed by #1339
Labels
P2 Not urgent, but work on it once you're done with current tasks security

Comments

@liangyuanruo
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Currently local development requires hardcoding OTPs to "111111" and using the dummy MailerNoOp service.

Describe the solution you'd like
Integrate maildev with for use in local development instead. This will close the security risks from accidentally generating dummy OTPs in production, and align development to be closer to the production setup.

@liangyuanruo liangyuanruo added security P2 Not urgent, but work on it once you're done with current tasks labels Nov 23, 2020
@LoneRifle
Copy link
Contributor

Instead of that, why not we just stub nodemailer in dev?

@liangyuanruo
Copy link
Contributor Author

I would like to exercise the same nodemailer code path as closely as possible. wit this implementation, the difference will be minimal as only the transport will differ.

LoneRifle pushed a commit that referenced this issue Mar 22, 2021
Currently local development requires hardcoding OTPs to "111111" and using the dummy MailerNoOp
service.

-implemented maildev for local development
-added an environment variable to toggle
maildev, defaults to true

fix #951
orbitalsqwib added a commit that referenced this issue Mar 22, 2021
- Removed MailerNoOp and Nodemailer Direct Transport
- Removed `USE_MAILDEV` env var
- Refactored code paths to always use maildev for development
- Improved LoginProcedure to use regex to find OTP

fix #951
orbitalsqwib added a commit that referenced this issue Mar 23, 2021
- Refactored Nodemailer transport option configurations for clarity
- Cleaned up email, inversify and config files

fix #951
orbitalsqwib added a commit that referenced this issue Mar 23, 2021
- Removed maildev from dependencies as maildev is currently run through a docker container

fix #951
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Not urgent, but work on it once you're done with current tasks security
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants