Skip to content

feat: ask an external AuthZEN decision service #199

Backlog

Description

@uniqueg

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 existing tesk.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 all and own) 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

Activity

  1. self-assigned this
    on Nov 16, 2026
  2. added
    type: feature
    priority: medium
    status: in progress
    workload: days
    on Nov 16, 2026
  3. moved this from Backlog to In progress in ELIXIR On-Cloudon Nov 16, 2026
  4. moved this from In progress to In review in ELIXIR On-Cloudon Nov 17, 2026
  5. added
    status: on hold
    and removed
    status: in progress
    on Nov 17, 2026
  6. moved this from In review to Backlog in ELIXIR On-Cloudon Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: mediumstatus: on holdtype: featureworkload: days

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions