Harden edgezero #269 runtime config-store load (HTTP layer)#783
Draft
prk-Jr wants to merge 15 commits into
Draft
Harden edgezero #269 runtime config-store load (HTTP layer)#783prk-Jr wants to merge 15 commits into
prk-Jr wants to merge 15 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
stackpop/edgezero#269. Stacked onfeature/ts-cli-next(which carries the As a buyer, I want the first bid request to include IAB cohorts, signals, and synthetic ID #269 repin,Bodyfixes, the Fastly adapter migration, and config-store-backedSettingsload). Draft — base is unmerged; retarget tomainoncets-cli-nextlands.TrustedServerError::ConfigStoreUnavailable→ 503, while a reconstruct/verify failure (settings_from_config_entries: hash mismatch / unparseable) stays 500. One new error variant; no platform-layer change.run \ts config push``) goes to server logs (error chain); the public 503 body stays generic by design.Base note: diff is against
feature/ts-cli-next, so it shows only this branch's work. Againstmainit would include all ofts-cli-next.Changes
crates/trusted-server-core/src/error.rsConfigStoreUnavailable { store_name, message }variant → 503 (+ exhaustiveness guard, unit test)crates/trusted-server-core/src/settings_data.rsread_config_entryread failures →ConfigStoreUnavailable; tests (unseeded→503, malformed-hash→500, missing-listed-key→503, hint-in-chain)crates/trusted-server-adapter-fastly/src/error.rsConfigStoreUnavailablerenders 503 to client viato_error_responsecrates/integration-tests/Cargo.lockCloses
n/a — issue linking skipped by request.
Test plan
cargo test --workspace(core 1376 / adapter 39, 0 fail)cargo clippy --workspace --all-targets --all-features -- -D warningscargo fmt --all -- --checkcargo build -p trusted-server-adapter-fastly --release --target wasm32-wasip1Checklist
log, colocated tests)unwrap()in production code