{"id":15754226,"url":"https://github.com/miniscruff/scopie","last_synced_at":"2025-05-07T07:43:50.191Z","repository":{"id":214716010,"uuid":"736823935","full_name":"miniscruff/scopie","owner":"miniscruff","description":"Scope based authorization framework design","archived":false,"fork":false,"pushed_at":"2025-04-12T20:23:28.000Z","size":2479,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T21:28:07.089Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://scopie.dev/","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miniscruff.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,"zenodo":null}},"created_at":"2023-12-29T01:47:03.000Z","updated_at":"2025-04-12T20:23:09.000Z","dependencies_parsed_at":"2024-03-23T04:27:34.338Z","dependency_job_id":"f24b45e2-12ae-4e16-8acc-c8e620b5a4e6","html_url":"https://github.com/miniscruff/scopie","commit_stats":null,"previous_names":["miniscruff/scopie"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniscruff%2Fscopie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniscruff%2Fscopie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniscruff%2Fscopie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniscruff%2Fscopie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miniscruff","download_url":"https://codeload.github.com/miniscruff/scopie/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252837643,"owners_count":21811934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-10-04T08:01:37.829Z","updated_at":"2025-05-07T07:43:50.182Z","avatar_url":"https://github.com/miniscruff.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Scopie](https://scopie.dev/)\n\nAuthorization engine for configuring per user per feature access control.\nAccess is configured via plain text and handled directly via code.\nConfiguration storage is controlled by you, scopie just handles the logic.\n\n## Implementations\n\n* [Go](https://github.com/miniscruff/scopie-go)\n* [Javascript](https://github.com/miniscruff/scopie-js)\n* [Python](https://github.com/miniscruff/scopie-py)\n\nA language agnostic set of scenarios can be found in the [scenarios.json](./scenarios.json) file.\n\n## Example\n\nA portion of our application is around building, running and responding to financial reports.\nWe run half, quarterly, monthly and weekly reports.\n\n**Actions**\n\n1. Edit: Modify how the report is built\n2. Run: Manually run the report\n3. Read: Read the reports in our tool\n4. Approve: Sign off on the report, approved reports would then be shared\n5. Delete: Remove an invalid or broken report\n\n**Format**\n\nFor the above reasons we are going to specify our scopes and rules as:\n```\nreports/\u003cduration\u003e/\u003caction\u003e\n```\n\nWe could expand this later to include some sort of organization or business\ngroup but for this example, we will keep it simple.\n\n**Users**\n\n1. Maya is allowed to do everything ( the boss )\n```\nallow/**\n```\n2. Adam is allowed to edit and read any report ( makes changes to the queries )\n```\nallow/reports/*/edit|read\n```\n3. Tyler can only read reports ( reviews reports but doesn't need to approve them )\n```\nallow/reports/*/read\n```\n4. Elisa can do everything but delete ( mostly there to approve, but occasionally edits queries )\n```\nallow/reports/*/*\ndeny/reports/*/delete\n```\n5. Jenna can edit and read but only the weekly reports ( a new hire working up )\n```\nallow/reports/weekly/edit|read\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminiscruff%2Fscopie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminiscruff%2Fscopie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminiscruff%2Fscopie/lists"}