{"id":21888619,"url":"https://github.com/swisscom/apisix-opa-plugin","last_synced_at":"2025-04-15T10:20:04.150Z","repository":{"id":73689556,"uuid":"426651886","full_name":"swisscom/apisix-opa-plugin","owner":"swisscom","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-07T12:06:03.000Z","size":25,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-15T10:19:28.427Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swisscom.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}},"created_at":"2021-11-10T14:24:39.000Z","updated_at":"2023-08-09T20:27:23.000Z","dependencies_parsed_at":"2024-06-21T19:03:52.991Z","dependency_job_id":"cbb34dc9-5565-4f8a-911e-8c510e346bcc","html_url":"https://github.com/swisscom/apisix-opa-plugin","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/swisscom%2Fapisix-opa-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swisscom%2Fapisix-opa-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swisscom%2Fapisix-opa-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swisscom%2Fapisix-opa-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swisscom","download_url":"https://codeload.github.com/swisscom/apisix-opa-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249048753,"owners_count":21204307,"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-11-28T11:16:13.602Z","updated_at":"2025-04-15T10:20:04.126Z","avatar_url":"https://github.com/swisscom.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# apisix-opa-plugin\n\nAn Open Policy Agent plugin for [Apache APISIX](https://apisix.apache.org/)\n\n\n## Remarks\n\nThis plugin requires the `OPA_URL` environment variable to be set. As per \n[external-plugin FAQ](https://apisix.apache.org/docs/apisix/external-plugin/#when-managing-by-apisix-the-runner-cant-access-my-environment-variable)\nthe `nginx_config` configuration must be set to forward this environment variable to the runner,\notherwise it will be hidden.\n  \nTo do so, the APISIX configuration should include a similar snippet of configuration:\n\n```yaml\nnginx_config:\n  envs:\n  - OPA_URL\n```\n\n## Plugin Configuration\n\nWhen setting up the plugin on APISIX, provide a configuration\nsimilar to the following:\n```json\n{\n  \"conf\": [\n    {\n      \"name\": \"opa\",\n      \"value\": \"{\\\"rule_path\\\": \\\"com.swisscom.ini.dna.nb/rule1\\\"}\"\n    }\n  ],\n  \"disable\": false\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswisscom%2Fapisix-opa-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswisscom%2Fapisix-opa-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswisscom%2Fapisix-opa-plugin/lists"}