summaryrefslogtreecommitdiff
path: root/etc/authzd/policy1.cedar
diff options
context:
space:
mode:
Diffstat (limited to 'etc/authzd/policy1.cedar')
-rw-r--r--etc/authzd/policy1.cedar11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/authzd/policy1.cedar b/etc/authzd/policy1.cedar
index 15776ab7..6fe51b16 100644
--- a/etc/authzd/policy1.cedar
+++ b/etc/authzd/policy1.cedar
@@ -28,3 +28,14 @@ when
context.host == "sparkle.staging.runway.gitlab.net" &&
principal has username
};
+
+permit (
+ principal == User::"1",
+ action == Action::"GET",
+ resource == Resource::"/dashboard"
+)
+when
+{
+ context has host &&
+ context.host == "localhost:10000"
+};