├── .github └── workflows │ ├── cla.yaml │ ├── lint.yaml │ └── test.yaml ├── .pre-commit-config.yaml ├── .yamllint ├── CODE-OF-CONDUCT.md ├── CODEOWNERS ├── CONTRIBUTING.md ├── DCO ├── LICENSE ├── NOTICE ├── README.md ├── authzed-dedicated-metrics ├── datadog │ ├── otel-config.yaml │ └── readme.md ├── otel-collector │ ├── env-vars.sh │ ├── otel-collector-config.yaml │ ├── readme.md │ └── run-otel-collector.sh ├── prometheus-grafana │ ├── README.md │ ├── compose.yaml │ ├── grafana │ │ └── datasource.yml │ └── prometheus │ │ └── prometheus.yml └── readme.md ├── code-examples ├── go │ ├── expire │ │ ├── go.mod │ │ ├── go.sum │ │ ├── main.go │ │ └── schema │ └── export-bulk │ │ ├── go.mod │ │ ├── go.sum │ │ └── main.go └── java │ └── materialize-client │ ├── .gitignore │ ├── pom.xml │ └── src │ └── main │ └── java │ └── com │ └── authzed │ ├── LookupPermissionSetsStreamObserver.java │ ├── MaterializeClient.java │ └── WatchPermissionSetsStreamObserver.java ├── data ├── retry │ └── main.py └── temporal_example │ ├── README.md │ ├── activities.py │ ├── compose │ └── docker-compose.yml │ ├── data │ ├── postgres.py │ └── spicedb.py │ ├── run_migrations.py │ ├── run_worker.py │ ├── run_workflow.py │ ├── shared.py │ └── workflows.py ├── datastores ├── README.md ├── crdb.yml ├── memory.yml ├── mysql.yml ├── postgres.yml ├── spanner.yml └── spanner │ ├── Dockerfile.spanner │ └── spanner-init ├── github-actions ├── README.md ├── integration-tests.yaml └── validate-schema.yaml ├── integration-testing ├── README.md ├── go.mod ├── go.sum └── main_test.go ├── kubernetes └── example.yaml ├── notebooks └── rag │ ├── rag.ipynb │ └── requirements.txt ├── observability └── simple-datadog │ ├── .gitignore │ ├── README.md │ ├── all_metrics.txt │ ├── conf.d │ └── openmetrics.d │ │ └── conf.yaml │ ├── datadog.yaml │ ├── docker-compose.yml │ ├── placeholder.env │ └── spicedb-dashboard.json ├── schemas ├── basic-rbac │ ├── README.md │ └── schema-and-data.yaml ├── caveats │ ├── README.md │ └── schema-and-data.yaml ├── docs-style-sharing │ ├── README.md │ └── schema-and-data.yaml ├── google-iam │ ├── README.md │ └── schema-and-data.yaml ├── multiple-validation-files │ ├── README.md │ ├── schema.zed │ └── validations │ │ ├── admin-role.yaml │ │ └── reader-role.yaml ├── superuser │ ├── README.md │ └── schema-and-data.yaml └── user-defined-roles │ ├── README.md │ └── schema-and-data.yaml ├── spicedb-as-library ├── go.mod ├── go.sum └── main.go └── tracing ├── README.md ├── docker-compose.yaml ├── grafana-datasources.yaml ├── otel-config.yaml ├── schema.zed └── tempo.yaml /.github/workflows/cla.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/.github/workflows/cla.yaml -------------------------------------------------------------------------------- /.github/workflows/lint.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/.github/workflows/lint.yaml -------------------------------------------------------------------------------- /.github/workflows/test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/.github/workflows/test.yaml -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.yamllint: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/.yamllint -------------------------------------------------------------------------------- /CODE-OF-CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/CODE-OF-CONDUCT.md -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/CODEOWNERS -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /DCO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/DCO -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/LICENSE -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/NOTICE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/README.md -------------------------------------------------------------------------------- /authzed-dedicated-metrics/datadog/otel-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/authzed-dedicated-metrics/datadog/otel-config.yaml -------------------------------------------------------------------------------- /authzed-dedicated-metrics/datadog/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/authzed-dedicated-metrics/datadog/readme.md -------------------------------------------------------------------------------- /authzed-dedicated-metrics/otel-collector/env-vars.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/authzed-dedicated-metrics/otel-collector/env-vars.sh -------------------------------------------------------------------------------- /authzed-dedicated-metrics/otel-collector/otel-collector-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/authzed-dedicated-metrics/otel-collector/otel-collector-config.yaml -------------------------------------------------------------------------------- /authzed-dedicated-metrics/otel-collector/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/authzed-dedicated-metrics/otel-collector/readme.md -------------------------------------------------------------------------------- /authzed-dedicated-metrics/otel-collector/run-otel-collector.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/authzed-dedicated-metrics/otel-collector/run-otel-collector.sh -------------------------------------------------------------------------------- /authzed-dedicated-metrics/prometheus-grafana/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/authzed-dedicated-metrics/prometheus-grafana/README.md -------------------------------------------------------------------------------- /authzed-dedicated-metrics/prometheus-grafana/compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/authzed-dedicated-metrics/prometheus-grafana/compose.yaml -------------------------------------------------------------------------------- /authzed-dedicated-metrics/prometheus-grafana/grafana/datasource.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/authzed-dedicated-metrics/prometheus-grafana/grafana/datasource.yml -------------------------------------------------------------------------------- /authzed-dedicated-metrics/prometheus-grafana/prometheus/prometheus.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/authzed-dedicated-metrics/prometheus-grafana/prometheus/prometheus.yml -------------------------------------------------------------------------------- /authzed-dedicated-metrics/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/authzed-dedicated-metrics/readme.md -------------------------------------------------------------------------------- /code-examples/go/expire/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/code-examples/go/expire/go.mod -------------------------------------------------------------------------------- /code-examples/go/expire/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/code-examples/go/expire/go.sum -------------------------------------------------------------------------------- /code-examples/go/expire/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/code-examples/go/expire/main.go -------------------------------------------------------------------------------- /code-examples/go/expire/schema: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/code-examples/go/expire/schema -------------------------------------------------------------------------------- /code-examples/go/export-bulk/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/code-examples/go/export-bulk/go.mod -------------------------------------------------------------------------------- /code-examples/go/export-bulk/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/code-examples/go/export-bulk/go.sum -------------------------------------------------------------------------------- /code-examples/go/export-bulk/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/code-examples/go/export-bulk/main.go -------------------------------------------------------------------------------- /code-examples/java/materialize-client/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/code-examples/java/materialize-client/.gitignore -------------------------------------------------------------------------------- /code-examples/java/materialize-client/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/code-examples/java/materialize-client/pom.xml -------------------------------------------------------------------------------- /code-examples/java/materialize-client/src/main/java/com/authzed/LookupPermissionSetsStreamObserver.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/code-examples/java/materialize-client/src/main/java/com/authzed/LookupPermissionSetsStreamObserver.java -------------------------------------------------------------------------------- /code-examples/java/materialize-client/src/main/java/com/authzed/MaterializeClient.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/code-examples/java/materialize-client/src/main/java/com/authzed/MaterializeClient.java -------------------------------------------------------------------------------- /code-examples/java/materialize-client/src/main/java/com/authzed/WatchPermissionSetsStreamObserver.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/code-examples/java/materialize-client/src/main/java/com/authzed/WatchPermissionSetsStreamObserver.java -------------------------------------------------------------------------------- /data/retry/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/data/retry/main.py -------------------------------------------------------------------------------- /data/temporal_example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/data/temporal_example/README.md -------------------------------------------------------------------------------- /data/temporal_example/activities.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/data/temporal_example/activities.py -------------------------------------------------------------------------------- /data/temporal_example/compose/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/data/temporal_example/compose/docker-compose.yml -------------------------------------------------------------------------------- /data/temporal_example/data/postgres.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/data/temporal_example/data/postgres.py -------------------------------------------------------------------------------- /data/temporal_example/data/spicedb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/data/temporal_example/data/spicedb.py -------------------------------------------------------------------------------- /data/temporal_example/run_migrations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/data/temporal_example/run_migrations.py -------------------------------------------------------------------------------- /data/temporal_example/run_worker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/data/temporal_example/run_worker.py -------------------------------------------------------------------------------- /data/temporal_example/run_workflow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/data/temporal_example/run_workflow.py -------------------------------------------------------------------------------- /data/temporal_example/shared.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/data/temporal_example/shared.py -------------------------------------------------------------------------------- /data/temporal_example/workflows.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/data/temporal_example/workflows.py -------------------------------------------------------------------------------- /datastores/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/datastores/README.md -------------------------------------------------------------------------------- /datastores/crdb.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/datastores/crdb.yml -------------------------------------------------------------------------------- /datastores/memory.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/datastores/memory.yml -------------------------------------------------------------------------------- /datastores/mysql.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/datastores/mysql.yml -------------------------------------------------------------------------------- /datastores/postgres.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/datastores/postgres.yml -------------------------------------------------------------------------------- /datastores/spanner.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/datastores/spanner.yml -------------------------------------------------------------------------------- /datastores/spanner/Dockerfile.spanner: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/datastores/spanner/Dockerfile.spanner -------------------------------------------------------------------------------- /datastores/spanner/spanner-init: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/datastores/spanner/spanner-init -------------------------------------------------------------------------------- /github-actions/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/github-actions/README.md -------------------------------------------------------------------------------- /github-actions/integration-tests.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/github-actions/integration-tests.yaml -------------------------------------------------------------------------------- /github-actions/validate-schema.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/github-actions/validate-schema.yaml -------------------------------------------------------------------------------- /integration-testing/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/integration-testing/README.md -------------------------------------------------------------------------------- /integration-testing/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/integration-testing/go.mod -------------------------------------------------------------------------------- /integration-testing/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/integration-testing/go.sum -------------------------------------------------------------------------------- /integration-testing/main_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/integration-testing/main_test.go -------------------------------------------------------------------------------- /kubernetes/example.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/kubernetes/example.yaml -------------------------------------------------------------------------------- /notebooks/rag/rag.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/notebooks/rag/rag.ipynb -------------------------------------------------------------------------------- /notebooks/rag/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/notebooks/rag/requirements.txt -------------------------------------------------------------------------------- /observability/simple-datadog/.gitignore: -------------------------------------------------------------------------------- 1 | .env 2 | -------------------------------------------------------------------------------- /observability/simple-datadog/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/observability/simple-datadog/README.md -------------------------------------------------------------------------------- /observability/simple-datadog/all_metrics.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/observability/simple-datadog/all_metrics.txt -------------------------------------------------------------------------------- /observability/simple-datadog/conf.d/openmetrics.d/conf.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/observability/simple-datadog/conf.d/openmetrics.d/conf.yaml -------------------------------------------------------------------------------- /observability/simple-datadog/datadog.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/observability/simple-datadog/datadog.yaml -------------------------------------------------------------------------------- /observability/simple-datadog/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/observability/simple-datadog/docker-compose.yml -------------------------------------------------------------------------------- /observability/simple-datadog/placeholder.env: -------------------------------------------------------------------------------- 1 | DD_API_KEY= 2 | -------------------------------------------------------------------------------- /observability/simple-datadog/spicedb-dashboard.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/observability/simple-datadog/spicedb-dashboard.json -------------------------------------------------------------------------------- /schemas/basic-rbac/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/schemas/basic-rbac/README.md -------------------------------------------------------------------------------- /schemas/basic-rbac/schema-and-data.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/schemas/basic-rbac/schema-and-data.yaml -------------------------------------------------------------------------------- /schemas/caveats/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/schemas/caveats/README.md -------------------------------------------------------------------------------- /schemas/caveats/schema-and-data.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/schemas/caveats/schema-and-data.yaml -------------------------------------------------------------------------------- /schemas/docs-style-sharing/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/schemas/docs-style-sharing/README.md -------------------------------------------------------------------------------- /schemas/docs-style-sharing/schema-and-data.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/schemas/docs-style-sharing/schema-and-data.yaml -------------------------------------------------------------------------------- /schemas/google-iam/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/schemas/google-iam/README.md -------------------------------------------------------------------------------- /schemas/google-iam/schema-and-data.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/schemas/google-iam/schema-and-data.yaml -------------------------------------------------------------------------------- /schemas/multiple-validation-files/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/schemas/multiple-validation-files/README.md -------------------------------------------------------------------------------- /schemas/multiple-validation-files/schema.zed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/schemas/multiple-validation-files/schema.zed -------------------------------------------------------------------------------- /schemas/multiple-validation-files/validations/admin-role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/schemas/multiple-validation-files/validations/admin-role.yaml -------------------------------------------------------------------------------- /schemas/multiple-validation-files/validations/reader-role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/schemas/multiple-validation-files/validations/reader-role.yaml -------------------------------------------------------------------------------- /schemas/superuser/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/schemas/superuser/README.md -------------------------------------------------------------------------------- /schemas/superuser/schema-and-data.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/schemas/superuser/schema-and-data.yaml -------------------------------------------------------------------------------- /schemas/user-defined-roles/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/schemas/user-defined-roles/README.md -------------------------------------------------------------------------------- /schemas/user-defined-roles/schema-and-data.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/schemas/user-defined-roles/schema-and-data.yaml -------------------------------------------------------------------------------- /spicedb-as-library/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/spicedb-as-library/go.mod -------------------------------------------------------------------------------- /spicedb-as-library/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/spicedb-as-library/go.sum -------------------------------------------------------------------------------- /spicedb-as-library/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/spicedb-as-library/main.go -------------------------------------------------------------------------------- /tracing/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/tracing/README.md -------------------------------------------------------------------------------- /tracing/docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/tracing/docker-compose.yaml -------------------------------------------------------------------------------- /tracing/grafana-datasources.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/tracing/grafana-datasources.yaml -------------------------------------------------------------------------------- /tracing/otel-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/tracing/otel-config.yaml -------------------------------------------------------------------------------- /tracing/schema.zed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/tracing/schema.zed -------------------------------------------------------------------------------- /tracing/tempo.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/authzed/examples/HEAD/tracing/tempo.yaml --------------------------------------------------------------------------------