Multi-file package handoff

The handoff isn't one file. It's config plus data plus instructions plus an attachment, and the consumer needs them together. A multi-file kubbi encrypts each file individually and delivers the whole package under one claim URL.


How it works

StepWhoAPI callWhat happens
1ProducerPOST /api/v1/kubbisCreates a package kubbi with a files[] array. Gets back a claim URL.
2ProducerSend claim_urlOnly the URL travels. Files stay encrypted in kubbi.
3ConsumerGET /r/:claim_tokenInspects the file manifest: names, types, sizes, roles. No retrieval consumed.
4ConsumerPOST /r/:claim_token/claimGets all files in one response. Text as UTF-8, binary as base64. Payload burns when max_retrievals is reached.

Example

CI/CD pipeline → air-gapped build agent

A GitHub Actions workflow needs to pass config, instructions, and a binary artifact to an air-gapped build agent. The pipeline creates a package kubbi with config.json, instructions.md, and artifact.tar.gz (base64-encoded). The claim URL is injected into the build job's environment variables. The build agent claims when needed. The short TTL ensures cleanup even if the build never starts.


Related