diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-14 11:45:00 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-14 11:45:00 -0600 |
| commit | 30ffd692e3749e38f9ab05d04a15d0dcdf186610 (patch) | |
| tree | 71952f8f18a392f112f0977116e8632a9924c76d /Makefile | |
| parent | fa92e7d1b3a61deb3d16db2f6546677040e395cd (diff) | |
chore: rework examples to use project and gitlab roles
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -83,8 +83,14 @@ production-entities: $(AUTHZD_BIN) check-gitlab-token run-spicedb: @spicedb serve --grpc-preshared-key "secret" -run-spice-schema-load: +run-spicedb-setup: @zed --endpoint ":50051" --token "secret" --insecure schema write etc/authzd/spice.schema - -run-spice-schema-read: @zed --endpoint ":50051" --token "secret" --insecure schema read + @zed --endpoint ":50051" --token "secret" --insecure relationship create project:1 maintainer user:mokhax + @zed --endpoint ":50051" --token "secret" --insecure relationship create project:1 developer user:tanuki + +run-spicedb-permission-check: + @zed --endpoint ":50051" --token "secret" --insecure permission check project:1 read user:mokhax + @zed --endpoint ":50051" --token "secret" --insecure permission check project:1 write user:mokhax + @zed --endpoint ":50051" --token "secret" --insecure permission check project:1 read user:tanuki + @zed --endpoint ":50051" --token "secret" --insecure permission check project:1 write user:tanuki |
