Repository navigation
Open
3 / 43 of 4 issues completedLabels
ecp-wp4: M4.4ELIXIR Compute Platform WP4 milestone/deliverable this issue contributes topriority: mediumMedium prioritystatus: triageHas not been triaged by admintype: authRelated to authorization or authenticationworkload: daysLikely takes days to resolve
Description
Goal
Routine test, development and deployment checks against our services (Poiesis on Rahti and at CERIT, TESK FI and
CZ, later proTES) need an access token. Today a maintainer pastes a fresh token for each check. We register a
dedicated LS Login client, "ELIXIR On-Cloud smoke tests", with the client credentials grant only, so that automation
gets its own short-lived tokens, and give that client narrow rights in the services.
Non-goals
- Not a replacement for end-to-end tests with real users (test: run the M4.4 chain end to end with LS Login #44): the client has no user, no groups and no entitlements.
- No admin rights anywhere, no access to other users' tasks, no API keys.
Design
- LS Login: confidential client, client credentials grant only, no redirect URIs, no scopes beyond what the form
requires, no refresh tokens, shortest token lifetime LS Login allows. Its tokens (per the LS Login operators, LS Login: register the proTES client #47):
JWTtyp at+jwt,client_id=sub= the client ID, no entitlements. - Recognition: services recognise the client by identity (
iss+client_id+sub= client ID), never by
entitlements. No user token can match, since user tokens carry the user'ssub. - Poiesis (code change upstream, Accept service clients per issuer (client credentials) JaeAeich/poiesis#208): per issuer, a list of service clients matched by client ID, with
their own audiences; they skip userinfo and the issuer'srequiredClaim; humans keep today's rules exactly
(requiredClaimstays set). The decision service still decides. - tes-authz: a new, optional
service_clientskey in the policy data: per client the services it may use and a
ceiling for its tasks (images, explicit CPU/RAM/disk limits, input/output URL prefixes, executor count). Listed
clients may create tasks within the ceiling, and list, get and cancel their own tasks; neverall, never admin,
never with anactoror an API key. Without the key, decisions are unchanged. - TESK (tokenClients: audiences per client TESK#336 (+ Service clients: audiences per client tesk-api#215)):
auth.tokenClients.clientsbecomes a map client ID -> settings withaudiences, so each
client (proTES' and this one) is accepted only at its own audiences. tesk-api's built-in model then lets the client
create, list, get and cancel its own tasks only. - proTES (Opt-in service client role for production smoke tests protes#514, later, low priority): an opt-in service client role for production end-to-end smoke tests
(own tasks, only backends we operate, forwarding its own token) replaces the startup refusal. - Token exchange: RFC 8693 (a token per backend audience) is the long-term fix for gateways forwarding tokens.
- Helper:
eoc-token.fishmints a token into a mode-600 curl header file and prints only token type, audience and
expiry; the secret stays in a mode-600 file that only curl reads.
Tasks
- LS Login: register the client and get the client credentials grant, bundled with the pending grant for
proTES' client (uniqueg; no PR) - Accept service clients per issuer (client credentials) JaeAeich/poiesis#208 Poiesis: service clients per issuer
- tokenClients: audiences per client TESK#336 TESK chart:
tokenClientsaudiences per client - Service clients: audiences per client tesk-api#215 tesk-api: per-client audiences
- Opt-in service client role for production smoke tests protes#514 proTES: opt-in service client role (low priority, not on the critical path)
- tes-authz:
service_clientsin the reference policy (OPA, OpenFGA or a documented engine difference, golden
rows, spec §5/§7, operator docs) - Token helper
eoc-token.fish: finish and check it against the first real token (type, audience, expiry,sub) - Deployments: Poiesis Rahti and CERIT (service client entry, tes-authz data), TESK FI and CZ (client map) once the
children above are released - Docs: operator page on the smoke-test client (what it may do, where it's configured, how to rotate the secret)
Acceptance criteria
- A token of the client has
typ at+jwt,client_id=sub= the client ID, no entitlements, and lives as short
as LS Login allows (recorded). - With that token, on each Poiesis instance: create a small task within the ceiling, list it, get it and cancel it
(200); a task over the ceiling or with another image is refused (403);ListTaskson all tasks and another
user's task are refused (403/404). - On each TESK instance: create, list, get and cancel own tasks work; other users' tasks aren't visible; the
client's token isn't accepted at an audience listed only for proTES' client. - A user without
EOC-Compute/ADMINis still refused everywhere, and members' and admins' results are unchanged
(existing smoke tests pass). - The client secret exists only in LS Login and in one mode-600 file of the maintainer; it is in no repo, values
file, log or Kubernetes Secret. - Docs published.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 4 sub-issues
Metadata
Metadata
Assignees
Labels
ecp-wp4: M4.4ELIXIR Compute Platform WP4 milestone/deliverable this issue contributes topriority: mediumMedium prioritystatus: triageHas not been triaged by admintype: authRelated to authorization or authenticationworkload: daysLikely takes days to resolve
Type
Projects
- StatusShow more project fieldsBacklog
Activity