From 4bf32f3651786ca96de6b1a750c95677c52f54a1 Mon Sep 17 00:00:00 2001 From: Eric Leijonmarck Date: Tue, 22 Apr 2025 18:36:47 +0100 Subject: [PATCH] Zanzana: Adds readme with configuration for openfga cli (#104276) --- pkg/services/authz/zanzana/README.md | 42 ++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkg/services/authz/zanzana/README.md diff --git a/pkg/services/authz/zanzana/README.md b/pkg/services/authz/zanzana/README.md new file mode 100644 index 00000000000..d3afff67a58 --- /dev/null +++ b/pkg/services/authz/zanzana/README.md @@ -0,0 +1,42 @@ +# Zanzana + +## Zanzana cli +Zanzana can be run as a standalone OpenFGA HTTP server that allows you to use the OpenFGA CLI to debug and manage fine-grained authorization relationships within Grafana. + +To test this you need to run standalone zanzana server. Use following config: + +```ini +# ini +app_mode = development +target = zanzana-server + +[feature_toggles] +zanzana = true + +[zanzana.server] +http_addr = 127.0.0.1:8080 + +[grpc_server] +enabled = true +address = 127.0.0.1:10000 +``` + +And then run grafana server target: + +```bash +./bin/darwin-arm64/grafana server target +``` + +### Using OpenFGA CLI + +useful info on how to setup and use https://openfga.dev/docs/getting-started/cli +Once the server is running, you can interact with it using the OpenFGA CLI: + +```bash +# List all stores +fga store list + +# Other commands +fga model read +fga tuple list +```