test(19.7-05): security review pins for the MCP endpoint's outer layers

- TestEndpointGuards: a foreign browser Origin is 403 before the bearer is
  read, a body over the endpoint cap is 413, a long GET stream ends once
  its grant stops verifying (T-19.7-18, T-19.7-19)
- TestDispatch: an argument key the input struct does not declare is
  refused before dispatch (T-19.7-17)
- the gate requires TestEndpointGuards (untagged and tagged) and runs the
  demo's deploy check (T-19.7-37)
This commit is contained in:
Jakub Zych
2026-10-23 14:26:26 +02:00
parent d621ef1b41
commit 0b8e027b81
4 changed files with 126 additions and 2 deletions

View File

@@ -46,3 +46,6 @@ func (p *Pier) StatelessServers() int {
defer p.stateless.mu.Unlock()
return len(p.stateless.entries)
}
// SetRecheck sets how often a long GET stream re-verifies its bearer.
func (p *Pier) SetRecheck(d time.Duration) { p.recheck = d }