{"repo":"dolevf/Open-Policy-Agent-Alfred","free":true,"listed":false,"github":"https://github.com/dolevf/Open-Policy-Agent-Alfred","clone":"git clone https://github.com/dolevf/Open-Policy-Agent-Alfred.git","description":"Reasonably Usable Self-hosted Version of OPA's Playground","language":"HTML","stars":36,"topics":[],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"Table of Contents About Features Screenshot Install Installation - Docker Installation - Docker Registry Installation - Server Maintainers License OPA Alfred Reasonably usable self-hosted version of OPA's Playground About Ever wanted to have your own version of OPA's Playground? now it's possible with a reasonably usable version of the original Playground, called Alfred! Features - Syntax Highlighting - Policy Publishing - Coverage Highlighting - Data / Input / Policy Editor - Restrict Execution of Builtins, such as: http.send or opa.runtime - Download Policy as File / Copy to Clipboard Screenshot Configuration There is not a whole lot of configurations required for Alfred. If you want to restrict certain builtins from running in policies, you can do so in config.py : By default, all builtins are allowed. How to Install Clone repository git clone https://github.com/dolevf/Open-Policy-Agent-Alfred cd Open-Policy-Agent-Alfred Docker Build Docker Image docker build -t alfred . Run Alfred Container docker run -d -p 5000:5000 alfred Docker Registry Pull Alfred from Registry docker pull dolevf/alfred Run Alfred Container docker run -d -p 5000:5000 dolevf/alfred Server Install requirements pip3 install -r requirements.txt Download OPA binary For Linux: curl -L -o bin/opa https://openpolicyagent.org/downloads/latest/opa linux amd64 static For MacOSX: curl -L -o bin/opa https://openpolicyagent.org/downloads/latest/opa darwin amd64 Set permissions chmod u+x bin/opa Run Alfred python3 a","default_branch":null,"files":null,"tree":[],"storefront":"/r/dolevf","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dolevf/Open-Policy-Agent-Alfred/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}