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:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user