Title
#help
n

Nimit

11/03/2022, 3:40 PM
hello, while defining a policy is there any place i can define some metadata ? For example while defining actions i want to have some metadata to describe each action
Charith (Cerbos)

Charith (Cerbos)

11/03/2022, 3:53 PM
Hi. For policies, you can use the
metadata.annotations
field, which accepts any number of key-value pairs that can serve as some documentation for readers (https://docs.cerbos.dev/cerbos/latest/policies/authoring_tips.html). There's no such thing for individual rules in a policy. You could give a name to a rule but it should ideally be something short and not a long description.
3:53 PM
What kind of metadata are you thinking of and how do you expect those to be used?
n

Nimit

11/03/2022, 4:08 PM
thanks charith, let me try the above and get back
Charith (Cerbos)

Charith (Cerbos)

11/03/2022, 4:09 PM
No problem at all. Let us know how you get on.