ops: Assert Host allowlist reject in validate-check #55
Reference in New Issue
Block a user
Delete Branch "ops/host-allowlist-reject-assert"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Empty-upstream Host allowlist is load-bearing: if that gate regresses, the cache becomes an open LAN reverse proxy again. Unit tests already cover
hostAllowedForDirectFetch, butmake validate-checkdid not probe the live reject path.What
make validate-checkto GET/depot/allowlist-probe/chunkwithHost: evil.exampleand Steam UA; require HTTP 400 andInvalid URLTest
go test ./steamcache/ -run "TestHostAllowedForDirectFetch|TestDirectFetchRejectsNonSteamHost"— passRisks / rollback
Makefile + docs only. Revert commit.
Fixes #37