https://cerbos.dev logo
#help
Title
# help
j

Jesum Yip

08/19/2023, 3:14 PM
is there some documentation somewhere which explains how
:
is used in say a resource.id in a resourcePolicy? Is it a special character like how
.
is used in scoped policies? or is there nothing special about it?
d

Dennis (Cerbos)

08/20/2023, 7:09 AM
TLDR: no special meaning. All non-identifier characters ([^0-9A-Za-z_]) in resource/principal IDs are being replaced with an underscore, which makes a string “a:c” equal to “a|c”. This is a reason behind restrictive regex on principal ID.
2 Views