https://cerbos.dev logo
v

Viet Au

08/17/2022, 10:05 AM
Hi, When storing policies in a database I can see that the policy table has a disabled column that defaults to false. Is there a way of setting this through the admin api?
c

Charith (Cerbos)

08/17/2022, 11:07 AM
Yes. You have to re-submit the policy with the
disabled
field set to
true
in it. You can add it just after the
apiVersion
field. https://docs.cerbos.dev/cerbos/latest/policies/authoring_tips.html
v

Viet Au

08/17/2022, 12:12 PM
got it, miss it going through the docs. It's quite an important feature maybe it should stand out a bit more.
7 Views