Create a 'files store' service that can be queried to get attachments
Current situation
The attachments produced by running jobs are only accessible by plugins (mostly publisher plugins) and are provided via the file system.
This can be an inconvenience, as it forces parsers and other attachment consumers to share a common (possibly shared) folder with channel handlers.
This is also an inconvenience in that there is no way to get attachments from non-service tools (such as opentf-ctl
).
Desired outcome
A 'files store' service that makes those attachments accessible via the following endpoint:
GET /workflows/{workflow_id}/files/{attachment_id}
This service would listen on port 34537 be default ('FILES').
This is a core service, and hence should reside in opentf/core
.