Skip to content

feat: choose gateway plugins per task #49

Open

Description

@uniqueg

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?

  1. Discovery:

    • Public GET /service-info of 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).
  2. 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 tag gateway.pipeline: the preset name, or the pipeline as JSON (≤ 8 KiB). No tag means the default pipeline.

  3. 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).

  4. Errors: show 400 details ("plugin not available: X", limits, "per-task pipelines are disabled", invalid gateway.backends) next to the form.

  5. Clients may set only gateway.pipeline and gateway.backends; never set any other gateway.* tag (the gateway answers 400).

Acceptance criteria

  • A user can submit a task with a preset and with a custom pipeline; the task's gateway.pipeline_source and gateway.plugins reflect it.
  • Only plugins listed by /plugins can be chosen; params are validated against their schema before submitting.
  • Backend selection via gateway.backends works for order, allow and forbid.

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.

Activity

  1. added
    priority: medium
    status: blocked
    type: feature
    workload: days
    ecp-wp4: M4.4
    on Oct 24, 2026
  2. moved this from Backlog to Ready in ELIXIR On-Cloudon Oct 26, 2026
  3. added
    priority: low
    flag: nice to have
    and removed
    priority: medium
    on Nov 8, 2026
  4. moved this from Ready to Backlog in ELIXIR On-Cloudon Nov 8, 2026
  5. added
    status: triage
    and removed
    status: blocked
    on Nov 16, 2026
  6. moved this from Backlog to Nice to have in ELIXIR On-Cloudon Nov 17, 2026
  7. added this to the v0.3.0 milestone on Nov 23, 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

    ecp-wp4: M4.4flag: nice to havepriority: lowstatus: triagetype: featureworkload: days

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions