We deploy a Hasura Docker image as part of our build pipeline. The documentation only shows how to use the web UI to create permissions. Is there a way to setup permissions in an infrastructure-as-code way? I couldn't find any configuration files or database tables in which the permissions are persisted.
Asked
Active
Viewed 99 times
1 Answers
0
The current permissions can be exported by running
hasura metadata export --admin-secret <passwd> --endpoint http://localhost:8080
The tables.yaml
will then contain permission definitions.

Michael Böckling
- 7,341
- 6
- 55
- 76