Skip to content

FI: NVFlare hub sends tokens to the FI TESK #110

Done

Description

@uniqueg

Why?

The NVFlare hub's WES sends the federated learning tasks of each site to that site's TES, as listed in the sites file. Today both sites point at the FI TESK without a token. Once the FI TESK requires tokens (#35), the hub's tasks get 401. The WES already sends a token per site (elixir-cloud-aai/nvflare-wes-testbed, docs/setup/real-sites.md), so this is configuration only. Part of the parent issue.

How?

  1. For each run, take a fresh LS Login access token of a member of ECP_CLN:EOC-Compute or ECP_CLN:ADMIN (D-377) from the environment of the shell, and write it as token of each site into the sites file. The file lives only in the local state folder (mode 700) and in the Secret nvflare-wes-sites, and is deleted after the run.
  2. Re-create the Secret, restart the hub, and run the probe and the job against the FI TESK, before and after Enable LS Login on the ELIXIR On-Cloud TESK deployments #35 (a TESK without auth ignores the header [to be confirmed by the first run]).
  3. Note in the runbook that a token lives 4 hours: one run per token, renewed between runs. Automatic renewal: elixir-cloud-aai/nvflare-wes-testbed (linked sub-issue of the parent).
  4. Record here (without tokens) that the hub's tasks run with tokens.

Acceptance criteria

  • The probe and a federated run complete against the FI TESK with auth on.

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.5
    on Nov 12, 2026
  2. moved this from Backlog to Ready in ELIXIR On-Cloudon Nov 12, 2026
  3. added
    status: triage
    and removed
    status: triage
    on Nov 16, 2026
  4. self-assigned this
    on Nov 18, 2026
  5. added
    status: in progress
    on Nov 18, 2026
  6. moved this from Ready to In progress in ELIXIR On-Cloudon Nov 18, 2026
  7. uniqueg commented on Nov 19, 2026

    @uniqueg
    MemberAuthor

    Pass 1, 2026-11-19 ~11:00 UTC: the NVFlare hub on Rahti ran with an LS Login access token of an ECP_CLN member as token of both sites in the sites file (Secret nvflare-wes-sites; after the run the local copy was deleted and the Secret holds the file without token again).

    • FI TESK: https://csc-tesk-noauth.rahtiapp.fi, without auth (200 without token).
    • Probe (tests/probe_submit.py with TES_TOKEN): task COMPLETE, FL port 30002 open, input ok, environment passed, /tmp writable, / read-only (uid 1002390000, gid 0): the node can take part.
    • Run 9cfe6bb4: COMPLETE in about 90 s, NVFlare job FINISHED:COMPLETED, global model written.
    • A TESK without auth ignores the Authorization header, as expected from tesk-api's noauth profile (anonymous, permit all, no token filter): confirmed by this run.
    • Tokens live 4 hours: one run per token, renewed between runs (runbook). Automatic renewal is supported by the hub (token_file or oauth, feat: renew the TES tokens of sites nvflare-wes-testbed#39) but not set up on Rahti.

    Pass 2 follows against the FI TESK with auth on, after #35; then the acceptance criterion is ticked and this issue closed.

  8. uniqueg commented on Nov 23, 2026

    @uniqueg
    MemberAuthor

    Note for pass 2: the FI TESK accepts tasks only from members of elixir:ECP_CLN:EOC-Compute or elixir:ECP_CLN:ADMIN, not from members of the parent ECP_CLN group alone. The token for the sites file must come from such a member; step 1 above ("an ECP_CLN member") is meant that way.

  9. changed the title [-]NVFlare hub: send tokens to the TES of the sites[/-] [+]FI: NVFlare hub sends tokens to the FI TESK[/+] on Nov 23, 2026
  10. added
    type: delivery
    and removed on Nov 23, 2026
  11. moved this from In progress to Done in ELIXIR On-Cloudon Nov 24, 2026
  12. uniqueg commented on Nov 24, 2026

    @uniqueg
    MemberAuthor

    Pass 2 done on 2026-11-24 with an LS Login token of an EOC-Compute member, auth on at the FI TESK: probe COMPLETE (FL port open, input ok), and the federated run ae7742f2 FINISHED:COMPLETED with site-1 on the FI TESK and site-2 on the CZ TESK (holdout accuracy 0.975). Details go into the testbed report (elixir-cloud-aai/nvflare-wes-testbed#10).

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.5priority: highstatus: in progresstype: deliveryworkload: hours

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions