Skip to content

proTES: get client credentials tokens from LS Login #136

Done

Description

@uniqueg

Why?

proTES calls every TES backend with its own client credentials token (#31), and the backends accept it by its client (#108). LS Login has to allow the client credentials grant for proTES' client (#47) first. That is the only step that every Node's proTES connection shares (FI #111, CZ #138, DE #126), so it lives here and not in one Node's issue: each Node's connection waits for this issue and for its own TES, never for another Node. Part of #108.

How?

  1. Once LS Login has approved the move of proTES' client to production (Give each app its own LS Login client #123), request the client credentials grant for it.
  2. Get one token and record here its claims that matter, without the token: iss, client_id, azp, aud, sub, the typ header, lifetime. Name the claim and value that the TES backends match proTES' client by.
  3. Check that proTES on Rahti gets tokens with its client credentials (Secret in its namespace, no secrets here).

Acceptance criteria

  • proTES obtains access tokens with the client credentials grant, and the claims the backends check are recorded here.

Dependencies: LS Login (external): the production approval and the grant. #135 (smoke-test client) waits for the same approval.


Part of the ELIXIR Compute Platform WP4 sprint (M&Ds due end of December 2026).

Activity

  1. added
    priority: high
    status: on hold
    type: auth
    workload: hours
    ecp-wp4: M4.4
    on Nov 23, 2026
  2. moved this to Backlog in ELIXIR On-Cloudon Nov 23, 2026
  3. added
    status: in progress
    and removed
    status: on hold
    on Nov 24, 2026
  4. uniqueg commented on Nov 24, 2026

    @uniqueg
    MemberAuthor

    Steps 2 and 3 are done (2026-11-24).

    Step 2: claims of proTES' client credentials token (one token from LS Login with HTTP Basic, as proTES asks for it; no token or secret recorded anywhere):

    What Value
    typ header, alg at+jwt, RS256
    iss https://login.aai.lifescience-ri.eu/oidc/
    client_id 7c0c1fc0-e8ca-47d6-a9b2-bdc843961146
    azp not set
    sub 7c0c1fc0-e8ca-47d6-a9b2-bdc843961146 (a service token, no user)
    aud 7c0c1fc0-e8ca-47d6-a9b2-bdc843961146 (the client's own ID; no resource or audience requested)
    scope entitlements openid eduperson_entitlement
    Lifetime 3600 s

    Proposed matching (to be confirmed in the TESK auth design): the TES backends recognise proTES' client by iss = https://login.aai.lifescience-ri.eu/oidc/ together with client_id = 7c0c1fc0-e8ca-47d6-a9b2-bdc843961146 (sub holds the same value). A backend that checks the audience has to accept aud = proTES' own client ID for this client, because LS Login doesn't put the backend into aud.

    Step 3: proTES on Rahti gets tokens with its client credentials. proTES 0.6.0 (Helm revision 10) has its client ID in PROTES_CLIENT_ID and the secret from the Secret protes-tes-credentials (key client-secret) in its namespace, for the app and the worker, and LS Login as issuer in custom.tes.client_credentials. In both pods, proTES' own token code (TokenProvider, with the pods' config and environment) got a token with the claims above. Its backends are unchanged, so no task uses the token yet: the FI TESK gets it in #111, CZ in #138, DE in #126.

    Closing, as the acceptance criterion is met.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ecp-wp4: M4.4priority: highstatus: in progresstype: authworkload: hours

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions