Skip to main content

django-sentry-secure-source-map

CI PyPI PyPI - Python Version

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)

Source distribution for django-sentry-secure-source-map 0.2.0
File Size Uploaded
django_sentry_secure_source_map-0.2.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-sentry-secure-source-map 0.2.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page