{"id":15180639,"url":"https://github.com/torchbox/django-sentry-secure-source-map","last_synced_at":"2026-02-17T11:03:21.155Z","repository":{"id":178302876,"uuid":"627473885","full_name":"torchbox/django-sentry-secure-source-map","owner":"torchbox","description":"A middleware to ensure only Sentry can access source maps.","archived":false,"fork":false,"pushed_at":"2024-10-09T15:30:20.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T13:50:30.971Z","etag":null,"topics":["django","sentry","sourcemap"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/django-sentry-secure-source-map/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/torchbox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-13T14:38:45.000Z","updated_at":"2024-10-09T15:22:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"b2473a34-9ecc-4a7b-8652-2461ec09550b","html_url":"https://github.com/torchbox/django-sentry-secure-source-map","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":"0.050000000000000044","last_synced_commit":"8908ce94c0b9eb7276652d31d36fa2f0c28756d7"},"previous_names":["torchbox/django-sentry-secure-source-map"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/torchbox/django-sentry-secure-source-map","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torchbox%2Fdjango-sentry-secure-source-map","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torchbox%2Fdjango-sentry-secure-source-map/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torchbox%2Fdjango-sentry-secure-source-map/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torchbox%2Fdjango-sentry-secure-source-map/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/torchbox","download_url":"https://codeload.github.com/torchbox/django-sentry-secure-source-map/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torchbox%2Fdjango-sentry-secure-source-map/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29541119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T08:11:05.436Z","status":"ssl_error","status_checked_at":"2026-02-17T08:09:38.860Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","sentry","sourcemap"],"created_at":"2024-09-27T16:40:13.589Z","updated_at":"2026-02-17T11:03:21.123Z","avatar_url":"https://github.com/torchbox.png","language":"Python","readme":"# django-sentry-secure-source-map\n\n\n![CI](https://github.com/torchbox/django-sentry-secure-source-map/workflows/CI/badge.svg)\n![PyPI](https://img.shields.io/pypi/v/django-sentry-secure-source-map.svg)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/django-sentry-secure-source-map.svg)\n\n\nA middleware to ensure only Sentry can access source maps.\n\nWhen enabled, only requests from Sentry will be able to access source maps (any URL starting with `STATIC_URL` and ending `.map`).\n\nFor more information, see [Secure Access to Source Maps](https://docs.sentry.io/platforms/javascript/sourcemaps/uploading/hosting-publicly/#secure-access-to-source-maps)\n\n## Installation\n\n```\npip install django-sentry-secure-source-map\n```\n\nThen 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`](https://pypi.org/project/whitenoise/).\n\nNext, you need to configure the token. Retrieve your project's \"Security Token\" from the settings page, and set it as `SENTRY_SECURITY_TOKEN`.\n\n```python\nSENTRY_SECURITY_TOKEN = \"abcde12345\"\n```\n\nIf the token isn't set, the middleware does nothing.\n\n\"Enable JavaScript source fetching\" **must** be enabled in Sentry.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorchbox%2Fdjango-sentry-secure-source-map","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorchbox%2Fdjango-sentry-secure-source-map","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorchbox%2Fdjango-sentry-secure-source-map/lists"}