Repository navigation
Description
Why?
This is step 7 of the plan. Poiesis is already an OIDC resource server as of v0.2.0: poiesis/api/auth.py validates JWTs against one issuer via JWKS, with settings POIESIS_AUTH_ENABLED, POIESIS_AUTH_OIDC_ISSUER, ..._AUDIENCE, ..._REQUIRED_SCOPES and ..._PRINCIPAL_CLAIM. It has no group-membership authorization.
Upstream: https://github.com/JaeAeich/poiesis (maintainer @JaeAeich).
Authorization policy (agreed). Users must be members of the LS Login (Perun) group ECP_CLN (organization ELIXIR, "ELIXIR Compute Platform group for cloud apps") or any of its subgroups. The subgroups are currently ADMIN, BioHackCloud, BioHackCloud Admins, ELIXIR-CH, ELIXIR-CZ, ELIXIR-DE, ELIXIR-FI, ELIXIR-GR, ELIXIR-NL and OSS, plus the new EOC-Compute for approved compute users (elixir-cloud-aai/krini#45). Membership is managed as LS Login VO groups and released to services as entitlement values, typically in the eduperson_entitlement claim.
Do not hardcode a guessed string. Take the exact value(s) from the userinfo response or token of a test member; expect something like urn:geant:lifescience-ri.eu:group:<vo>:ECP_CLN…#…. Also check whether subgroup members carry the parent ECP_CLN entitlement. If they don't, accept ECP_CLN plus anything under ECP_CLN: by prefix. Note too whether the claim appears in the access token or only via userinfo, since that determines whether a userinfo lookup is needed.
How?
-
Add optional settings for required entitlements, e.g.:
POIESIS_AUTH_OIDC_REQUIRED_ENTITLEMENTS(CSV, supporting exact match and prefix);POIESIS_AUTH_OIDC_ENTITLEMENTS_CLAIM, dotted path, reusing the existing claim-path resolver.
Return
403for non-members. If LS Login only releases entitlements via userinfo, add a cached userinfo lookup. -
Open the upstream issue or PR and link it here, then release it as a v0.2.x patch.
-
Upgrade the deployments to that release and configure LS Login plus the group check:
- CZ:
poiesis.dyn.cloud.e-infra.cz - FI:
poiesis.rahtiapp.fi(andtest-poiesis.rahtiapp.fi) - NL: if Poiesis is chosen in Deploy a TES service at the NL Node (SURF) #22 (recommended)
- CZ:
Acceptance criteria
- With the setting enabled,
ECP_CLNmembers are accepted and non-members get403. - Every Poiesis deployment in the checklist runs with LS Login plus the group check.
Dependencies: none.
Part of the ELIXIR Compute Platform WP4 sprint (M&Ds due end of December 2026).
If you want to work on this issue:
- Assign yourself (if someone is already assigned, ask them first or pick another one)
- Move the issue to "In progress" on the project board
- Start working 🚀
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsBacklog
Activity
uniqueg commentedon Nov 11, 2026
Upstream issues posted 2026-11-11:
uniqueg commentedon Nov 21, 2026
Poiesis at https://poiesis.rahtiapp.fi now runs with LS Login authorization through the tes-authz decision service (Poiesis
devat 9cc2832, tes-authzdevafter #16; owner-only task visibility, EOC-Compute and ADMIN may run tasks).Smoke test on 2026-11-21 01:01 UTC, with a Krini access token:
Not tested yet: the 403 path with an account in neither group (no test account available; covered by the decision checks in the deployment and the unit tests).
uniqueg commentedon Nov 26, 2026
FI done on 2026-11-26:
poiesis.rahtiapp.firuns Poiesis fc72419 with LS Login and the group check through tes-authz a1d5c34 (EOC-Compute only, D-416; ADMIN alone and non-members are denied in all 36 decision cases). Smoke test with an API key minted from a Krini token: a task completes, cancel works, and the audit log records create/get/cancel as allowed by the decision service. A live 403 for a non-member account is not yet shown (no such test account at hand).