{"id":18388255,"url":"https://github.com/ccnmtl/django-s3sign","last_synced_at":"2026-02-06T18:13:10.281Z","repository":{"id":6042342,"uuid":"54556727","full_name":"ccnmtl/django-s3sign","owner":"ccnmtl","description":"s3 sign view for django","archived":false,"fork":false,"pushed_at":"2026-02-05T22:50:43.000Z","size":733,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-02-06T08:50:42.449Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ccnmtl.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-03-23T12:07:09.000Z","updated_at":"2026-02-05T22:50:47.000Z","dependencies_parsed_at":"2023-11-14T15:28:21.408Z","dependency_job_id":"05dbc948-b5ff-4e15-bcaf-11243915f834","html_url":"https://github.com/ccnmtl/django-s3sign","commit_stats":{"total_commits":83,"total_committers":7,"mean_commits":"11.857142857142858","dds":"0.49397590361445787","last_synced_commit":"51ae7e3a72fe294bd16ad3d4279b5e968929ae22"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/ccnmtl/django-s3sign","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccnmtl%2Fdjango-s3sign","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccnmtl%2Fdjango-s3sign/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccnmtl%2Fdjango-s3sign/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccnmtl%2Fdjango-s3sign/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ccnmtl","download_url":"https://codeload.github.com/ccnmtl/django-s3sign/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccnmtl%2Fdjango-s3sign/sbom","scorecard":{"id":269232,"data":{"date":"2025-08-11","repo":{"name":"github.com/ccnmtl/django-s3sign","commit":"7b364238ab7c40ce52182b401ed2bf17d92dc7c6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-and-test.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/ccnmtl/django-s3sign/build-and-test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-and-test.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/ccnmtl/django-s3sign/build-and-test.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":-1,"reason":"Found no human activity in the last 15 changesets","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build-and-test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 0.5.1 not signed: https://api.github.com/repos/ccnmtl/django-s3sign/releases/194983298","Warn: release artifact 0.5.0 not signed: https://api.github.com/repos/ccnmtl/django-s3sign/releases/194508816","Warn: release artifact 0.4.1 not signed: https://api.github.com/repos/ccnmtl/django-s3sign/releases/194217389","Warn: release artifact 0.4.0 not signed: https://api.github.com/repos/ccnmtl/django-s3sign/releases/122108206","Warn: release artifact 0.3.3 not signed: https://api.github.com/repos/ccnmtl/django-s3sign/releases/94658198","Warn: release artifact 0.5.1 does not have provenance: https://api.github.com/repos/ccnmtl/django-s3sign/releases/194983298","Warn: release artifact 0.5.0 does not have provenance: https://api.github.com/repos/ccnmtl/django-s3sign/releases/194508816","Warn: release artifact 0.4.1 does not have provenance: https://api.github.com/repos/ccnmtl/django-s3sign/releases/194217389","Warn: release artifact 0.4.0 does not have provenance: https://api.github.com/repos/ccnmtl/django-s3sign/releases/122108206","Warn: release artifact 0.3.3 does not have provenance: https://api.github.com/repos/ccnmtl/django-s3sign/releases/94658198"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T12:55:44.518Z","repository_id":6042342,"created_at":"2025-08-17T12:55:44.518Z","updated_at":"2025-08-17T12:55:44.518Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29171318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T16:33:35.550Z","status":"ssl_error","status_checked_at":"2026-02-06T16:33:30.716Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-11-06T01:33:14.659Z","updated_at":"2026-02-06T18:13:10.274Z","avatar_url":"https://github.com/ccnmtl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/ccnmtl/django-s3sign.svg?branch=master)](https://travis-ci.org/ccnmtl/django-s3sign)\n\n# django-s3sign\ns3 sign view for django. Facilitates file uploads to AWS S3.\n\n## installation\n\n    $ pip install django-s3sign\n\n## usage\n\nAdd `s3sign` to `INSTALLED_APPS`. Subclass `s3sign.views.SignS3View`\nand override as needed.\n\nAttributes you can override (and their default values):\n\n```\n    name_field = 's3_object_name'\n    type_field = 's3_object_type'\n    expiration_time = 10\n    default_extension = '.obj'\n    root = ''\n    path_string = (\n        \"{root}{now.year:04d}/{now.month:02d}/\"\n        \"{now.day:02d}/{basename}{extension}\")\n```\n\nMethods you can override:\n\n* `get_aws_access_key(self)`\n* `get_aws_secret_key(self)`\n* `get_bucket(self)`\n* `get_mimetype(self, request)`\n* `extension_from_mimetype(self, mime_type)`\n* `now()` # useful for unit tests\n* `now_time()` # useful for unit tests\n* `basename()`\n* `get_object_name(self, extension)`\n\nMost of those should be clear. Read the source if in doubt.\n\n\nEg to use a different root path:\n\n\n```\nfrom s3sign.views import SignS3View\n...\n\nclass MySignS3View(LoggedInView, SignS3View):\n    root = 'uploads/'\n```\n\nWith a different S3 bucket:\n\n```\nclass MySignS3View(LoggedInView, SignS3View):\n    def get_bucket(self):\n        return settings.DIFFERENT_BUCKET_NAME\n```\n\nKeeping the uploaded filename instead of doing a random one and\nwhitelisted extension:\n\n```\nclass MySignS3View(LoggedInView, SignS3View):\n    def basename(self, request):\n        filename = request.GET[self.get_name_field()]\n        return os.path.basename(filename)\n\n    def extension(self, request):\n        filename = request.GET[self.get_name_field()]\n        return os.path.splitext(filename)[1]\n```\n\n\n### javascript/forms\n\nThe required javascript is also included, so you can include it in\nyour page with:\n\n    {% load static %}\n\n    \u003cscript src=\"{% static 's3sign/js/s3upload.js' %}\"\u003e\u003c/script\u003e\n\nYour form would then somewhere have a bit like:\n\n    \u003cform method=\"post\"\u003e\n        \u003cp id=\"status\"\u003e\n            \u003cstrong\u003ePlease select a file\u003c/strong\u003e\n        \u003c/p\u003e\n\n        \u003cinput type=\"hidden\" name=\"s3_url\" id=\"uploaded-url\" /\u003e\n        \u003cinput type=\"file\" id=\"file\" onchange=\"s3_upload();\"/\u003e\n    \u003c/form\u003e\n\nAnd\n\n```\n\u003cscript\u003e\nfunction s3_upload() {\n    const s3upload = new S3Upload({\n        file_dom_el: null, // Optional, and overrides file_dom_selector\n                           // when present.\n        file_dom_selector: '#file',\n        s3_sign_put_url: '/sign_s3/', // change this if you route differently\n        s3_object_name: $('#file')[0].value,\n\n        onProgress: function(percent, message) {\n            $('#status').text('Upload progress: ' + percent + '% ' + message);\n        },\n        onFinishS3Put: function(url) {\n            $('#uploaded-url').val(url);\n        },\n        onError: function(status) {\n            $('#status').text('Upload error: ' + status);\n        }\n    });\n}\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccnmtl%2Fdjango-s3sign","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccnmtl%2Fdjango-s3sign","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccnmtl%2Fdjango-s3sign/lists"}