Skip to content

feat: discover TES backends from the registry #202

Closed

Description

@uniqueg

Why?

Priority: low. Dynamic discovery isn't part of the M&D wording.

proTES currently routes to a static tes.service_list in pro_tes/config.yaml, which is already outdated. Once the Cloud Registry is populated by the real operators (elixir-cloud-aai/generic-issues#29), proTES should fetch its backends from https://registry.elixir-on.cloud/. The registry then becomes the single source of truth, and new Nodes join the network just by registering (which also ties M4.1 and M4.4 together).

This depends on end-to-end token passthrough. proTES has no credentials for backends it learns about at runtime. It can only use them by forwarding the user's LS Login token (#201, option b), so the backends must accept and authorize those tokens (elixir-cloud-aai/generic-issues#20, elixir-cloud-aai/generic-issues#21, elixir-cloud-aai/generic-issues#35).

How?

  1. Periodically query the registry for services of TES type (GA4GH type org.ga4gh / tes), with caching, a configurable refresh interval, and a fallback to the last known list or the static config if the registry is down.
  2. Only use entries marked verified by ECP_CLN:ADMIN (Cloud Registry: admin-set "verified" flag (backend and UI) cloud-registry#64; decided). Anyone logged in can register entries, so forwarding user tokens to unverified endpoints would leak them.
  3. Treat verification as a promise that the backend accepts LS Login tokens with the ECP_CLN policy. Optionally probe /service-info before activating a backend, and drop backends that fail repeatedly.
  4. Keep the static list as an optional override (e.g., for local development), and make the discovery mode configurable.
  5. Expose the currently active backends, e.g., in proTES service-info or logs, so the Demonstrator (Demonstrator dashboard: LS Login (OIDC) support and access tiers tes-dashboard#33) can show them.

Acceptance criteria

  • Registering and verifying a new TES in the registry makes proTES route tasks to it within one refresh interval, with no config change.
  • Unverified entries are never used.
  • Tasks reach dynamically discovered backends with the user's token.

Dependencies:


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 🚀

Updated scope (2026-10-22, migration plan)

Why?

Priority: low. Dynamic discovery isn't part of the M&D wording.

proTES routes to a static tes.service_list, which is already outdated. Once the Cloud Registry is populated by the operators (elixir-cloud-aai/generic-issues#29), proTES should take its backends from https://registry.elixir-on.cloud/, so that new Nodes join the network just by registering (which also ties M4.1 and M4.4 together).

Per the ELIXIR On-Cloud auth policy (sections 4 and 4a), proTES calls backends with its own service token, not the user's (#213), so discovered backends need no per-backend credentials. Registry entries are user-supplied, though: any LS Login user can register one, so an entry pointing at a malicious or internal endpoint would receive tasks, input locations and proTES's token, which every TES accepts.

How?

  1. Configure the registry's URL (https only; the trust anchor, never taken from requests), the refresh interval, the accepted service types (org.ga4gh tes with versions) and environment (e.g. prod).
  2. Fetch GET /services and GET /verifications without a token (public reads); use only verified entries (Cloud Registry: admin-set "verified" flag (backend and UI) cloud-registry#64), filtered by type, version and environment on the client.
  3. Accept only https URLs, normalized and checked with foca.utils.urls; reject hosts resolving to private, loopback or link-local addresses (option, on by default).
  4. Cache the list; keep the last good list if the registry is unreachable or returns an invalid response; log changes.
  5. Discovery mode as an option: static list, registry, or both (static list for local development).
  6. Show the active backends in the logs and in service info (e.g. for the Demonstrator, Demonstrator dashboard: LS Login (OIDC) support and access tiers tes-dashboard#33).

Acceptance criteria

  • Registering and verifying a new TES in the registry makes proTES route tasks to it within one refresh interval, with no config change.
  • Unverified entries, http URLs and internal addresses are never used.
  • proTES keeps routing to the last good list while the registry is down.
  • Tests cover all of the above.

Dependencies:


Update (2026-10-22): generic configuration. proTES must stay generic, so that any organization can deploy it with its own identity provider, clients and groups. Wherever this issue names LS Login, ECP_CLN, Krini, Conquest or other ELIXIR On-Cloud specifics, read them as examples of deployment configuration: the implementation has no such defaults (issuers, audiences, service clients, group mappings and on-behalf-of clients are all set by the deployment), and config comments, chart values, docs and tests use generic, clearly fictitious values. ELIXIR On-Cloud deployment values are documented outside this repository.

Activity

  1. added
    priority: low
    type: feature
    workload: days
    ecp-wp4: M4.1
    ecp-wp4: M4.4
    on Oct 14, 2026
  2. added
    type: security
    status: blocked
    on Oct 22, 2026
  3. changed the title [-]proTES: discover TES backends dynamically from the Cloud Registry[/-] [+]feat: discover TES backends from the registry[/+] on Oct 22, 2026
  4. uniqueg commented on Oct 22, 2026

    @uniqueg
    MemberAuthor

    Updated to the ELIXIR On-Cloud auth policy (sections 4 and 4a): proTES calls the backends with its own service token (#213), not the user's, so discovery no longer depends on token forwarding. The registry is read without a token, only verified https entries of the configured types and environment are used (filtered on the client), internal addresses are rejected, and the last good list is kept while the registry is down. This needs FOCA 0.16 (foca.utils.urls, elixir-cloud-aai/generic-issues#35).

  5. added
    status: in progress
    and removed
    status: blocked
    on Oct 23, 2026
  6. moved this from Ready to In progress in ELIXIR On-Cloudon Oct 23, 2026
  7. moved this from In progress to Done in ELIXIR On-Cloudon Oct 23, 2026
  8. removed
    status: in progress
    on Oct 23, 2026
  9. uniqueg commented on Oct 23, 2026

    @uniqueg
    MemberAuthor

    Note on the dependencies of this issue, for the record:

  10. self-assigned this
    on Oct 23, 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.1ecp-wp4: M4.4priority: lowtype: featuretype: securityworkload: days

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions