summaryrefslogtreecommitdiff
path: root/etc/authzd
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-05 11:54:38 -0600
committermo khan <mo@mokhan.ca>2025-07-05 11:54:38 -0600
commitaa5ad67a7d3cc154fa65d291999f3b0e1c4b3f94 (patch)
treef8a71a88b7f956ebeadfa8eb161971094bd019df /etc/authzd
parent3dbd58536a4c37a2cc3b18572ac9e46bbd19d718 (diff)
refactor: remove action check in policy
Diffstat (limited to 'etc/authzd')
-rw-r--r--etc/authzd/policy0.cedar2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/authzd/policy0.cedar b/etc/authzd/policy0.cedar
index 18a48476..12950df5 100644
--- a/etc/authzd/policy0.cedar
+++ b/etc/authzd/policy0.cedar
@@ -4,7 +4,7 @@ when {
context.bearer_token == "valid-token"
};
-permit(principal, action == Action::"check", resource)
+permit(principal, action, resource)
when {
context has path && context has method && context.method == "GET" && (
context.path like "*.css" ||