hello, while defining a policy is there any place ...
# help
n
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
c
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.
What kind of metadata are you thinking of and how do you expect those to be used?
n
thanks charith, let me try the above and get back
c
No problem at all. Let us know how you get on.