Repository navigation
Present a client certificate on auction providers that set mtls - #1667
ChristianPavilonis wants to merge 21 commits into
Conversation
Pin every EdgeZero dependency to v0.0.12-rc-identity.202611.1, which adds outbound client identities (edgezero#524) on top of the portable record providers (edgezero#522). Trusted Server builds and passes its suites against the tag without source changes. The lockfile also re-resolves a few transitive dependencies that EdgeZero's new crates share.
An auction provider with `mtls = true` now presents the `auction-providers` client identity on its OpenRTB requests. The identity is declared in edgezero.toml and bound to the default config and secret stores, and the Fastly app returns the baked manifest from `Hooks::manifest` so EdgeZero builds its identity policy. - `ProviderConfig.mtls` defaults to false and is omitted when false. Plan compilation rejects it with a non-https endpoint, and the Fastly backend bound counts it as its own backend. - Axum, Cloudflare and Spin refuse to start with an mtls provider, and `ts config push` and `diff` refuse such a config for those adapters. - A refused identity is that provider's transport failure, with no retry without the certificate. `outbound_error` now attaches the identity name and reason, so the auction log says why.
…eroy A loopback mock PBS requires a certificate from its own client CA. A prebid-server provider with mtls gets its bid through, the same provider without mtls fails the handshake, and a missing key fails before any connection with the identity name and reason in the log. A plain loopback bidder keeps its bid in every case.
Each region can require a client certificate at its HTTPS listener by setting a CA bundle bucket and key. The listener keeps its ACM server certificate and the CIDR allowlist stays. Optional per-region buckets enable ALB connection logs. The listener always renders `mutual_authentication`, with mode off when the inputs are unset, and the load balancer always renders `connection_logs`, because the AWS provider keeps a removed block's setting. The trust store uses create_before_destroy so Terraform turns the listener off before deleting the store. Adds a bash and openssl development certificate script with a Node test, and documents CA ownership, rollout one region at a time, key-first rotation, CA rotation and rollback in the README, RUNBOOK and DEPLOYMENT_PLAN.
Adds a Provider mTLS section to the auction orchestration guide: the setting, certificate ownership and the offline CA flow, the three Fastly store entries, the Secret Store read budget, key-first rotation, rollback, and troubleshooting by the logged reason. Adds the field to the configuration reference and example config, the new errors to the error reference, a pointer from the Prebid guide, and commented local entries to fastly.toml and the Viceroy template.
…ero d063a8e7 Brings Aram's identity integration chain merge-forward and b181544 (Accept any Fastly EC store link name at startup). EdgeZero moves from tag v0.0.12-rc-identity.202611.1 to rc/identity d063a8e7, which contains that tag (client identities) and the Fastly SDK 0.13.3 upgrade. error-reference.md keeps both the base's wording and this PR's client-identity hint.
Rewriting the auction-providers key and chain in place fails every mtls auction until both writes reach a POP: the chain comes from the Config Store on each request, the key from the Secret Store whenever a backend registers, and the stores propagate independently. Staging measured about three minutes of failures for a key-first rotation. Declare two client identities, auction-providers-blue and auction-providers-green, and select one with [auction] mtls_slot (default blue, omitted from serialized configs). An operator fills the idle slot, waits for it to propagate, then pushes the slot switch; every request reads one complete pair or the other, so no auction pairs a new key with an old chain. - MtlsSlot in the auction plan and AuctionConfig, threaded into compile_client_identity - edgezero.toml declares both identities - Viceroy case: green slot alone bids with mtls_slot = green - Guide, configuration and error references, PBS runbook, example configs and the design spec describe slot rotation
… providers that set mtls Source: feat/1650-auction-provider-mtls at eaa2b3e.
prk-Jr
left a comment
There was a problem hiding this comment.
Summary
Adds per-provider mtls = true so planned auction providers present an EdgeZero client identity (two rotation slots, auction-providers-blue/-green) on Fastly, with Axum/Cloudflare/Spin and ts config push/diff for those adapters failing closed, plus optional ALB verify mode in the PBS AWS example. The runtime design is sound: the chain and hosts live in the Config Store and the key only in the Secret Store, the identity is set only on mtls providers, EdgeZero's per-identity hosts list keeps the certificate off other origins, refusals fail just that provider as transport with no retry without the certificate, the diagnostic attachment carries the identity name and reason but no PEM, and server certificate verification is unchanged. One CI gate is red because of the example config, and one ordering-sensitive doc step lost its list item.
2 of the inline comments below carry a one-click GitHub
suggestion. Use Commit suggestion (or Add suggestion to batch) to apply them.
Blocking
🔧 wrench
mtls_slotcomment block breaks the template-cache harness, so thecargo testjob fails — see inline attrusted-server.example.toml:601
Non-blocking
⛏ nitpick
- Rollout step 4 is merged into the following paragraph — see inline at
docs/guide/auction-orchestration.md:978 - Doc comment still names the single pre-slot
auction-providersidentity — see inline atcrates/trusted-server-adapter-fastly/src/app.rs:1794
Cross-cutting / body-level findings
- 📝 PR description predates the slot rotation commit. The summary, the
plan.rsrow and the rotation-order bullet still describe oneauction-providersidentity with an in-place key-then-chain rewrite. The head commit replaces that with blue/green slots and a guide that says never to rewrite the active slot in place. Worth refreshing so the merge commit and reviewers of #1674 see the current design.
CI Status
- cargo test: FAIL (introduced here; passes on the base commit.
scripts/template-cache-local-test.sh esiexits withexpected one auction timeout replacement target, see the inline comment) - local-provider-image: FAIL (pre-existing; the base commit
afc4f5dfails the same job withinvalid-envelope must not listen, unrelated to this PR) - cargo fmt: PASS
- cargo test (axum native): PASS
- cargo test (cross-adapter parity): PASS
- cargo test (ts CLI, native) (ubuntu-latest): PASS
- cargo test (ts CLI, native) (macos-latest): PASS
- cargo check (cloudflare native + wasm32-unknown-unknown): PASS
- cargo check/build/test (spin native + wasm32-wasip1): PASS
- integration tests: PASS
- integration tests (Fastly EC lifecycle): PASS
- browser integration tests: PASS
- HTML EOF runtime (Fastly): PASS
- health-startup (axum / cloudflare / fastly / spin): PASS
- worker-deadlines (cloudflare / spin): PASS
- PBS Terraform and Compose checks: PASS
- ts dev lint domains (changed lines): PASS
- vitest, format-typescript, format-docs: PASS
- Native provider acceptance script, Fastly response diff script, release scripts, docs-proposal scripts, CI Node pin guard, CLAUDE.md symlink guard: PASS
- prepare integration artifacts, record-provider-image, stock-celld-records, trace runtime and browser acceptance: PASS
| # Client identity slot that providers with `mtls = true` present: "blue" | ||
| # (default) or "green". Rotate by provisioning the idle slot's | ||
| # auction-providers-<slot>.* entries, waiting for them to propagate, then | ||
| # switching this. Binaries older than this setting reject "green". | ||
| # mtls_slot = "blue" | ||
| timeout_ms = 2000 |
There was a problem hiding this comment.
🔧 wrench: This comment block sits between sanitize_creatives = false and timeout_ms = 2000, and the cargo test CI job runs scripts/template-cache-local-test.sh, which rewrites the example config with replace_once(s, 'sanitize_creatives = false\ntimeout_ms = 2000', ...). The literal no longer occurs, so the harness exits before starting the server:
==> Generating stub config (mode: esi)
expected one auction timeout replacement target
That is the cargo test failure on this head; the same job passes on the base commit. I reproduced it by running the harness's config generator against this file (exit 1) and against the change below (generates the config).
Moving the comment below timeout_ms keeps the docs and restores the anchor:
| # Client identity slot that providers with `mtls = true` present: "blue" | |
| # (default) or "green". Rotate by provisioning the idle slot's | |
| # auction-providers-<slot>.* entries, waiting for them to propagate, then | |
| # switching this. Binaries older than this setting reject "green". | |
| # mtls_slot = "blue" | |
| timeout_ms = 2000 | |
| timeout_ms = 2000 | |
| # Client identity slot that providers with `mtls = true` present: "blue" | |
| # (default) or "green". Rotate by provisioning the idle slot's | |
| # auction-providers-<slot>.* entries, waiting for them to propagate, then | |
| # switching this. Binaries older than this setting reject "green". | |
| # mtls_slot = "blue" |
| 3. Push the config with `mtls = true`. With `reusable-sandbox`, a running | ||
| sandbox keeps its old settings until it is recycled, so allow for that | ||
| before the next step. | ||
|
|
||
| `mtls_slot = "green"` follows the same rule: versions without the field reject | ||
| it, so deploy a version that supports it before the first push that sets it. | ||
| The default `blue` is omitted from the stored config. 4. Turn on client verification at the provider, and confirm auctions succeed. | ||
| The PBS AWS example does this one region at a time. |
There was a problem hiding this comment.
⛏ nitpick: The mtls_slot note was placed between list items 3 and 4, so Prettier folded step 4 into the paragraph and it renders as ...omitted from the stored config. 4. Turn on client verification.... This list exists because "the order matters", so step 4 should stay a numbered step. Putting the note after the list fixes it (Prettier check passes on the result):
| 3. Push the config with `mtls = true`. With `reusable-sandbox`, a running | |
| sandbox keeps its old settings until it is recycled, so allow for that | |
| before the next step. | |
| `mtls_slot = "green"` follows the same rule: versions without the field reject | |
| it, so deploy a version that supports it before the first push that sets it. | |
| The default `blue` is omitted from the stored config. 4. Turn on client verification at the provider, and confirm auctions succeed. | |
| The PBS AWS example does this one region at a time. | |
| 3. Push the config with `mtls = true`. With `reusable-sandbox`, a running | |
| sandbox keeps its old settings until it is recycled, so allow for that | |
| before the next step. | |
| 4. Turn on client verification at the provider, and confirm auctions succeed. | |
| The PBS AWS example does this one region at a time. | |
| `mtls_slot = "green"` follows the same rule: versions without the field reject | |
| it, so deploy a version that supports it before the first push that sets it. | |
| The default `blue` is omitted from the stored config. |
| /// Returns the repository's `edgezero.toml`, baked at build time. | ||
| /// | ||
| /// [`App::from_router`] builds the outbound client-identity policy from this hook, so | ||
| /// auction providers with `mtls = true` can present the `auction-providers` identity. The |
There was a problem hiding this comment.
⛏ nitpick: Since the slot commit there is no auction-providers identity, only auction-providers-blue and auction-providers-green.
| /// auction providers with `mtls = true` can present the `auction-providers` identity. The | |
| /// auction providers with `mtls = true` can present the active slot's identity. The |
PR #1540's new head brings the identity chain's commits since #1667 last merged it at afc4f5d, including the EdgeZero repins up to rc/identity ef5cbf30, which renames Fastly backends to ez_b31v2_* and moves the yanked pin-project-lite, chacha20 and spin, main's #1501, #1525's plain HTTP opt-in for auction providers, and this round's owner commits on #1535, #1613, #1616, #1617, #1625, #1627, #1635, #1637 and #1639. Cargo.toml and crates/trusted-server-adapter-axum/Cargo.toml: #1667 pinned EdgeZero at d063a8e7, and the chain now pins rc/identity ef5cbf30, which keeps the client certificate API #1667 uses. The files merge cleanly to the chain's pin, so #1667 no longer carries its own. crates/trusted-server-core/src/auction/mod.rs: #1501 from main, which the chain carries, moved the APS provider test literal into the shared aps_provider_map helper, and #1667 added `mtls: false` to that literal. The resolution calls the helper and adds `mtls: false` to it. docs/guide/auction-orchestration.md: #1525 reworded the endpoint and allow_insecure_http rows of the provider field table, and #1667 added the mtls row below them. The resolution keeps #1525's rows followed by #1667's mtls row. docs/guide/configuration.md: #1525 added the allow_insecure_http row to the provider field table and the plain HTTP warning after the loopback exception, and #1667 added the mtls row and the note that an mtls provider needs an https endpoint. The resolution keeps #1525's table with #1667's mtls row last, and #1525's warning followed by #1667's note. docs/guide/error-reference.md: #1616's owner commit replaced "TLS is always verified" with the adapter and platform TLS policy wording, and #1667 added the outbound client identity bullet after it. The resolution keeps #1616's wording followed by #1667's bullet. crates/trusted-server-core/src/auction/plan.rs (semantic fix): #1525's 23e4bdd removed the local is_false helper from plan.rs and serializes allow_insecure_http through crate::settings::is_false, and #1667's mtls field still named the local helper. The mtls field now uses crate::settings::is_false too. crates/trusted-server-adapter-axum/tests/native_ec.rs (semantic fix): #1536's 9d41f0f added an APS ProviderConfig literal to the Axum native EC tests, and #1667 added the required mtls field to ProviderConfig. The literal now sets `mtls: false`. Cargo.lock matches #1540's new head: next to #1667's, it changes only the EdgeZero package sources (d063a8e7 to ef5cbf30) and the yanked pin-project-lite, chacha20 and spin; the codegen crate's nested Cargo.lock is unchanged.
PR #1646's new head brings the identity chain above #1540 that #1667 did not carry yet: #1566's move of the identity stack onto the native EC stack, #1624's SharedID creation and write-back from the EC record, #1641's lazily opened EC record store in core, #1642's verified identity lookups and saved /auction body EIDs, and #1646's Axum identity through the shared application. crates/trusted-server-adapter-axum/src/app.rs: #1667 added mtls_auction_provider_fails_startup before Axum's enabled_identity_provider_fails_startup, and #1646 renamed that test to unknown_identity_provider_fails_startup because Axum now runs identity providers. The resolution keeps #1667's mTLS startup test followed by #1646's renamed test. crates/trusted-server-cli/src/checked_app_config.rs: #1667 extended the adapter doc to say that the Fastly-only split also holds for auction providers that set mtls, and #1646 rewrote it to say that Fastly and Axum run the shared coordinators. The resolution says that Fastly and Axum run identity providers and that only Fastly accepts mtls auction providers. The semantic fix below then replaces that function. Semantic break in crates/trusted-server-cli/src/checked_app_config.rs and run.rs: #1646 moved the Axum target of ts config push and diff from ProviderlessAppConfig to CheckedAppConfig by making adapter_runs_identity_providers return true for axum, and #1667 placed its reject_auction_mtls check only in ProviderlessAppConfig. The merge compiles, but the CLI then accepts an mtls auction provider for Axum that the Axum adapter refuses at startup. The fix belongs in this link because it is where the two changes first meet. adapter_runs_identity_providers becomes adapter_support, which returns ProvidersAndMtls for fastly, ProvidersOnly for axum and Neither for every other adapter, and push and diff match on it. A new NoMtlsAppConfig adds only the reject_auction_mtls check to CheckedAppConfig, and ProviderlessAppConfig now wraps NoMtlsAppConfig and adds reject_enabled_providers, so the mTLS rejection exists once. validate stays adapter-agnostic on CheckedAppConfig. The tests cover the adapter mapping, an Axum target that rejects an mtls auction provider under auction_providers and accepts an enabled identity provider, a Fastly target that accepts the mtls provider, and Cloudflare and Spin targets that reject both. The CLI paragraph of the auction provider mTLS spec now names NoMtlsAppConfig for Axum. Cargo.lock matches #1646's new head: next to #1667's, it adds only #1646's trusted-server-identity-providers dependency of the Axum adapter; the codegen crate's nested Cargo.lock is unchanged.
PR #1675's new head brings #1675's switches that turn off POST /auction while the auction is disabled and the first-party creative endpoints while creative rewriting is off, together with the identity chain between #1646 and #1675 that #1667 did not carry yet: #1636's Axum after-response drain on SIGTERM, #1626's provider opt-outs and legacy EID expiry on Fastly and Axum, #1656's configurable Edge Cookie browser gate, #1661's refusal of EC creation when a trusted JA4 contradicts the User-Agent, and #1662's Fastly EC route acceptance and capped mirrored expiry. docs/guide/configuration.md: #1675 reworded the enabled row of the [auction] table to say that it also turns on POST /auction, and #1667 added the mtls_slot row, which widened the table. The resolution keeps #1675's enabled text and #1667's mtls_slot row, with the table reformatted by Prettier. Semantic break in crates/trusted-server-core/src/integrations/prebid.rs: #1675's owner commit d141923 added a test plan with no browser routes, whose ProviderConfig and AuctionPlanConfig literals predate #1667's 0985d67, which added the mtls provider field, and eaa2b3e, which added the mtls_slot plan field. The merge applies cleanly but the core tests no longer compile. The fix belongs in this link because it is where the two changes first meet. The literal gains mtls: false and mtls_slot: Default::default(), as #1667 wrote in the neighboring prebid.rs literals. Cargo.lock is unchanged.
The move changes no test: assembled_app_accepts_mtls_and_declares_both_auction_client_identity_slots now sits after the module's other assembly tests instead of just above app_state_for_settings and empty_request. It only stops the URL-host linter's diff from pairing main's unchanged empty_request line as added in the identity chain's whole-stack diff.
The plan now matches the code: Axum's push and diff use NoMtlsAppConfig, and ProviderlessAppConfig, which builds on it, stays for Cloudflare and Spin.
PR #1503 at 1d51b78: Add ts ec show and ts ec eids admin diagnostic commands PR #1653 at f217902: Clarify and verify the Axum local config handoff PR #1654 at e4e68bb: Verify pending record writes drain within shutdown grace PR #1655 at 7d0cdb2: Configure EC lifetime and renew it on eligible visits (DEC-13) PR #1659 at bd707f2: Verify geo consent paths on Axum and Fastly PR #1660 at 87c52cd: Retry an after-response write that loses its CAS PR #1666 at b1d7062: Verify identity gates and provider deadlines on Axum PR #1710 at 3d33359: Apply pull-sync consent checks to identify PR #1557 at 3982143: Carry Sourcepoint TCF consent to Trusted Server PR #1667 at f9ac6bb: Present a client certificate on auction providers that set mtls PR #1607 at b3a0b09: Send the resolved client IP to the publisher origin PR #1709 at 635f06a: Keep the EC out of bid request IDs and gate user.id on EID consent PR #1713 at e5f4d05: Apply consent rules to first-party click redirects PR #1622 at dd2ee39: Report CMP consent to the EC route and merge its answer into Prebid
|
Round 15 identity realignment:
The base is now Each merge message says what it carries and how any conflict was resolved. |
The template cache harness (scripts/template-cache-local-test.sh) raises the auction timeout by replacing "sanitize_creatives = false" followed by "timeout_ms = 2000". The commented mtls_slot block sat between those two lines, so the harness stopped with "expected one auction timeout replacement target" and the cargo test job failed. Move the block below timeout_ms. The parsed config is unchanged.
|
Round 15 follow-up: the
|
|
Cascade of #1533's Axum startup-test port fix ( |
…tegration chain
|
Merged #1627's runtime KV removal ( At the maintainer's request, that commit removes the generic runtime KV store Only that commit was merged, not the base branch's new head. Conflicts were resolved in Checks on this head: no reference to the removed store remains and |
PR #1503 at 6a8797e: Add ts ec show and ts ec eids admin diagnostic commands PR #1557 at a435778: Carry Sourcepoint TCF consent to Trusted Server PR #1607 at 07086f2: Send the resolved client IP to the publisher origin PR #1627 at 5b7fc3d: Wire declared stores and document unsupported Axum KV PR #1636 at d838931: Drain Axum after-response identity tasks on SIGTERM PR #1653 at 5b86d9b: Clarify and verify the Axum local config handoff PR #1654 at be495b3: Verify pending record writes drain within shutdown grace PR #1655 at 888c5f1: Configure EC lifetime and renew it on eligible visits (DEC-13) PR #1659 at 7b1d4a7: Verify geo consent paths on Axum and Fastly PR #1660 at 64a1baa: Retry an after-response write that loses its CAS PR #1667 at 1359722: Present a client certificate on auction providers that set mtls PR #1709 at bc43a3e: Keep the EC out of bid request IDs and gate user.id on EID consent PR #1710 at dc728a1: Apply pull-sync consent checks to identify PR #1713 at ffa7597: Apply consent rules to first-party click redirects PR #1722 at 070e2b0: Use applicable GPP sections from the CMP instead of header sections PR #1666 at 4720b0b (Verify identity gates and provider deadlines on Axum) arrives through #1659, and PR #1622 at c878e6e (Report CMP consent to the EC route and merge its answer into Prebid) arrives through #1722. Every other chain PR arrives through the tips above. The tree is the conflict-free union of these tips and carries no resolution of its own.
|
Round 17 identity realignment:
Each merge message says what it carries and how any conflict was resolved. |
…ntegration chain
|
Merged #1614's Trusted Server owns the This merge takes #1675's new head ( Checks on this head: no conflict markers; |
Summary
mtls = truepresents a TLS client certificate, theauction-providersidentity, on its OpenRTB requests. On Fastly, EdgeZero takes the chain and the allowed hosts from the Config Store and the key from the Secret Store. Axum, Cloudflare and Spin refuse such a config at startup and ints config push/diff.v0.0.12-rc-identity.202611.1, which adds outbound client identities (Add outbound mTLS client identities, implemented on Fastly edgezero#524).Stacked on #1540.
Changes
Cargo.toml,Cargo.lock,crates/trusted-server-adapter-axum/Cargo.tomlv0.0.12-rc-identity.202611.1. No source changes needed.edgezero.tomlauction-providersclient identity and listsoutbound-client-identityas optionalcrates/trusted-server-core/build.rs,src/edgezero_manifest.rsedgezero.tomlas JSON, as EdgeZero'sapp!does, for adapters that implementHooksby handcrates/trusted-server-adapter-fastly/src/app.rsHooks::manifest()returns the baked manifest, so EdgeZero builds the identity policy. Without it every identity request fails as undeclared.crates/trusted-server-core/src/auction/plan.rsProviderConfig.mtls(default false, omitted when false);ProviderPlan.client_identity; https required;mtlsjoins the Fastly backend-bound tuple;reject_auction_mtlscrates/trusted-server-core/src/auction/provider.rsOutboundRequestcrates/trusted-server-core/src/outbound.rsoutbound_errorattaches the identity name and reason, since theEdgeErroritself is attached opaquelycrates/trusted-server-adapter-{axum,cloudflare,spin}/src/app.rsmtlscrates/trusted-server-cli/src/checked_app_config.rsts config push/difffor non-Fastly adapters rejectmtlscrates/trusted-server-core/src/test_support/scripted_client.rs,test_support.rsmtlsprovider fixturecrates/trusted-server-integration-tests/deploy/pbs-example/,.github/workflows/pbs-example.ymldocs/guide/*,trusted-server.example.toml,fastly.toml.claude/skills/planning-prebid-aws/references/terraform.mddocs/superpowers/{specs,plans}/2026-11-24-auction-provider-mtls*Things worth a reviewer's attention:
transportwith no bids, and the warning names the identity and the reason, such asprivate key is missing. A key that does not match the certificate fails later:launch_failedif Fastly rejects the backend registration (if every routed provider fails to launch, direct/auctionreturns 502), ortransportif the handshake fails. Which of the two production Fastly does is for the staging run. In every case the request is never retried without the certificate.ProviderConfigrejects unknown fields and Fastly loads the config before the app, so a config withmtlsbreaks every request an older binary serves. Deploy this version first, then pushmtls; roll back in reverse. The guide, spec and RUNBOOK say so.X-Amzn-Mtls-Clientcert-*headers, and connection logs record the subject, serial and source IP. The guide asks for a service subject without personal information.mutual_authentication(offwhen unset), and the load balancer always rendersconnection_logs, because provider 6.64.0 keeps a removed block's setting. The trust store usescreate_before_destroy, so the listener is switched off before the trust store is deleted.Closes
Closes #1650
GitHub closes issues only for PRs into the default branch, so #1650 will be closed by hand when this reaches
main. The staging run against a real ALB happens after merge and is recorded on #1650.Spec
Spec:
docs/superpowers/specs/2026-11-24-auction-provider-mtls-design.md, with its review log. Plan:docs/superpowers/plans/2026-11-24-auction-provider-mtls.md.Test plan
cargo test-fastly(4,180 passed) andcargo test-fastly-reuseon stock Viceroy 0.21.0cargo test-axum,cargo test-cloudflare,cargo test-spin,cargo check-cloudflare,cargo check-spincargo test -p trusted-server-core --test template_build_digest,cargo test -p trusted-server-cli(host target)cargo clippy-fastly,clippy-axum,clippy-cloudflare,clippy-cloudflare-wasm,clippy-spin-native,clippy-spin-wasm,clippy-cli, and clippy for the integration-tests cratecargo fmt --all -- --checknpm run format,npm run lint,npm run build, and Prettier for Markdown outsidedocs/ts dev lint domains --changed-vsthe stack basecargo build --package trusted-server-adapter-fastly --release --target wasm32-wasip1./scripts/integration-tests.sh: 81 passed in the first run. The 15 Cloudflare cases failed only because the Workers bundle was not built and, withoutCI,wranglerused the localwrangler.toml. Afterbuild.shand withCI=1, all 20 Cloudflare cases andtest_all_combinationspassed.terraform fmt, readonly init, validate and both mocked suites (root 8, regional 11, including verify on to off), both Node tests, lock files unchangedChecklist
unwrap()in production code — useexpect("should ...")logmacros (notprintln!)