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 | Provenance | Actions |
|---|---|---|---|---|
| django_sentry_secure_source_map-0.2.0.tar.gz | 4.6 kB | Without provenance | Details for django_sentry_secure_source_map-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_sentry_secure_source_map-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for django_sentry_secure_source_map-0.2.0-py3-none-any.whl |
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
|
Security for django-sentry-secure-source-map 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.