Skip to content

Present a client certificate on auction providers that set mtls - #1667

Open
ChristianPavilonis wants to merge 21 commits into
prfection/1669-creative-endpoint-gating-planfrom
feat/1650-auction-provider-mtls
Open

ChristianPavilonis wants to merge 21 commits into
prfection/1669-creative-endpoint-gating-planfrom
feat/1650-auction-provider-mtls

Conversation

@ChristianPavilonis

@ChristianPavilonis ChristianPavilonis commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • An auction provider with mtls = true presents a TLS client certificate, the auction-providers identity, 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 in ts config push/diff.
  • The self-hosted PBS AWS example can now require that certificate at its ALBs, per region and off by default, alongside the existing CIDR allowlist. Includes a development certificate script.
  • Moves EdgeZero to 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

File Change
Cargo.toml, Cargo.lock, crates/trusted-server-adapter-axum/Cargo.toml EdgeZero pinned to v0.0.12-rc-identity.202611.1. No source changes needed.
edgezero.toml Declares the auction-providers client identity and lists outbound-client-identity as optional
crates/trusted-server-core/build.rs, src/edgezero_manifest.rs Bakes edgezero.toml as JSON, as EdgeZero's app! does, for adapters that implement Hooks by hand
crates/trusted-server-adapter-fastly/src/app.rs Hooks::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.rs ProviderConfig.mtls (default false, omitted when false); ProviderPlan.client_identity; https required; mtls joins the Fastly backend-bound tuple; reject_auction_mtls
crates/trusted-server-core/src/auction/provider.rs Sets the identity on the provider's OutboundRequest
crates/trusted-server-core/src/outbound.rs outbound_error attaches the identity name and reason, since the EdgeError itself is attached opaquely
crates/trusted-server-adapter-{axum,cloudflare,spin}/src/app.rs Refuse to start when any provider sets mtls
crates/trusted-server-cli/src/checked_app_config.rs ts config push/diff for non-Fastly adapters reject mtls
crates/trusted-server-core/src/test_support/scripted_client.rs, test_support.rs Records the request's identity; client with the manifest's identities; mtls provider fixture
crates/trusted-server-integration-tests/ Viceroy cases against a mock PBS that requires client certificates
deploy/pbs-example/, .github/workflows/pbs-example.yml Optional trust store and verify mode, connection logs, tests, dev certificate script, README/RUNBOOK/DEPLOYMENT_PLAN
docs/guide/*, trusted-server.example.toml, fastly.toml Provider mTLS guide section, configuration and error references, examples
.claude/skills/planning-prebid-aws/references/terraform.md Offers the mTLS option
docs/superpowers/{specs,plans}/2026-11-24-auction-provider-mtls* Spec and plan

Things worth a reviewer's attention:

  • Failure handling. When EdgeZero refuses the identity (an entry missing or invalid, or the origin not in the hosts list), only that provider fails, as transport with no bids, and the warning names the identity and the reason, such as private key is missing. A key that does not match the certificate fails later: launch_failed if Fastly rejects the backend registration (if every routed provider fails to launch, direct /auction returns 502), or transport if 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.
  • Rollout order. ProviderConfig rejects unknown fields and Fastly loads the config before the app, so a config with mtls breaks every request an older binary serves. Deploy this version first, then push mtls; roll back in reverse. The guide, spec and RUNBOOK say so.
  • Rotation order matters. Write the key first, then the chain. EdgeZero names a backend after the chain, so writing the chain first can leave a sandbox with a mismatched backend until it is recycled. The guide and RUNBOOK say so.
  • Privacy. The certificate identifies the deployment, not a user, and request bodies, consent and forwarded headers do not change. An ALB in verify mode passes certificate details to PBS in 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.
  • Secret Store budget. Each cold backend registration reads the key once. With one PBS endpoint that is one read per auction. It is documented and will be measured in staging; there is no startup cap.
  • Terraform. The listener always renders mutual_authentication (off when unset), and the load balancer always renders connection_logs, because provider 6.64.0 keeps a removed block's setting. The trust store uses create_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) and cargo test-fastly-reuse on stock Viceroy 0.21.0
  • cargo test-axum, cargo test-cloudflare, cargo test-spin, cargo check-cloudflare, cargo check-spin
  • cargo 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 crate
  • cargo fmt --all -- --check
  • Docs: npm run format, npm run lint, npm run build, and Prettier for Markdown outside docs/
  • ts dev lint domains --changed-vs the stack base
  • WASM build: cargo build --package trusted-server-adapter-fastly --release --target wasm32-wasip1
  • Viceroy cases on stock Viceroy 0.21.0: bids with the certificate; handshake rejected without it; missing key fails before connecting and logs the reason once; a plain bidder keeps its bid each time
  • ./scripts/integration-tests.sh: 81 passed in the first run. The 15 Cloudflare cases failed only because the Workers bundle was not built and, without CI, wrangler used the local wrangler.toml. After build.sh and with CI=1, all 20 Cloudflare cases and test_all_combinations passed.
  • PBS example: terraform fmt, readonly init, validate and both mocked suites (root 8, regional 11, including verify on to off), both Node tests, lock files unchanged
  • After merge: staging run against a real PBS ALB in verify mode, recorded on Present a client certificate on auction provider OpenRTB requests (mTLS) #1650

Checklist

  • Feature PRs: spec linked above, ending in a review log of two or more agent review rounds
  • Changes follow AGENTS.md conventions
  • No unwrap() in production code — use expect("should ...")
  • Uses log macros (not println!)
  • New code has tests
  • No secrets or credentials committed (test certificates are generated at runtime; the dev script writes to an ignored directory)

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.
@ChristianPavilonis ChristianPavilonis self-assigned this Nov 24, 2026
…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
ChristianPavilonis added a commit that referenced this pull request Nov 25, 2026
… providers that set mtls

Source: feat/1650-auction-provider-mtls at eaa2b3e.

@prk-Jr prk-Jr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_slot comment block breaks the template-cache harness, so the cargo test job fails — see inline at trusted-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-providers identity — see inline at crates/trusted-server-adapter-fastly/src/app.rs:1794

Cross-cutting / body-level findings

  • 📝 PR description predates the slot rotation commit. The summary, the plan.rs row and the rotation-order bullet still describe one auction-providers identity 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 esi exits with expected one auction timeout replacement target, see the inline comment)
  • local-provider-image: FAIL (pre-existing; the base commit afc4f5d fails the same job with invalid-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

Comment thread trusted-server.example.toml Outdated
Comment on lines 601 to 606
# 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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 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:

Suggested change
# 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"

Comment thread docs/guide/auction-orchestration.md Outdated
Comment on lines +972 to +979
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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛏ 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):

Suggested change
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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛏ nitpick: Since the slot commit there is no auction-providers identity, only auction-providers-blue and auction-providers-green.

Suggested change
/// 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

ChristianPavilonis and others added 6 commits December 1, 2026 22:49
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.
aram356 added a commit that referenced this pull request Dec 3, 2026
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
@aram356
aram356 changed the base branch from baseline/aws-examples-20261110 to prfection/1669-creative-endpoint-gating-plan December 3, 2026 11:35
@aram356

aram356 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Round 15 identity realignment: rc/identity is now at 391a08578, and EdgeZero is pinned to its rc/identity at ef5cbf308. This branch fast-forwarded from 3db639fef to f9ac6bba6:

The base is now prfection/1669-creative-endpoint-gating-plan (#1675), so this PR merges into the identity chain without conflicts. Its own EdgeZero pin gives way to the chain's ef5cbf308, which carries IABTechLab/edgezero#524 with the client identity API unchanged. Since #1646, Axum's CLI path uses CheckedAppConfig, which skipped this PR's mTLS rejection, so ts config push --adapter axum would have accepted an mTLS auction provider that Axum refuses at startup. 798f5879c adds AdapterSupport and NoMtlsAppConfig, which ProviderlessAppConfig now wraps, and a test that fails without the fix. The owner should check that shape. Later commits join the configuration.md auction table rows, add the mtls fields to #1675's test literals, move the client identity assembly test away from the request helpers so the URL-host linter stops flagging main's empty_request line in the whole-chain diff, and name NoMtlsAppConfig in the plan.

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.
aram356 added a commit that referenced this pull request Dec 3, 2026
@aram356

aram356 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Round 15 follow-up: the cargo test job failed on this PR and on rc/identity in the template cache harness (scripts/template-cache-local-test.sh). The harness raises the auction timeout by replacing sanitize_creatives = false followed by timeout_ms = 2000 in trusted-server.example.toml. This PR's commented mtls_slot block sat between those two lines, so the harness stopped with expected one auction timeout replacement target. The block was already there before the round.

cb790530b moves the block below timeout_ms = 2000. Only comment lines move, so the parsed config is unchanged. With Viceroy 0.22, all three harness modes pass locally at cb790530b (esi 23 of 23, inline 9 of 9, purge 35 of 35), and again at rc/identity 861207105, which merges it.

Carries #1533's Axum startup-test port fix (779e446) and nothing
else. Owner commits pushed to other chain PRs since round 15 come in
with the next round.
@aram356

aram356 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Cascade of #1533's Axum startup-test port fix (779e44673): dd729bcaf merges it into this PR. There were no conflicts and nothing else changed. The fix moves free_loopback_port in crates/trusted-server-adapter-axum/tests/routes.rs below the ephemeral port range, and #1533's note has the details. Owner commits pushed to other chain PRs since round 15 come in with the next round. rc/identity is now 62f8e41e2.

@aram356

aram356 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Merged #1627's runtime KV removal (7c2b84f45) into this branch as 7a981049c, on top of dd729bcaf.

At the maintainer's request, that commit removes the generic runtime KV store trusted_server_runtime_kv. Nothing reads or writes it, and the managed Fastly deploy made every service provision and pay for it. edgezero.toml and the Fastly Hooks::stores() now declare only trusted_server_kv, and RuntimeServices::kv_store() is unavailable on every adapter.

Only that commit was merged, not the base branch's new head. Conflicts were resolved in edgezero.toml, the Fastly Hooks::stores() in app.rs, fastly.toml, the Viceroy template, the integration tests' config.rs, trusted-server.example.toml, docs/guide/architecture.md and docs/guide/edgezero.md. Only trusted_server_kv stays declared, this branch's record-store comment and local seeds are kept, and the runtime-KV lines are dropped. The Axum README and docs/guide/axum-dev.md keep this branch's Axum wording. CHANGELOG.md keeps this branch's entry and drops the runtime-KV one.

Checks on this head: no reference to the removed store remains and cargo fmt --check passes; clippy-fastly, clippy-axum, clippy-cloudflare and clippy-spin-native pass. rc/identity (b9dc3153e) passed the full CI gate list with the removal.

PR #1675's new head brings #1487's change that strips `ts-eids` from publisher-origin requests unless the operator opts in and #1646's fix that preserves filter headers through identity finalization. The merge is clean.
aram356 added a commit that referenced this pull request Dec 3, 2026
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.
@aram356

aram356 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Round 17 identity realignment: rc/identity is now at 0ed862633, and EdgeZero stays pinned to its rc/identity at ef5cbf308. This branch fast-forwarded from 7a981049c to 1359722eb:

Each merge message says what it carries and how any conflict was resolved.

@aram356

aram356 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Merged #1614's /_ts/ local answers (48930c270) into this branch as 9e69c5d66, on top of 1359722eb.

Trusted Server owns the /_ts/ namespace (#1740). A request for /_ts or any /_ts/ path that no route handles now gets a local 404 on Fastly, Axum, Cloudflare and Spin, and never reaches the publisher origin. The path is matched after percent-decoding. Paths outside the namespace, such as /_tsx or /articles/_ts/x, still go to the publisher origin, and every routed /_ts/ path answers as before.

This merge takes #1675's new head (d3f76b07b), which carries 48930c270 and nothing else new to this branch. It was clean.

Checks on this head: no conflict markers; cargo fmt --all -- --check passes; the merge adds exactly #1614's change to this branch's files; it merges cleanly with every lower head in its stack; clippy-fastly, clippy-axum, clippy-cloudflare and clippy-spin-native pass. rc/identity (e72407155) passed the full CI gate list with the change.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Present a client certificate on auction provider OpenRTB requests (mTLS)

3 participants