Skip to content

Bootstrap cerbos with storage type: "database" ? #1610

Answered by charithe
David3Ar asked this question in Q&A
Discussion options

You must be logged in to vote

You could start an instance of Cerbos on a dev machine with a local MySQL instance, use cerbosctl put to load up your initial set of policies, and use a tool like mysqldump to export the data as a SQL script that you can then use to seed your production database.

If you don't have access to the database either, you could do a slight variation of this by creating a bootstrap script that uses cerbosctl put to load the policies into Cerbos once it has started up inside the private network. The invocation of cerbosctl put is idempotent so you don't have to worry about running it more than once.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@David3Ar
Comment options

@David3Ar
Comment options

Answer selected by David3Ar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants