Commit d273cb4
feat(record-release): forward the Tauri updater signature as asset metadata (#105)
Part of the multipass-desktop in-app auto-update feature. Design:
ductone/multipass#553; app: ductone/multipass#554.
`record-release` reads `manifest.json` and POSTs a RecordRelease request
to the registry ingest endpoint; this forwards the updater bundle's
minisign signature so it reaches the registry as per-asset metadata.
## Changes
- `proto/artifacts/v1/manifest.proto`: `string updater_signature = 10;`
on `Asset` (JSON `updaterSignature`). Regenerated bindings.
- `cmd/record-release/main.go`: map `updaterSignature` → the request's
`assets[].metadata["updater.signature"]` (only for the asset that
carries it).
- Tests added. Also confirmed `cmd/merge-manifests` round-trips assets
through the proto with `DiscardUnknown`, so the proto field is what
preserves the signature through the merge → record-release chain (no
change needed there).
## Codegen
`buf generate proto` with the plugin version referenced in the proto
header (protocolbuffers/go v1.36.10); reverted an unrelated `buf format`
reordering to keep the diff minimal.
## Verified
`go build`/`vet`/`test ./...` all pass.
The registry ingest maps JSON `assets[].metadata` →
`registry.v1.Asset.metadata` server-side (the paired `metadata` field in
ductone/connector-registry-api). Pairs with generate-dist-manifest
(multipass-workflows) and the mirror allowlist.
---------
Co-authored-by: Giancarlo Silvestrin <giancarlo.silvestrin@conductorone.com>
Co-authored-by: c1-squire-dev[bot] <c1-squire-dev[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent b01c222 commit d273cb4
4 files changed
Lines changed: 148 additions & 33 deletions
File tree
- cmd/record-release
- pb/artifacts/v1
- proto/artifacts/v1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
54 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
55 | 65 | | |
56 | 66 | | |
57 | 67 | | |
| |||
316 | 326 | | |
317 | 327 | | |
318 | 328 | | |
319 | | - | |
| 329 | + | |
320 | 330 | | |
321 | 331 | | |
322 | 332 | | |
| |||
328 | 338 | | |
329 | 339 | | |
330 | 340 | | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
331 | 348 | | |
332 | 349 | | |
333 | 350 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
46 | 95 | | |
47 | 96 | | |
48 | 97 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
90 | 98 | | |
91 | 99 | | |
92 | 100 | | |
| |||
0 commit comments