diff options
| author | mo khan <mo@mokhan.ca> | 2025-06-27 13:28:00 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-06-27 13:28:00 -0600 |
| commit | c0bf614ccc7945abc06d5a583497582717c3c41f (patch) | |
| tree | a9c7d0507d6c3da3ce234bc3e5b31ed506a2c95a /etc | |
| parent | 84420606035fd62bbdcacb6231b9181f197d068f (diff) | |
style: reformat the cedar policy
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/authzd/policy0.cedar | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/etc/authzd/policy0.cedar b/etc/authzd/policy0.cedar index e01182c5..034e81b5 100644 --- a/etc/authzd/policy0.cedar +++ b/etc/authzd/policy0.cedar @@ -1,19 +1,20 @@ permit(principal, action == Action::"check", resource) when { - context has bearer_token && + context has bearer_token && context.bearer_token == "valid-token" }; permit(principal, action == Action::"check", resource) when { - context has path && - (context.path like "*.css" || - context.path like "*.js" || - context.path like "*.ico" || - context.path like "*.png" || - context.path like "*.jpg" || - context.path like "*.jpeg" || - context.path like "*.gif" || - context.path like "*.bmp" || - context.path like "*.html") + context has path && ( + context.path like "*.css" || + context.path like "*.js" || + context.path like "*.ico" || + context.path like "*.png" || + context.path like "*.jpg" || + context.path like "*.jpeg" || + context.path like "*.gif" || + context.path like "*.bmp" || + context.path like "*.html" + ) }; |
