Skip to content

Commit

Permalink
⬆️ update open-api-framework
Browse files Browse the repository at this point in the history
  • Loading branch information
Coperh committed Aug 27, 2024
1 parent 29a84b0 commit 34760dd
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
12 changes: 12 additions & 0 deletions docs/installation/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@ Elastic APM
* ``ELASTIC_APM_TRANSACTION_SAMPLE_RATE``: By default, the agent will sample every transaction (e.g. request to your service). To reduce overhead and storage requirements, set the sample rate to a value between 0.0 and 1.0. Defaults to: ``0.1``.


Content Security Policy
-----------------------

* ``CSP_EXTRA_DEFAULT_SRC``: Extra default source URLs for CSP other than ``self``. Used for ``img-src``, ``style-src`` and ``script-src``. Defaults to: ``[]``.
* ``CSP_REPORT_URI``: URI of the``report-uri`` directive. Defaults to: ``None``.
* ``CSP_REPORT_PERCENTAGE``: Percentage of requests that get the ``report-uri`` directive. Defaults to: ``0``.
* ``CSP_EXTRA_FORM_ACTION``: Add additional ``form-action`` source to the default . Defaults to: ``[]``.
* ``CSP_FORM_ACTION``: Override the default ``form-action`` source. Defaults to: ``['"\'self\'"']``.
* ``CSP_EXTRA_IMG_SRC``: Extra ``img-src`` sources for CSP other than ``CSP_DEFAULT_SRC``. Defaults to: ``[]``.
* ``CSP_OBJECT_SRC``: ``object-src`` urls. Defaults to: ``['"\'none\'"']``.


Optional
--------

Expand Down
5 changes: 4 additions & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ django==4.2.15
# django-appconf
# django-axes
# django-cors-headers
# django-csp
# django-filter
# django-formtools
# django-import-export
Expand Down Expand Up @@ -114,6 +115,8 @@ django-axes==6.5.1
# via open-api-framework
django-cors-headers==4.4.0
# via open-api-framework
django-csp==3.8
# via open-api-framework
django-filter==24.2
# via
# commonground-api-common
Expand Down Expand Up @@ -235,7 +238,7 @@ mozilla-django-oidc-db==0.19.0
# via open-api-framework
notifications-api-common==0.2.2
# via commonground-api-common
open-api-framework==0.7.1
open-api-framework==0.8.0
# via -r requirements/base.in
openpyxl==3.1.5
# via tablib
Expand Down
7 changes: 6 additions & 1 deletion requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ django==4.2.15
# django-appconf
# django-axes
# django-cors-headers
# django-csp
# django-filter
# django-formtools
# django-import-export
Expand Down Expand Up @@ -170,6 +171,10 @@ django-cors-headers==4.4.0
# via
# -r requirements/base.txt
# open-api-framework
django-csp==3.8
# via
# -r requirements/base.txt
# open-api-framework
django-filter==24.2
# via
# -r requirements/base.txt
Expand Down Expand Up @@ -401,7 +406,7 @@ notifications-api-common==0.2.2
# via
# -r requirements/base.txt
# commonground-api-common
open-api-framework==0.7.1
open-api-framework==0.8.0
# via -r requirements/base.txt
openpyxl==3.1.5
# via
Expand Down
8 changes: 7 additions & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ django==4.2.15
# django-appconf
# django-axes
# django-cors-headers
# django-csp
# django-debug-toolbar
# django-extensions
# django-filter
Expand Down Expand Up @@ -220,6 +221,11 @@ django-cors-headers==4.4.0
# -c requirements/ci.txt
# -r requirements/ci.txt
# open-api-framework
django-csp==3.8
# via
# -c requirements/ci.txt
# -r requirements/ci.txt
# open-api-framework
django-debug-toolbar==4.4.6
# via -r requirements/dev.in
django-extensions==3.2.3
Expand Down Expand Up @@ -542,7 +548,7 @@ notifications-api-common==0.2.2
# -c requirements/ci.txt
# -r requirements/ci.txt
# commonground-api-common
open-api-framework==0.7.1
open-api-framework==0.8.0
# via
# -c requirements/ci.txt
# -r requirements/ci.txt
Expand Down

0 comments on commit 34760dd

Please sign in to comment.