. I was trying to run
. There is a doc for how to run and create schemas. But I could not find any doc how should I insert my policies on the
tables. Sample Finance Application Policyhttps://play.cerbos.dev/p/XhkOi82fFKk3YW60e2c806Yvm0trKEje This is the playground URL I was trying to read from
in your configuration like this (Also, here is the list of all possible configuration options if you’d like to explore more);
Here is the relevant part to send a request to the AdminAPI for adding/updating policies;https://docs.cerbos.dev/cerbos/latest/api/admin_api.html#_addupdate_policies
server: adminAPI: adminCredentials: passwordHash: JDJ5JDEwJEdEOVFzZDE2VVhoVkR0N2VkUFBVM09nalc0QnNZaC9xc2E4bS9mcUJJcEZXenp5OUpjMi91Cgo= # PasswordHash is the base64-encoded bcrypt hash of the password to use for authentication. username: cerbos # Username is the hardcoded username to use for authentication. enabled: true # Enabled defines whether the admin API is enabled.
CLI. https://docs.cerbos.dev/cerbos/latest/cli/cerbosctl.html#put Hope this helps, please let me know if you encounter any problems or have any questions.
Sam Lock (Cerbos)