tes-authzen/1 is a specification for authorizing requests to GA4GH Task Execution Service (TES) implementations: a TES asks an external decision service, over AuthZEN 1.0, whether a caller may create, read, list or cancel tasks, so that access policy lives in one place instead of in every TES. The specification is a draft (draft 3, accepted for implementation on 2026-11-16): read it in spec/tes-authzen-1.md or on the documentation site.
A TES keeps authentication (OIDC), an owner stamped on every task, and a thin hook that asks one standard AuthZEN Access Evaluation per decision; everything that is policy lives in a decision service of the operator's choice. Without configuration, every TES behaves as today. The specification covers:
- §3 The contract: subject, actions, the two resource types, context, list filtering, userinfo and the exact request shape
- §4 Failure semantics, configuration, security: status codes, configuration keys, startup checks
- §5 Built-in claim rule and composition: the optional admission gate, ANDed with the decision
- §6 The hook: pseudo-code and implementation notes for Poiesis, TESK, Funnel and TESP
- §7 Reference decision service and engines: the reference policy and how OPA, OpenFGA, Cedar, Casbin, Cerbos and Topaz plug in
- §8 Test plan: test layers and the shared conformance cases
- §10 Decisions and §11 Open questions
- §12
tes-authzen/2: the compatible extension Poiesis sends (authenticator, actor and API key properties, task groups, response context)
Around the specification, this repository also holds reference tooling: decision services for OPA and OpenFGA behind the tes-authzen/1 endpoint (they accept tes-authzen/2 too), the shims they need, and a conformance harness that TES implementations plug into (Poiesis first, then TESK, Funnel and TESP). They show that the specification works with real engines and TES implementations; read the specification first.
Needs Docker with Compose, uv and make:
make test # lint, types, `opa check`, start services, all suites, stop and remove
make up # start only (OPA front on 18190, OpenFGA shim on 18191, ...)
make down # stop and remove containers and the state volume
make kubernetes # deploy deploy/kubernetes/ to the current kubectl context (e.g. kind) and test itThe services are a local test setup: the engines' own APIs are published
unauthenticated. Read Getting started first. To
run the OPA decision service on Kubernetes, see Operators
(deploy/kubernetes/).
The documentation is at https://tes-authz.readthedocs.io (sources in
docs/):
- Specification: the
tes-authzen/1specification itself (draft 3) - Getting started: run the services and try an evaluation
- Operators: reference policy, OpenFGA mapping, deployment notes
- Adding a TES and adding an engine: adapters, the mock OIDC issuer, one stack per worktree
- Testing: test layers and golden requests
- Findings: spec claims checked against running software
- Contributing: the development workflow
Contributions are welcome! See the contributing guide and mind our code of conduct.
Apache License 2.0, copyright ELIXIR On-Cloud.