Skip to Content
Xeonr Developer Docs
API SpecificationUpdater

Confirm a module artifact upload

POST
/xeonr.updater.v1.UpdaterService/ConfirmModuleArtifact

Completes an upload started with UploadModuleArtifact: stores the .zip under the module release's platform directory and records its SHA-512 in the release manifest. The stored file is private unless the module release is on a public target. Returns the artifact's platform, filename and SHA-512.

A filename that does not end in .zip is INVALID_ARGUMENT; a published module release is FAILED_PRECONDITION; an unknown one is NOT_FOUND. The caller needs write access to the app's bucket: a signed-in person's token carrying upl:uploads:manage, or a team API key. A read-only token (the download page's client_credentials token, or one without that scope) gets PERMISSION_DENIED.

An updater-cli team API key (carrying updater:apps:read and updater:releases:edit) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets NOT_FOUND.

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

bucketId?string
Length1 <= length
moduleReleaseId?string
Length1 <= length
uploadRequestId?string
Length1 <= length
platform?string
Length1 <= length
filename?string
Length1 <= length
sha512?string
Length1 <= length
partEtags?array<>

ETags for multipart upload parts. Required when the upload was multipart. At most S3's 10,000 parts.

Itemsitems <= 10000
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://updater.xeonr.io/xeonr.updater.v1.UpdaterService/ConfirmModuleArtifact" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "artifact": "map[filename:image-filters-0.3.0-universal.zip platform:universal sha512:0f6be7370b701328483f25fc87a311cf2891c3f968ea328c4968ccd1026bf1805ff899aac0174383416f0b9f6d9eec4b7ee8f21accba0ded25703b17fd708a57]"
}

Confirm a distribution file upload POST

Completes the upload and makes it the distribution's file, recording the filename, size and SHA-512 as sent; the service does not re-hash them. Uploading under the filename the entry already has replaces the file in place; a different filename deletes the previous file. Any external `url` is cleared, since the hosted file now wins. Returns the updated distribution. An unknown distribution is `NOT_FOUND`. The caller needs write access to the app's bucket: a signed-in person's token carrying `upl:uploads:manage`, or a team API key. A read-only token (the download page's `client_credentials` token, or one without that scope) gets `PERMISSION_DENIED`. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.

Create an updater-cli key POST

Creates a Xeonr Auth API key owned by the team, carrying `updater:apps:read` and `updater:releases:edit`, and returns it with its secret (`xk_…`), which is shown only this once. With no `bucket_ids` the key reaches every app the team owns, now and later; otherwise it is bound to those apps, each of which must be the team's (`INVALID_ARGUMENT` otherwise, `NOT_FOUND` for an unknown app). `expires_at` is optional and bounded by the updater application's key policy at Xeonr Auth, whose refusals are passed through. The key is created on behalf of the calling admin, whom Xeonr Auth's audit trail names. A key reaches only the publishing RPCs (config, branch, target and module reads, and creating, updating and publishing releases, module releases, their artifacts and distributions). The caller needs the upl admin role in `owner_team`, else `PERMISSION_DENIED`; a blank name is `INVALID_ARGUMENT`. API keys are refused. A deployment without API keys configured answers `UNAVAILABLE`.