mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-10-02 03:24:42 +08:00
Working on https://github.com/agent-substrate/substrate/issues/1563 Integrates runtime OpenFGA authorization checks for `Atespace` CRUD RPCs (`CreateAtespace`, `ListAtespaces`, `GetAtespace`, `DeleteAtespace`) and atomic OpenFGA tuple cleanup on atespace deletion, gated behind `--enable-authz` (`ATE_API_ENABLE_AUTHZ`). ### What's Included - Runtime Policy Decision Point (`cmd/ateapi/internal/authz/authorizer.go`): - gRPC Interceptor & Declarative Registry (`cmd/ateapi/internal/authz/interceptor.go`, `registry.go`): - Atomic Policy Cleanup on `DeleteAtespace` (`policy_manager.go`, `atepg.go`): - Server Wiring (`cmd/ateapi/main.go`): ### Next (PR 3) - Policy management RPCs