Title
#help
a

Amy Soetopo

08/22/2022, 5:00 PM
I’m wondering about using yaml to define policies (production setting) - what are the reasons not to do this?
Alex Olivier (Cerbos)

Alex Olivier (Cerbos)

08/22/2022, 5:01 PM
That is the primary way of defining policies so a good choice!
a

Amy Soetopo

08/22/2022, 5:04 PM
Oh, okay, great! that’s excellent.
r

Rounak Datta

08/23/2022, 9:49 AM
Is there a way to generate DB migrations from the YAML policies and store them in a database? i.e. write YAML, but DB storage backend for policies? 😄
Alex Olivier (Cerbos)

Alex Olivier (Cerbos)

08/23/2022, 9:51 AM
You can post the policies to the Admin API which will manage writing them to the DB. That said, if you can define the policies in YAML do you need the database for your use case?
r

Rounak Datta

08/23/2022, 9:52 AM
Makes sense, thx. Not a use case, was just exploring!