Repository navigation
Description
Why
Deployments that run TESK behind an institutional login need authorisation rules that go beyond TESK's built-in group model: entitlements from a life-science AAI, per-action rules, admin roles, image allowlists, later GA4GH Passport visas. Encoding each of these in TESK would turn it into a policy engine, and every TES implementation would end up with its own rules.
Instead, TESK should ask an external decision service one standard question per request, using the OpenID AuthZEN 1.0 Access Evaluation API (POST /access/v1/evaluation), and keep only a thin hook: who is calling (validated identity, never the token), which TES operation, which task or task set. Any AuthZEN decision service can then decide (e.g. OPA, or OpenFGA behind a thin shim).
The sibling design for Poiesis is JaeAeich/poiesis#113. The same contract (profile tes-authzen/1) is being implemented for several TES implementations, so that one decision service and one policy serve all of them.
Without configuration, TESK behaves exactly as today.
Expected result
- New optional settings
tesk.api.authz.required-claim.{name,values,prefixes}: a built-in claim rule, enforced as an AND gate before the existing rules; the existingtesk.api.authorisation.claim.*(an OR grant of the group model) stays unchanged - New optional settings
tesk.api.authz.decision-service.{url,timeout,claims,credential-file}: with a URL, an AuthZEN evaluation decides create, get, cancel and list instead of the built-in group model - Subject built from the user info (opaque tokens) or the service client's token only; the access token is never sent
- Create: a fixed projection of the task (no commands, environment, input contents or backend parameters; URLs stripped of credentials, query and fragment)
- Get and cancel: the decision service is asked also for missing tasks (no existence oracle); denied gets give 404, denied cancels 403 or 404
- List: two evaluations (task sets
allandown) turned into a Kubernetes label selector; page tokens bound to the scope (400 on a mismatch) - Any failure of the decision service gives 503; startup checks refuse unsafe configurations
- Owners
<iss>|<sub>stamped on new tasks; tasks without an exact owner handled as unowned - Unit and integration tests; docs: configuration reference, access control, upgrade notes
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsBacklog
Activity
fix: omit URLs with tabs or line breaks
fix: omit URLs with "@" in a path without host