coderbydesign / prbac-spicedb

Emulate prbac with spicedb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prbac-spicedb

Implement the PRBAC API with a spicedb backend.

Development

Run prbac-spicedb with spicedb (using schema in /schema)

docker-compose up --build

Test using an endpoint like:

curl "http://localhost:8080/access/?application=playbook-dispatcher&username=alice"

Docker

docker build . -t quay.io/ciam_authz/prbac-spicedb
docker run -p8080:8080 --rm quay.io/ciam_authz/prbac-spicedb

Regenerate server code

oapi-codegen -config api/server.cfg.yaml api/openapi.json

About

Emulate prbac with spicedb

License:Apache License 2.0


Languages

Language:Go 96.9%Language:Dockerfile 3.1%