diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-09 16:06:18 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-09 16:06:18 -0600 |
| commit | f60bebf044f3614f5675152718ecebe81bd8459a (patch) | |
| tree | 0e88f56476cc7939f0928709a8bb43aadb98bb9c /etc | |
| parent | 4a59c375b6bfe2613618937f8e03c5d38193fc78 (diff) | |
fix: decorate policies with unique name to prevent collision
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/authzd/policy0.cedar | 2 | ||||
| -rw-r--r-- | etc/authzd/policy1.cedar | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/etc/authzd/policy0.cedar b/etc/authzd/policy0.cedar index 10ad622f..7c0aed08 100644 --- a/etc/authzd/policy0.cedar +++ b/etc/authzd/policy0.cedar @@ -1,3 +1,4 @@ +@id("placeholder_example") permit ( principal, action == Action::"check", @@ -5,6 +6,7 @@ permit ( ) when { context has bearer_token && context.bearer_token == "valid-token" }; +@id("static_assets") permit (principal, action, resource) when { diff --git a/etc/authzd/policy1.cedar b/etc/authzd/policy1.cedar index 507ef3ed..b2f9716c 100644 --- a/etc/authzd/policy1.cedar +++ b/etc/authzd/policy1.cedar @@ -1,3 +1,4 @@ +@id("sparkle_public") permit (principal, action, resource) when { |
