{"id":18708532,"url":"https://github.com/va1da5/opa-policy-coverage-matrix","last_synced_at":"2026-05-07T17:34:20.102Z","repository":{"id":106645654,"uuid":"439610532","full_name":"va1da5/opa-policy-coverage-matrix","owner":"va1da5","description":"Open Policy Agent (OPA) policy coverage visualization","archived":false,"fork":false,"pushed_at":"2021-12-18T12:34:56.000Z","size":387,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-15T22:08:06.334Z","etag":null,"topics":["coverage-testing","opa","opa-policies","open-policy-agent","reactjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/va1da5.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-12-18T12:34:40.000Z","updated_at":"2021-12-22T14:06:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"34a9a2ef-60ad-4af9-b46b-1d176307e9ee","html_url":"https://github.com/va1da5/opa-policy-coverage-matrix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/va1da5/opa-policy-coverage-matrix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/va1da5%2Fopa-policy-coverage-matrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/va1da5%2Fopa-policy-coverage-matrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/va1da5%2Fopa-policy-coverage-matrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/va1da5%2Fopa-policy-coverage-matrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/va1da5","download_url":"https://codeload.github.com/va1da5/opa-policy-coverage-matrix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/va1da5%2Fopa-policy-coverage-matrix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32748715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"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":["coverage-testing","opa","opa-policies","open-policy-agent","reactjs"],"created_at":"2024-11-07T12:23:53.444Z","updated_at":"2026-05-07T17:34:20.086Z","avatar_url":"https://github.com/va1da5.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Open Policy Agent (OPA) Policy Coverage Matrix\n\nThe repository contains a proof-of-concept implementation of the [Open Policy Agent (OPA)](https://www.openpolicyagent.org/) policy coverage visualization. Each condition from 2D matrix is being sent to OPA and the result is later presented using a table built with [React](https://reactjs.org/). The OPA policy can be further tuned and the coverage will update accordingly.\n\nAs an example, the current setup imitates a system where each user has a role and the role has a set of permissions. The system has a set of policies that define the permissions for each role. Nevertheless, this could be reused in a different context. However, it is currently limited to a two dimensional data set.\n\n## Requirements\n\n   - [Docker-compose](https://docs.docker.com/compose/install/)\n\n## Getting Started\n\n```bash\n# Download require container images\ndocker-compose pull\n\n# Build initial React application image\ndocker-compose build\n\n\n# Start services\ndocker-compose up -d\n\n# Monitor service logs\ndocker-compose logs -f\n```\n\nWeb based user interface will be available at [http://localhost:3000](http://localhost:3000)\n\nThe OPA policy is located in [./policy](./policy) directory. The bundle also includes a [data.json](./policy/data.json) file with user to group membership information. The OPA service is being started with `--watch` flag meaning that it does not require a manual reload after each policy change. However, the front-end does not monitor for policy changes and would required to reload a browser page after policy gets updated.\n\nThe users and permissions displayed in the table are taken from [user.json](./src/users.json) and [permissions.json](./src/permissions.json) files.\n\n## User Permissions Matrix\n\nThe initial coverage matrix will look as the following:\n\n\u003cimg src=\"./public/permission-matrix.png\" width=\"600px\"\u003e\n\nFeel free to tweak the policy rules, group memberships and users to test different scenarios.\n\n## References\n\n- [Dockerhub: openpolicyagent/opa](https://hub.docker.com/r/openpolicyagent/opa)\n- [Running OPA](https://www.openpolicyagent.org/docs/latest/#running-opa)\n- [awesome-opa](https://github.com/anderseknert/awesome-opa)\n- [Charka UI](https://chakra-ui.com/docs/getting-started)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fva1da5%2Fopa-policy-coverage-matrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fva1da5%2Fopa-policy-coverage-matrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fva1da5%2Fopa-policy-coverage-matrix/lists"}