-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add secureProxy option to the cookie session #294
Conversation
…into kw-display-reports
…into kw-display-reports
…into kw-display-reports
…eam/Head-Start-TTADP into kw-display-reports
…d-Start-TTADP into kw-display-reports
…into kw-display-reports
…into kw-display-reports
…d-Start-TTADP into kw-display-reports
…Start-TTADP into kw-secure-cookie
Add explicit cookie-session options
Display reports
To eliminate `Call retries were exceeded` error for frontend tests Add --maxWorkers=50% as suggested at jestjs/jest#8769
…tests Try limiting workers for frontend tests
Extend yarn commands and add resources for backend
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make this slight tweak to ensure that non-ssl local development still works with HSES login.
src/app.js
Outdated
@@ -29,6 +29,7 @@ app.use(cookieSession({ | |||
|
|||
// Cookie Options. httpOnly is set by default to true for https | |||
sameSite: 'lax', | |||
secureProxy: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great in dev, but seems to be breaking cookies in my local environment, preventing any logins when BYPASS_AUTH
is false.
secureProxy: true, | |
secureProxy: (process.env.NODE_ENV === 'production'), |
@@ -0,0 +1,25 @@ | |||
# TTADP Backend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome add!
Thanks for finding this. Created adhocteam#174 since I wasn't able to commit the suggested change here. |
Make secureProxy setting conditional
[TTAHUB-121]: Create ADR for using New Relic for web analytics.
Description of change
Small change to add explicit option to the cookie used for session management.
plus the changes for issue 5
How to test
Issue(s)
Checklist