Skip to content

refactor!: list TES backends with FOCA #332

Closed

Description

@uniqueg

Part of #321 (step 4 "Backend list", the backend half of step 5 "Config", and the tes.backends part of step 10), as decided there.

Problem

Backends come from two places (custom.tes.service_list and one registry in custom.tes.discovery), and proTES has its own registry discovery and public-address checks, which FOCA 0.18 now provides for all gateways (foca.plugins.backends, FOCA P5/P10).

Proposal

  1. Backend list (breaking): custom.tes.backends, a list of FOCA's typed entries (foca.plugins.backends.BackendListConfig: ga4gh-tes, ga4gh-service-registry), replacing custom.tes.service_list and custom.tes.discovery. The old keys stop the app with a hint listing the mapping (service_list entries become ga4gh-tes entries in order, then the registry as one ga4gh-service-registry entry; design section 16).
  2. Candidates: BackendList(entries, api="tes", public_url=...).expand() gives the backends that tasks may go to, in order, until the engine (next child) takes them as route candidates; the middlewares get them as today.
  3. Lookup and credentials: get_backend(url) (Celery tracker, cancel) uses find(url); credentials come from entry_for(backend) (auth, basic environment variables) and are added by proTES as today; check_backends() checks the new list.
  4. Public URL: server.public_url (FOCA), required when the list has registry entries (so that proTES never discovers itself); chart value and docs.
  5. Deleted: pro_tes/ga4gh/tes/discovery.py (discovery, check_public_host, is_public_address) and its tests; the service info gets the backends from describe() if it lists them today.
  6. Kept in proTES: custom.tes.client_credentials, custom.tes.timeout; custom.tes.url_schemes only for what FOCA's per-entry url_schemes doesn't cover (the identity provider), otherwise removed.
  7. Chart and Compose: tes.backends values (camelCase keys of the chart, typed entries), values.schema.json, the smoke config (tests/smoke/config.yaml) and docker-compose.yaml.
  8. Docs: configuration, access control (backend credentials), "Upgrading" with the mapping.

Acceptance criteria

  • Backends are configured in custom.tes.backends only; the old keys stop the app with the migration hint.
  • proTES has no registry discovery or address checks of its own.
  • Tests pass with 100% coverage; chart tests, smoke test, docs build and pre-commit pass.
  • Release notes: breaking change (backend list), with the mapping.

Activity

  1. added
    priority: high
    status: blocked
    type flag: breaking change
    type: maintenance
    type: security
    workload: days
    on Oct 28, 2026
  2. added
    status: in progress
    and removed
    status: blocked
    on Oct 29, 2026
  3. removed
    status: in progress
    on Oct 29, 2026
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

    priority: hightype flag: breaking changetype: maintenancetype: securityworkload: days

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions