{"id":16880040,"url":"https://github.com/anderseknert/opa-policy-composition","last_synced_at":"2026-01-04T06:33:44.240Z","repository":{"id":109367188,"uuid":"351223023","full_name":"anderseknert/opa-policy-composition","owner":"anderseknert","description":"Example policies demonstrating policy composition.","archived":false,"fork":false,"pushed_at":"2024-06-18T19:11:07.000Z","size":7,"stargazers_count":7,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-14T20:50:41.765Z","etag":null,"topics":["opa","open-policy-agent","rego"],"latest_commit_sha":null,"homepage":"","language":"Open Policy Agent","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/anderseknert.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-24T21:06:15.000Z","updated_at":"2025-03-04T14:27:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1ff8cce-894b-4709-b328-af12198ba563","html_url":"https://github.com/anderseknert/opa-policy-composition","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anderseknert%2Fopa-policy-composition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anderseknert%2Fopa-policy-composition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anderseknert%2Fopa-policy-composition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anderseknert%2Fopa-policy-composition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anderseknert","download_url":"https://codeload.github.com/anderseknert/opa-policy-composition/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244538589,"owners_count":20468745,"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":["opa","open-policy-agent","rego"],"created_at":"2024-10-13T15:57:03.526Z","updated_at":"2026-01-04T06:33:44.202Z","avatar_url":"https://github.com/anderseknert.png","language":"Open Policy Agent","funding_links":[],"categories":[],"sub_categories":[],"readme":"# opa-policy-composition\n\nExample policies demonstrating policy composition in Rego. These example accompany the [blog post](https://blog.styra.com/blog/dynamic-policy-composition-for-opa) on the same topic as found on the [Styra](https://www.styra.com) blog.\n\n## Running\n\n`opa run --server --set default_decision=/main/decision .`\n\nQuery OPA (use team1-3 as input, and try removing the `explain` attribute):\n\n`curl -d '{\"resource\": \"volume\", \"explain\": true}' http://localhost:8181`\n\nOr if you prefer using `opa eval`:\n\n```shell\nopa eval -f pretty -d . 'data.main.decision with input as {\"resource\": \"volume\", \"explain\": true}'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanderseknert%2Fopa-policy-composition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanderseknert%2Fopa-policy-composition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanderseknert%2Fopa-policy-composition/lists"}