Repository navigation
Description
Why?
Gateways run a pipeline of plugins for every task (e.g. routing, data handling). Admins configure the available plugins, presets and the default pipeline. Users may choose a pipeline per task from what is available to them (on by default; admins can switch it off), and may constrain which backends are used. Krini is where users make that choice without hand-writing JSON.
How?
-
Discovery:
- Public
GET /service-infoof a gateway: show its advertised capabilities (generic descriptors from a community vocabulary, e.g. "crypt4gh input") on the services page and in the selector (feat: browse services from a registry #40), and whether per-task pipelines are enabled. - Authenticated
GET <base>/plugins(e.g./ga4gh/tes/v1/plugins): the plugins the user may choose (id,title,description, group, phases, version,params_schema), presets, the default pipeline and the limits (max_steps,max_alternatives, fixed admin steps).
- Public
-
Pipeline picker in the create form ("Advanced"): default, a preset, or a custom list of steps (each step: one plugin plus fallbacks, params from a form generated from
params_schema), within the limits. Send it as the taggateway.pipeline: the preset name, or the pipeline as JSON (≤ 8 KiB). No tag means the default pipeline. -
Backend selection (optional), sent as the second reserved client tag
gateway.backends: a JSON string of{"type": "order" | "allow" | "forbid", "backends": [...]}, one type at a time:order: try these backends in my order (overrules the gateway's order);allow: only these, in the gateway's order; the others are not tried;forbid: all but these, in the gateway's order.
Backends are picked from the verified registry list (feat: browse services from a registry #40). The gateway validates each item (verified, right type) and discards illegal ones; show what was actually tried (feat: show where gateway tasks ran #48). Example:
{"tags": {"gateway.backends": "{\"type\":\"allow\",\"backends\":[\"https://tes-a.example.org\"]}"}}(the item format, URL or registry ID, follows the gateway's API docs). -
Errors: show
400details ("plugin not available: X", limits, "per-task pipelines are disabled", invalidgateway.backends) next to the form. -
Clients may set only
gateway.pipelineandgateway.backends; never set any othergateway.*tag (the gateway answers400).
Acceptance criteria
- A user can submit a task with a preset and with a custom pipeline; the task's
gateway.pipeline_sourceandgateway.pluginsreflect it. - Only plugins listed by
/pluginscan be chosen; params are validated against their schema before submitting. - Backend selection via
gateway.backendsworks fororder,allowandforbid.
Dependencies: #41, #44; proTES with the FOCA plugin engine (FOCA 0.18, elixir-cloud-aai/protes#194 re-scoped, elixir-cloud-aai/protes#218 superseded), /plugins and service-info capabilities.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNice to have
Activity