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(27 Nov: c506d9d, EOC-Compute only, smoke test passed; registry 5OW5HQ) - FI:
poiesis.rahtiapp.fi(test-poiesis.rahtiapp.fiwas retired on 21 Nov, FI: retire the unused anonymous TES deployments #109) - NL: not applicable: NL deploys TESP, not Poiesis (uniqueg, 27 Nov)
- CZ:
Acceptance criteria
- With the setting enabled (required entitlement
urn:geant:lifescience-ri.eu:group:elixir:ECP_CLN:EOC-Compute#aai.lifescience-ri.eu), Poiesis accepts an LS Login access token whoseeduperson_entitlementcarries that entitlement (audience: the Krini client), and API keys minted with such a token. With either, the holder can create tasks and list, get and cancel their own tasks; with the token, they can also mint API keys. Tokens withoutECP_CLN:EOC-Compute(including members ofECP_CLNorECP_CLN:ADMINonly) get403;service-infostays public. (Accepted path verified live at FI (U6b) and CZ (Z6, 27 Nov); the deny path is checked at the decision service and in tests. The live check with a non-member account moves to Check 403 for non-members on all EOC services #159.) - 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 fieldsDone
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).