Skip to content

Commit d26d0bb

Browse files
authored
Merge pull request #54 from maykinmedia/issue/envvar-missing-helptext
🐛 Add missing help_text for cookie samesite envvars
2 parents 9fd9498 + 84e1f5a commit d26d0bb

File tree

5 files changed

+28
-6
lines changed

5 files changed

+28
-6
lines changed

CHANGELOG.rst

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Changelog
22
=========
33

4+
0.7.1 (2024-08-16)
5+
------------------
6+
7+
**Bugfixes**
8+
9+
* Add missing help_text for SESSION_COOKIE_SAMESITE and CSRF_COOKIE_SAMESITE envvars
10+
411
0.7.0 (2024-08-15)
512
------------------
613

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Open API Framework
22
==================
33

4-
:Version: 0.7.0
4+
:Version: 0.7.1
55
:Source: https://github.com/maykinmedia/open-api-framework
66
:Keywords: metapackage, dependencies
77

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
author = "Maykin Media"
2727

2828
# The full version, including alpha/beta/rc tags
29-
release = "0.7.0"
29+
release = "0.7.1"
3030

3131

3232
# -- General configuration ---------------------------------------------------

open_api_framework/conf/base.py

+17-2
Original file line numberDiff line numberDiff line change
@@ -539,10 +539,25 @@
539539
#
540540
SESSION_COOKIE_SECURE = IS_HTTPS
541541
SESSION_COOKIE_HTTPONLY = True
542-
SESSION_COOKIE_SAMESITE = config("SESSION_COOKIE_SAMESITE", "Strict")
542+
SESSION_COOKIE_SAMESITE = config(
543+
"SESSION_COOKIE_SAMESITE",
544+
"Strict",
545+
help_text=(
546+
"The value of the SameSite flag on the session cookie. This flag prevents the "
547+
"cookie from being sent in cross-site requests thus preventing CSRF attacks and "
548+
"making some methods of stealing session cookie impossible."
549+
),
550+
)
543551

544552
CSRF_COOKIE_SECURE = IS_HTTPS
545-
CSRF_COOKIE_SAMESITE = config("CSRF_COOKIE_SAMESITE", "Strict")
553+
CSRF_COOKIE_SAMESITE = config(
554+
"CSRF_COOKIE_SAMESITE",
555+
"Strict",
556+
help_text=(
557+
"The value of the SameSite flag on the CSRF cookie. This flag prevents the cookie "
558+
"from being sent in cross-site requests."
559+
),
560+
)
546561

547562
X_FRAME_OPTIONS = "DENY"
548563

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "open_api_framework"
7-
version = "0.7.0"
7+
version = "0.7.1"
88
description = "A metapackage for registration components, that bundles the dependencies shared between these components and provides generic settings"
99
authors = [
1010
{name = "Maykin Media", email = "support@maykinmedia.nl"}
@@ -100,7 +100,7 @@ testpaths = ["tests"]
100100
DJANGO_SETTINGS_MODULE = "testapp.settings"
101101

102102
[tool.bumpversion]
103-
current_version = "0.7.0"
103+
current_version = "0.7.1"
104104
files = [
105105
{filename = "pyproject.toml"},
106106
{filename = "README.rst"},

0 commit comments

Comments
 (0)