{"id":42781389,"url":"https://github.com/developersociety/django-maskpostgresdata","last_synced_at":"2026-01-29T22:43:04.953Z","repository":{"id":35045101,"uuid":"200231576","full_name":"developersociety/django-maskpostgresdata","owner":"developersociety","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-18T14:55:52.000Z","size":45,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-09-20T11:21:41.898Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/developersociety.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-02T12:33:42.000Z","updated_at":"2023-05-30T12:09:56.000Z","dependencies_parsed_at":"2022-09-16T01:35:36.053Z","dependency_job_id":null,"html_url":"https://github.com/developersociety/django-maskpostgresdata","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/developersociety/django-maskpostgresdata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersociety%2Fdjango-maskpostgresdata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersociety%2Fdjango-maskpostgresdata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersociety%2Fdjango-maskpostgresdata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersociety%2Fdjango-maskpostgresdata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developersociety","download_url":"https://codeload.github.com/developersociety/django-maskpostgresdata/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersociety%2Fdjango-maskpostgresdata/sbom","scorecard":{"id":337154,"data":{"date":"2025-08-11","repo":{"name":"github.com/developersociety/django-maskpostgresdata","commit":"1cc60d1245a278c7b9e7c0ea3ef2003bbedc12fc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.3,"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":9,"reason":"Found 18/19 approved changesets -- score normalized to 9","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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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":-1,"reason":"no releases found","details":null,"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 29 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-18T04:58:35.679Z","repository_id":35045101,"created_at":"2025-08-18T04:58:35.679Z","updated_at":"2025-08-18T04:58:35.679Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28888448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"last_error":"SSL_read: 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":"2026-01-29T22:43:04.855Z","updated_at":"2026-01-29T22:43:04.946Z","avatar_url":"https://github.com/developersociety.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Django Mask Postgres Data\n=========================\n\nAdds a management command to your Django project which allows you to create a (sort of) pg_dump\nof your data with sensitive data masked.\n\nInstallation\n------------\n\nInstall with pip:\n\n`pip install django-maskpostgresdata`\n\nAnd add `maskpostgresdata` to your `INSTALLED_APPS`:\n\n```\nINSTALLED_APPS = [\n    ...\n    'maskpostgresdata',\n    ...\n]\n```\n\nUsage\n-----\n\nBy default, `django-maskpostgresdata` will replace the `password` column for each row in the Django `User` model with \"password\". Just run `manage.py dump_masked_data` and you'll get a pg_dump with the password field changed to \"password\" for all users.\n\nThere are 2 ways to customise the behaviour of `django-maskpostgresdata`.\n\nTo override individual fields of a model with a given value, add a dictionary called `MASKER_FIELDS` to your settings using the following format:\n\n```\nMASKER_FIELDS = {\n    \"{ APP_NAME }\": {\"{ MODEL_NAME }\": {\"{ FIELD_NAME }\": { VALUE },}},\n}\n```\n\nAlternatively, you can define exactly how the data is updated by subclassing `BasePostgresDataMaskingCommand` in a management command of your own. For example:\n\n```\nfrom django.contrib.auth.hashers import make_password\n\nfrom maskpostgresdata import BasePostgresDataMaskingCommand\n\n\nclass Command(BasePostgresDataMaskingCommand):\n\n    def update_auth_user(self, queryset):\n        queryset.update(password=make_password(\"a_different_password\"))\n\n```\n\nJust create a method called `update_{ db_table_name }` taking a `queryset` as the parameter. You can then perform `update` operations on this queryset. `{ db_table_name }` is of the format `{app_label}_{model_name}` by default, but could technically be different.\n\nYou can then run `manage.py dump_masked_data` and it will dump your data to `stdout`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopersociety%2Fdjango-maskpostgresdata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopersociety%2Fdjango-maskpostgresdata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopersociety%2Fdjango-maskpostgresdata/lists"}