Files
felhom.eu/documentation/audits/gate-rollout-2026-09-29/redproofs/RP22.txt
T

10 lines
995 B
Plaintext

# RP22 — Part 0 / C: never a block on an app this box did not gate
# mutation in internal/stacks/signup_block.go:
# - '\t\tif !st.Deployed || g == nil || g.State != SetupGateOpen || strings.TrimSpace(st.Meta.SignupBlock) == "" || g.signupWindowOpen(now) {\n\t\t\tcontinue\n\t\t}\n\t\twants[n] = want{hosts: append([]string(nil), g.Hosts...), fragment: st.Meta.SignupBlock}'
# + '\t\tif !st.Deployed || strings.TrimSpace(st.Meta.SignupBlock) == "" || g.signupWindowOpen(now) { // RED-PROOF RP22\n\t\t\tcontinue\n\t\t}\n\t\thosts := []string{"gapp.example.hu"}\n\t\tif g != nil {\n\t\t\thosts = g.Hosts\n\t\t}\n\t\twants[n] = want{hosts: hosts, fragment: st.Meta.SignupBlock}'
# go test -run ^TestSignupBlock_NeverOnAnAppThisBoxDidNotGate$ ./internal/stacks
# verdict: RED (assertion)
=== RUN TestSignupBlock_NeverOnAnAppThisBoxDidNotGate
signup_block_test.go:107: a sign-up block appeared on an app this box never gated
--- FAIL: TestSignupBlock_NeverOnAnAppThisBoxDidNotGate (0.00s)