-
-
Notifications
You must be signed in to change notification settings - Fork 648
security: harden production settings for GraphQL, HSTS, and HTTP headers (fixes #3783) #3799
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
Changes from 14 commits
fb4083b
d8d8c2f
c19fb64
71894b0
21684b9
1b204b7
62f6d92
894cbf6
502c36f
9c61fc0
d817ed8
5c4d4b8
439d41f
ea4e219
9aa535a
de32260
c7fa9aa
d28bf41
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
ScienHAC marked this conversation as resolved.
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,3 +54,10 @@ class Production(Base): | |
|
|
||
| SLACK_COMMANDS_ENABLED = True | ||
| SLACK_EVENTS_ENABLED = True | ||
|
|
||
| # Security | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A believe a more reasonable default would be to have security settings shared by staging/production via base.py and have them overridden in local as needed. |
||
| SECURE_HSTS_SECONDS = 31536000 | ||
| SECURE_HSTS_INCLUDE_SUBDOMAINS = True | ||
| SECURE_HSTS_PRELOAD = True | ||
| SECURE_SSL_REDIRECT = True | ||
|
ScienHAC marked this conversation as resolved.
Outdated
|
||
| SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") | ||
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.
Let's make
settings.IS_FUZZ_ENVIRONMENTwork.