Phase 13, part 9: running at scale, and the proof
The multi-tenant edition starts. compose.multi.yaml runs several copies behind Caddy, with the managed Postgres and Garage outside. A test walks every page and fragment, with ids filled in, and every MCP tool, as one team, and none shows another team's data or changes it; another has three copies share six teams' work, each team's turn once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -112,6 +112,7 @@ type routes struct {
|
||||
s *Server
|
||||
mux *http.ServeMux
|
||||
unmapped []string
|
||||
patterns []string // every route, for the tests that walk them all
|
||||
}
|
||||
|
||||
// HandleFunc registers a handler: a method expression such as
|
||||
@@ -147,6 +148,7 @@ func (rt *routes) Handle(pattern string, h http.Handler) {
|
||||
rt.unmapped = append(rt.unmapped, pattern)
|
||||
return
|
||||
}
|
||||
rt.patterns = append(rt.patterns, pattern)
|
||||
rt.mux.Handle(pattern, rt.s.allow(area, rt.s.guardDomain(pattern, rt.s.audited(pattern, h))))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user