-
-
Notifications
You must be signed in to change notification settings - Fork 544
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 all 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,6 +28,7 @@ class Base(Configuration): | |
|
|
||
| RELEASE_VERSION = values.Value(environ_name="RELEASE_VERSION") | ||
|
|
||
| CSRF_COOKIE_SECURE = True | ||
| SESSION_COOKIE_HTTPONLY = True | ||
| SESSION_COOKIE_NAME = "nest.session-id" | ||
| SESSION_COOKIE_SAMESITE = "Lax" | ||
|
|
@@ -229,3 +230,10 @@ class Base(Configuration): | |
| SLACK_COMMANDS_ENABLED = True | ||
| SLACK_EVENTS_ENABLED = True | ||
| SLACK_SIGNING_SECRET = values.SecretValue() | ||
|
|
||
| SECURE_CONTENT_TYPE_NOSNIFF = True | ||
| SECURE_HSTS_INCLUDE_SUBDOMAINS = True | ||
| SECURE_HSTS_PRELOAD = True | ||
| SECURE_HSTS_SECONDS = 31536000 | ||
| SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") | ||
| SECURE_SSL_REDIRECT = True | ||
|
Contributor
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. P1: Either add Prompt for AI agents |
||
Uh oh!
There was an error while loading. Please reload this page.