summaryrefslogtreecommitdiff
path: root/pkg/policies/gtwy.cedar
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/policies/gtwy.cedar')
-rw-r--r--pkg/policies/gtwy.cedar18
1 files changed, 7 insertions, 11 deletions
diff --git a/pkg/policies/gtwy.cedar b/pkg/policies/gtwy.cedar
index 763ab5f..a236e08 100644
--- a/pkg/policies/gtwy.cedar
+++ b/pkg/policies/gtwy.cedar
@@ -1,16 +1,12 @@
-permit (
- principal == User::"1",
+permit(
+ principal is User,
action in [
+ HttpMethod::"DELETE",
HttpMethod::"GET",
- HttpMethod::"POST",
- HttpMethod::"PUT",
+ HttpMethod::"HEAD",
HttpMethod::"PATCH",
- HttpMethod::"DELETE",
- HttpMethod::"HEAD"
+ HttpMethod::"POST",
+ HttpMethod::"PUT"
],
resource
-) when {
- context.host == "api.example.com" ||
- context.host == "idp.example.com" ||
- context.host == "ui.example.com"
-};
+);