django-sentry-secure-source-map
A middleware to ensure only Sentry can access source maps.
When enabled, only requests from Sentry will be able to access source maps (any URL starting with STATIC_URL and ending .map).
For more information, see Secure Access to Source Maps
Installation
pip install django-sentry-secure-source-map
Then add sentry_secure_source_map.SentrySecureSourceMapMiddleware to your MIDDLEWARE in settings.py. Ideally, it should be placed as high as possible, before tools like whitenoise.
Next, you need to configure the token. Retrieve your project's "Security Token" from the settings page, and set it as SENTRY_SECURITY_TOKEN.
SENTRY_SECURITY_TOKEN = "abcde12345"
If the token isn't set, the middleware does nothing.
"Enable JavaScript source fetching" must be enabled in Sentry.
Metadata
Release files for django-sentry-secure-source-map 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_sentry_secure_source_map-0.2.0.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_sentry_secure_source_map-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.2 kB
Release files / django_sentry_secure_source_map-0.2.0.tar.gz
| Download URL | django_sentry_secure_source_map-0.2.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
268b684028d2fe4a8f62e267534d528262b9eac1a8e804be635440f05ff14e43
|
|
BLAKE2b-256 checksum How to use checksums |
a97a64955e8c45162da2861b6f9fc4464a5cfa79dfd386786b91944365a2ad17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Release files / django_sentry_secure_source_map-0.2.0-py3-none-any.whl
| Download URL | django_sentry_secure_source_map-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6be1874cffcdd30f2206e343628aa4e43649a4bcabf44a4312d13318d0c35481
|
|
BLAKE2b-256 checksum How to use checksums |
906e91276d6383b33a3c97f457adafafdb812810c53aa4ff36dbaa27b3808788
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|