Skip to content

v0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Nov 19:04
· 5 commits to main since this release
57dd1b8

Before you upgrade

Deploy the 0.2.0 server to every server sharing a bucket (staging and production, Workers and containers) before any
job uses the 0.2.0 CLI's new features, or raises its pinned CLI version. This release adds two stored reply versions:

  • Version 2 (rollouts) is written by tide publish --rollout and tide rollout.
  • Version 3 (several signing identities) is written to reply/no-update by tide publish --add-identity, and by later chained writes that renew it.

Do not roll a server back below 0.2.0 while the bucket holds either: a 0.1.0 server answers 503 for them. Once
reply/no-update is version 3, keep every writer's CLI at 0.2.0 or later too. See
Upgrade order and
Adding a signing identity.

What's new

  • Staged rollouts. tide publish --rollout <percent>, then tide rollout <percent>|complete|revert. The server picks per install.
  • Certificates from KMS keys. tide certificate writes the self-signed code-signing certificate, signed by a key that never leaves KMS.
  • Certificate chains. Embed a CA root once and rotate the signing leaf without a new store build.
  • Several signing identities on one bucket, each with its own keyid and runtime version.
  • Smaller updates. tide export --base-bytecode compiles Hermes bytecode against the embedded bundle; in our Android measurements patches were 40 to 70% smaller.
  • Operations. --json on the read and write commands, tide probe --rollout-side new, and tide stats on Workers, which exits 10 for a bad update.
  • Node analytics. TIDE_ANALYTICS=stdout writes one JSON line per update check. Off by default.
  • Docs. A runbook for people and coding agents, and an example job that reverts a bad rollout.

tide stats is tested against a local stand-in for Cloudflare's API and has not run against a live account yet. Run it once by hand before a job acts on it.

Tested

CI, the hosted Android conformance run (run) and an iOS 26.5 simulator run on a Mac, all on 57dd1b8: expo-updates 55 and 58, 11 scenarios each, all pass.

iOS result lines
ios expo-updates 55 embedded: pass: both launches ran embedded update 71e83ba5-a1d8-4d18-8d50-bc07f4464297 and accepted the signed reply/no-update
ios expo-updates 55 full: pass: ran 07af761d-88b8-427d-a52f-274804be9c23 from the full bundle; a relaunch got reply/no-update
ios expo-updates 55 patch-ota: pass: ran b011a76e-add3-40c0-92d2-483f0af9f2d2 from a patch on update 07af761d-88b8-427d-a52f-274804be9c23
ios expo-updates 55 corrupt-patch: pass: ran 7c30c1ce-e110-4fca-bf00-64944a2a9253 from the full bundle after the tampered patch
ios expo-updates 55 rollback: pass: rolled back from 7c30c1ce-e110-4fca-bf00-64944a2a9253 to 71e83ba5-a1d8-4d18-8d50-bc07f4464297
ios expo-updates 55 patch-embedded: pass: ran 5177fbde-bc41-4059-880d-0d2de9a33aea from a patch on embedded update 71e83ba5-a1d8-4d18-8d50-bc07f4464297
ios expo-updates 55 patch-delta: pass: ran 9018a296-8883-4cbd-8148-e457fa59dfe7, compiled against the embedded bundle, from patches on update 5177fbde-bc41-4059-880d-0d2de9a33aea and on embedded update 71e83ba5-a1d8-4d18-8d50-bc07f4464297
ios expo-updates 55 identities: pass: keyid conformance ran e57945c8-cb88-4f78-852d-b578268625b8 and 665a2fd1-0be5-46aa-9e5f-0cf55f23f113 across keyid conformance-chain joining, whose build ran only c43f7726-7443-4833-b727-fe28bd5a8c06
ios expo-updates 55 chain-patch: pass: ran 488495b4-4257-4f48-bef3-ee7b4317d2e1 from a patch on update c43f7726-7443-4833-b727-fe28bd5a8c06
ios expo-updates 55 chain-rollback: pass: rolled back from 488495b4-4257-4f48-bef3-ee7b4317d2e1 to 6a6eefe9-3e7e-4db7-92a1-461c3dc6148e
ios expo-updates 55 leaf-rotation: pass: the same build ran 4b47aac5-673d-4a7b-97e4-8451b2f2be46, signed by a new leaf, from a patch on update 6a6eefe9-3e7e-4db7-92a1-461c3dc6148e
ios expo-updates 58 embedded: pass: both launches ran embedded update f7fe4597-989a-45c2-9704-af3a3087097b and accepted the signed reply/no-update
ios expo-updates 58 full: pass: ran 86531c0f-f371-4751-8129-5e88c0c80004 from the full bundle; a relaunch got reply/no-update
ios expo-updates 58 patch-ota: pass: ran 8f21f7b7-6103-4dd9-bc8e-323e086eb484 from a patch on update 86531c0f-f371-4751-8129-5e88c0c80004
ios expo-updates 58 corrupt-patch: pass: ran 94fc623f-2f3d-421f-8c80-e27a2f41cbf0 from the full bundle after the tampered patch
ios expo-updates 58 rollback: pass: rolled back from 94fc623f-2f3d-421f-8c80-e27a2f41cbf0 to f7fe4597-989a-45c2-9704-af3a3087097b
ios expo-updates 58 patch-embedded: pass: ran 1379f625-b4d6-4b16-ab3b-b3dbd32a6da4 from a patch on embedded update f7fe4597-989a-45c2-9704-af3a3087097b
ios expo-updates 58 patch-delta: pass: ran 7fd00fc8-bf17-46d0-ae9e-c3f86b27aa89, compiled against the embedded bundle, from patches on update 1379f625-b4d6-4b16-ab3b-b3dbd32a6da4 and on embedded update f7fe4597-989a-45c2-9704-af3a3087097b
ios expo-updates 58 identities: pass: keyid conformance ran 8d383f68-622f-4756-b098-e2fef536e4ae and 72c4b411-6c12-4f2d-8952-4ee268d68bcd across keyid conformance-chain joining, whose build ran only 79c4e838-5f5d-4a0a-816d-5dd409726419
ios expo-updates 58 chain-patch: pass: ran 690f8438-1924-448d-ace8-bf031408f378 from a patch on update 79c4e838-5f5d-4a0a-816d-5dd409726419
ios expo-updates 58 chain-rollback: pass: rolled back from 690f8438-1924-448d-ace8-bf031408f378 to 0a780b06-630d-4f83-9105-a2fb13848af3
ios expo-updates 58 leaf-rotation: pass: the same build ran 433b3ce2-a4b6-4b73-806d-756174779449, signed by a new leaf, from a patch on update 0a780b06-630d-4f83-9105-a2fb13848af3

