Skip to content

feat(tes/data/crypt4gh): move the Crypt4GH middleware #65

Closed

Description

@uniqueg

Description

The Crypt4GH middleware lives in its own repository, protes-middleware-crypt4gh, with its own CI, packaging (Poetry) and image. It predates FOCA's plugin engine (elixir-cloud-aai/protes#321), so proTES can't load it the way it loads the plugins of this repository. Move it here as a plugin, following the repository's conventions (see plugins/README.md and "Writing a plugin").

Expected result

  • New plugin tes.data.crypt4gh (plugins/tes/data/crypt4gh/, distribution foca-plugin-tes-data-crypt4gh): in the request phase, it adds the decryption executor(s) and volumes for Crypt4GH inputs of a TES task, as the middleware does today; behaviour and settings documented in its README, with a changelog.
  • Check which parts are gateway-neutral (key handling, detecting Crypt4GH inputs) and keep them separate from the TES-specific task rewrite, so a WES variant can reuse them later (no WES plugin now).
  • The decryption image (today's Dockerfile and decrypt.py) built and published from this repository, or kept where it is with a documented reason; the plugin's image reference configurable.
  • Tests ported to pytest with 100% coverage; test keys and encrypted fixtures marked as test data for the secret scanners.
  • Open work in the old repository taken into account: issues build: version the meta package semantically #31 (teardown executor) and build: support FOCA 0.19 #32 (update the decryption), PRs docs: add a README citation section #29 (task tests) and build(deps-dev): Bump the python-dependencies group across 1 directory with 4 updates #33 (Dockerfile and middleware update); the move says which of them it includes and which become issues here.
  • Docs: plugin README, catalogue entry, proTES configuration example.
  • After the plugin's first release: the old repository's README points here, and the repository is archived (maintainer step).

Metadata

Metadata

Assignees

Labels

priority: mediumtype: featureworkload: days

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions