Repository navigation
Description
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?
- 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. - 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. - Treat verification as a promise that the backend accepts LS Login tokens with the
ECP_CLNpolicy. Optionally probe/service-infobefore activating a backend, and drop backends that fail repeatedly. - Keep the static list as an optional override (e.g., for local development), and make the discovery mode configurable.
- 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:
- feat: add k8s client wrapper and constants TESK#201: token forwarding.
- Funnel: LS Login bearer auth and ECP_CLN group-based authorization on ELIXIR On-Cloud deployments generic-issues#20, Poiesis: ECP_CLN group-based authorization (OIDC authentication already exists) generic-issues#21, Enable LS Login on the ELIXIR On-Cloud TESK deployments generic-issues#35: backends accept LS Login tokens with the group policy.
- Populate the Cloud Registry: owners register their own deployments, admins remove placeholder entries generic-issues#29: registry populated.
- Cloud Registry: admin-set "verified" flag (backend and UI) cloud-registry#64: verified flag.
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?
- Configure the registry's URL (
httpsonly; the trust anchor, never taken from requests), the refresh interval, the accepted service types (org.ga4ghteswith versions) andenvironment(e.g.prod). - Fetch
GET /servicesandGET /verificationswithout 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. - Accept only
httpsURLs, normalized and checked withfoca.utils.urls; reject hosts resolving to private, loopback or link-local addresses (option, on by default). - Cache the list; keep the last good list if the registry is unreachable or returns an invalid response; log changes.
- Discovery mode as an option: static list, registry, or both (static list for local development).
- 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,
httpURLs 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:
- Add Read the docs files. Before they were auto generated TESK#213: service tokens; Enable LS Login on the ELIXIR On-Cloud TESK deployments generic-issues#35: FOCA 0.16 (
foca.utils.urls). - Enable LS Login on the ELIXIR On-Cloud TESK deployments generic-issues#35, Funnel: LS Login bearer auth and ECP_CLN group-based authorization on ELIXIR On-Cloud deployments generic-issues#20, Poiesis: ECP_CLN group-based authorization (OIDC authentication already exists) generic-issues#21: backends accept proTES's token.
- Populate the Cloud Registry: owners register their own deployments, admins remove placeholder entries generic-issues#29: registry populated.
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.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]proTES: discover TES backends dynamically from the Cloud Registry[/-][+]feat: discover TES backends from the registry[/+]uniqueg commentedon Oct 22, 2026
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
httpsentries 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).uniqueg commentedon Oct 23, 2026
Note on the dependencies of this issue, for the record:
client_credentials), which works for every discovered backend. So discovery (feat: discover TES backends from the registry #260) didn't need feat: add k8s client wrapper and constants TESK#201. feat: add k8s client wrapper and constants TESK#201 stays open for the gateway's own authentication and authorization.