Skip to content

DE: connect proTES to the DE Node's TES #126

Done

Description

@uniqueg

Why?

The gateway (proTES) sends tasks to the FI and CZ TESKs (#111, #138). The DE TES, TESK or Poiesis (#169), would be a third Node behind it. The gateway's configuration and the tests through it are ours. Nice to have for M4.4: the chain test (#44) needs any two Nodes. Part of #168.

How?

  1. Add the DE TES to proTES' backends:
  2. Run proTES' integration check pinned to it: a task that completes, one that fails, one cancelled while running, one cancelled right away.
  3. TESK: check that proTES' token can neither read, list nor cancel users' tasks.
  4. As an ECP_CLN:EOC-Compute member, send a task through proTES to the DE TES, and run the testbed's probe through proTES (--backend).
  5. Record the configuration here (no secrets) and on the proTES page of the docs ("In the ELIXIR On-Cloud"). Rollback: remove the DE TES from proTES' backends.

Acceptance criteria

  • Tasks sent to proTES run on the DE TES; the integration check passes.
  • The configuration is recorded here and in the docs.

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

Activity

  1. added
    priority: high
    workload: hours
    ecp-wp4: M4.4
    status: triage
    on Nov 21, 2026
  2. moved this to Backlog in ELIXIR On-Cloudon Nov 21, 2026
  3. uniqueg commented on Nov 23, 2026

    @uniqueg
    MemberAuthor

    Note on step 4: "an ECP_CLN member" means a member of elixir:ECP_CLN:EOC-Compute or elixir:ECP_CLN:ADMIN; the parent ECP_CLN group alone gives no compute access on ELIXIR On-Cloud. Ask the DE Node to check the same two values (or the client of proTES), not the parent group.

  4. changed the title [-]Connect proTES to a TES backend at the DE Node[/-] [+]DE: connect proTES to a TES backend at the DE Node[/+] on Nov 23, 2026
  5. added
    status: blocked
    and removed
    status: triage
    on Nov 23, 2026
  6. 18 remaining items

  7. moved this from Backlog to Nice to have in ELIXIR On-Cloudon Nov 28, 2026
  8. added
    status: triage
    status: in progress
    and removed
    status: blocked
    status: triage
    on Dec 3, 2026
  9. moved this from Nice to have to In progress in ELIXIR On-Cloudon Dec 3, 2026
  10. uniqueg commented on Dec 3, 2026

    @uniqueg
    MemberAuthor

    Step 1 is live (3 Dec 2026): proTES on Rahti sends tasks to the DE Node's TESK at BIH.

    Configuration (no secrets)

    • proTES on Rahti: Helm revision 19 -> 20 (3 Dec 2026, 22:01 CET; chart protes-0.8.0, image elixircloud/protes:0.8.0@sha256:bf1e689a…, values only). One more entry in tes.backends, after the four of FI: connect proTES to the FI TESK with its service token #111, CZ: connect proTES to our CZ TESK #138 and Connect proTES to Poiesis at FI and CZ with API keys #163:

      - url: https://eoc-tesk.bihealth.org
        type: ga4gh-tes
        auth: client_credentials
        identityTags: true

      auth: client_credentials: proTES calls it with a token of its own LS Login client (7c0c1fc0-…, issuer https://login.aai.lifescience-ri.eu/oidc/), as it does the FI and CZ TESKs. The BIH TESK (chart 0.4.0, tesk-api 2.0.0) lists that client in auth.tokenClients (audience = the client ID, claim client_id; DE: configure the BIH TESK for LS Login and the gateway #170).

    • identityTags: true: tasks sent to the BIH TESK carry the submitter tags (submitter.iss, submitter.sub, submitter.sub_source, submitter.client_id), as at FI and CZ since ops: pass submitter identity to the Nodes' TES #190. This is uniqueg's decision of 3 Dec 2026 (board d150). The privacy section of the docs names the DE Node among the recipients (docs PR below).

    • Rollback: a Helm upgrade with the same chart and the live values without this backend (jq 'del(.tes.backends[] | select(.url == "https://eoc-tesk.bihealth.org"))' on helm get values protes -n protes -o json, then runbooks/scripts/helm-upgrade-release.fish as for the change), never a rollback to a fixed revision number.

    • Runbook and pins: uniqueg/project-context#103 (PROTES_EXPECT_BACKENDS=5, TESK_DE_URL, and the generic scripts/protes-backend-member-check.fish for steps 2 and 4).

    Checks

    • Before the change, from outside, without a token: GET /service-info 200 (org.bihealth.eoc-tesk, TESK 2.0.0, TES 1.1.0); GET /tasks 401, also with an invalid token. From the proTES worker pod: BIH reachable (service-info 200, /tasks 401).
    • Step 3, proTES' service token at the BIH TESK (minted inside the proTES pod, never printed): token audience = its own client ID; GET /tasks 200 with 0 tasks listed (the existing member task from DE: configure the BIH TESK for LS Login and the gateway #170 isn't among them); GET of that member task 403; :cancel of it 403; an unknown task 404. proTES' token can neither read, list nor cancel users' tasks. Note: tesk-api 2.0.0 answers 403 for another user's task and 404 for an unknown one, so it shows that a task ID exists (not checked against tesk-api 2.1).
    • The change: helm-upgrade-release.fish passed all checks first: rights, chart checksum and signature, the values diff (only tes.backends.4.* new, every live setting kept), seccomp, LimitRange and quota, server dry runs, the Helm dry run, and the idle gate (0 tasks polled in the last 15 min). Then the upgrade: both rollouts OK, service-info 200.
    • After the change (protes-upgrade.fish verify): version 0.8.0; 5 backends (FI TESK, CZ TESK, FI Poiesis, CZ Poiesis, https://eoc-tesk.bihealth.org); client_backends on; GET /tasks without a token 401; app and worker on the pinned image and ready; the worker consumes both queues; all pods Running (the script's own pods check could not write its state file in the agent sandbox, so pods were checked with kubectl get pods). The start-up log of app and worker: "TES backends with access tokens of proTES: https://tesk.rahtiapp.fi, https://tesk.dyn.cloud.e-infra.cz, https://eoc-tesk.bihealth.org". No backend auth errors in the logs.
    • Step 2 (integration check pinned to the BIH TESK: completes, fails, cancelled while running, cancelled right away) waits on uniqueg. It needs a token of a user with role user at proTES. The smoke-test client isn't accepted there, and the allow lists stay as they are. It runs with step 4 (a task as an EOC-Compute member, and the testbed's probe with --backend), from one Krini token, in one script.

    Docs: elixir-cloud-aai/docs#258, merged (proTES page "In the ELIXIR On-Cloud", privacy section, end-to-end tutorial).

    Open: steps 2 and 4 (uniqueg), then the acceptance criteria.

  11. uniqueg commented on Dec 4, 2026

    @uniqueg
    MemberAuthor

    Steps 2 and 4 done (4 Dec 2026, with an ECP_CLN:EOC-Compute member's Krini token, runbooks/scripts/protes-backend-member-check.fish of uniqueg/project-context#103):

    • Step 2, proTES' integration check (tests/integration/check.sh at proTES e1e0683) pinned to https://eoc-tesk.bihealth.org: a task that finishes, one that fails, one cancelled while it runs, one cancelled right away: passed. (As expected with a user token, the check doesn't verify at the backend that the cancelled task stopped.)
    • Step 4: a member task through proTES pinned to the BIH TESK, QANN5M: COMPLETE there, stdout as expected.
    • Step 4, the NVFlare testbed's probe through proTES (--backend), task 67RRY1: the task itself COMPLETE at the BIH TESK (input download ok, environment passed), but the node can't take part in FL runs: flare-wes.elixir-on.cloud times out on port 30002 and on 443. That is DE: let TES tasks reach the NVFlare hub (optional) #177 (egress from the DE Node's TES tasks), recorded there; it doesn't affect this issue's acceptance criteria.

    Acceptance criteria:

    Closing. FL participation of the DE Node: #177, then #139.

  12. removed
    status: in progress
    on Dec 4, 2026
  13. moved this from In progress to Done in ELIXIR On-Cloudon Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ecp-wp4: M4.4flag: nice to havepriority: mediumtype: deliveryworkload: hours

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions