Repository navigation
Closed
Labels
priority: highHigh prioritytype flag: breaking changeProposed change breaks current APItype: maintenanceRelated to general repository maintenancetype: securityRelated to securityworkload: daysLikely takes days to resolve
Description
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
- Backend list (breaking):
custom.tes.backends, a list of FOCA's typed entries (foca.plugins.backends.BackendListConfig:ga4gh-tes,ga4gh-service-registry), replacingcustom.tes.service_listandcustom.tes.discovery. The old keys stop the app with a hint listing the mapping (service_listentries becomega4gh-tesentries in order, then the registry as onega4gh-service-registryentry; design section 16). - 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. - Lookup and credentials:
get_backend(url)(Celery tracker, cancel) usesfind(url); credentials come fromentry_for(backend)(auth,basicenvironment variables) and are added by proTES as today;check_backends()checks the new list. - Public URL:
server.public_url(FOCA), required when the list has registry entries (so that proTES never discovers itself); chart value and docs. - Deleted:
pro_tes/ga4gh/tes/discovery.py(discovery,check_public_host,is_public_address) and its tests; the service info gets the backends fromdescribe()if it lists them today. - Kept in proTES:
custom.tes.client_credentials,custom.tes.timeout;custom.tes.url_schemesonly for what FOCA's per-entryurl_schemesdoesn't cover (the identity provider), otherwise removed. - Chart and Compose:
tes.backendsvalues (camelCase keys of the chart, typed entries),values.schema.json, the smoke config (tests/smoke/config.yaml) anddocker-compose.yaml. - Docs: configuration, access control (backend credentials), "Upgrading" with the mapping.
Acceptance criteria
- Backends are configured in
custom.tes.backendsonly; 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.
Metadata
Metadata
Assignees
Labels
priority: highHigh prioritytype flag: breaking changeProposed change breaks current APItype: maintenanceRelated to general repository maintenancetype: securityRelated to securityworkload: daysLikely takes days to resolve
Activity