summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 35886d64..8eeadc86 100644
--- a/Makefile
+++ b/Makefile
@@ -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