summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-18 13:26:30 -0600
committermo khan <mo@mokhan.ca>2025-07-18 13:26:30 -0600
commite5142a2786b499291f6e98f328e10a9c44901ad2 (patch)
treea4592cee3af83b95a9d72418492b4df93459fad0 /Makefile
parent9d5b310de5b2266aeb40f8585df65564b8de19b9 (diff)
feat: authorize http resources
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 114594e0..2e4efee7 100644
--- a/Makefile
+++ b/Makefile
@@ -62,8 +62,18 @@ run-spicedb-setup:
@$(ZED_CMD) relationship create project:1 maintainer user:mokhax
@$(ZED_CMD) relationship create project:1 developer user:tanuki
+run-spicedb-sparkle-relationships:
+ @$(ZED_CMD) relationship touch resource:/ reader user:*
+ @$(ZED_CMD) relationship touch resource:/callback reader user:*
+ @$(ZED_CMD) relationship touch resource:/dashboard reader user:root
+ @$(ZED_CMD) relationship touch resource:/dashboard/nav reader user:*
+ @$(ZED_CMD) relationship touch resource:/signout reader user:root
+ @$(ZED_CMD) relationship touch resource:/sparkles reader user:*
+ @$(ZED_CMD) relationship touch resource:/sparkles writer user:root
+
run-spicedb-permission-check:
@$(ZED_CMD) permission check project:1 read user:mokhax
@$(ZED_CMD) permission check project:1 write user:mokhax
@$(ZED_CMD) permission check project:1 read user:tanuki
@$(ZED_CMD) permission check project:1 write user:tanuki
+ @$(ZED_CMD) permission check resource:/ read user:public