Skip to content

Are there any condition method "toString"? #1694

Answered by dbuduev
NormandoHall asked this question in Q&A
Discussion options

You must be logged in to vote

Conditions are written using the Common Expression Language (CEL). You can cast a value to a string using the string(x) function.

But, when a policy is evaluated, these fields no longer have the type MongoDB ObjectId. The payload is serialised when the application calls the Cerbos endpoint. The serialisation might be incorrect.

For debugging or auditing purposes, you can enable request and response payload logging for each request. See Payload logging.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@NormandoHall
Comment options

Answer selected by NormandoHall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants