Billy Bolton
05/20/2026, 2:28 PMrequest.resource.attr. followed by [, which is not a valid CEL identifier reference:
apiVersion: api.cerbos.dev/v1
description: repro
rolePolicy:
role: ug_example
scope: tenant-uuid-placeholder.data
parentRoles:
- data_access
rules:
- resource: "*"
allowActions: ["*"]
condition:
match:
all:
of:
- expr: 'request.resource.attr.[category::a][key::b][type::c] in ["*"]'
Recovering from this state is difficult because it requires us to manually go into postgres to disable or delete the offending policy. Shouldn't there be input validation to avoid such things on the Cerbos side already though? Cerbos can surely catch this before reloading at runtime. Otherwise, we need to create these wrappers around it to catch it ourselves, which to me is a bandaid solution
Note: We're currently on Cerbos v0.50.0 and cerbos-sdk-go v0.2.15Sam Lock (Cerbos)
05/20/2026, 3:03 PMBilly Bolton
05/20/2026, 3:03 PMBilly Bolton
05/26/2026, 2:56 PMCharith (Cerbos)
Billy Bolton
05/27/2026, 12:50 PMBilly Bolton
05/27/2026, 12:52 PMCharith (Cerbos)
Billy Bolton
05/27/2026, 2:00 PM