Just wondering, is it possible pre-populate keto w...
# talk-keto
l
Just wondering, is it possible pre-populate keto with tuples on startup?
l
I use another Docker container for this, which runs when I spin up the other container, with the Keto CLI command
relation-tuple create /home/ory/policies/policies.json --write-remote keto:4467
In this case, keto:4467 is the keto write endpoint. I generated the policies command as described In the RBAC Keto Guide by creating a policies.rts file and then using the Keto CLI to generate the JSON.
This should also work if you're not using Docker, you'd just need to write a startup script or something
👍 1
s
alternatively you can use a backup to populate the database instead of spinning up a new one