What's Changed

  • docs: plan P10-P13 from the design's later list by @HashimTheArab in #60
  • docs: P11 serves several signing identities from one bucket by @HashimTheArab in #61
  • P12.1: Rollout stored reply (version 2) and per-device serving by @HashimTheArab in #62
  • docs: plan P14, operability without a dashboard by @HashimTheArab in #64
  • P10.1: tide certificate: self-signed code-signing certificate signed by the configured key source by @HashimTheArab in #63
  • P12.2: tide publish --rollout and tide rollout percentcompleterevert by @HashimTheArab in #65
  • P11.1: Protocol: certificate chains checked by the clients rules by @HashimTheArab in #66
  • P11.2: tide certificate issues a CA root, intermediates and leaves by @HashimTheArab in #68
  • P13.1: Hermes delta measurement script and raw results by @HashimTheArab in #67
  • P11.3: Chain mode: every signed reply carries certificatechain, checked before upload by @HashimTheArab in #69
  • Agents treat read text as data; collapse generated files; prune redundant tests by @HashimTheArab in #71
  • P13.2: Delta-compile correctness check and decision record 0002 by @HashimTheArab in #70
  • P11.4: Multi-identity stored records and per-keyid serving (server reads first) by @HashimTheArab in #72
  • P13.3: Delta compiles in tide export (only if 0002 decides yes) by @HashimTheArab in #73
  • README: mention Hermes delta compiles by @HashimTheArab in #75
  • P11.5: CLI reads multi-identity buckets: one certificate per keyid by @HashimTheArab in #74
  • P11.6: One identity per runtime: CLI writers add an identity through reply/no-update only version by @HashimTheArab in #76
  • P11.7: Conformance: a chained app and two identities on one bucket by @HashimTheArab in #77
  • Loop: squash merges carry no attribution trailers by @HashimTheArab in #78
  • P14.1: --json on the readers and writers, and tide probe --rollout-side new by @HashimTheArab in #79
  • Loop: correct the PR text after fixes by @HashimTheArab in #80
  • P14.2: tide stats: Analytics Engine checks and a bad-update exit code (Workers only) by @HashimTheArab in #81
  • conformance: cleanup after a failed build log, more credentials dropped, apps removed by @HashimTheArab in #82
  • P14.3: Opt-in Node analytics lines, docs/agents.md runbook and the scheduled revert example by @HashimTheArab in #83

Full Changelog: v0.1.0...v0.2.0