Ephemeral exposures: short-lived site and port or hostname with a TTL, for shark expose

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
VeillaxandClaude Sonnet 5.5 committed 2026-10-27 16:57:21 -06:00
1 parent 39659f0144
commit bce44e21ce
7 files changed
+705

No files matched your search

+3
View File
@@ -100,6 +100,9 @@ func (s *Server) withOrg(needAdmin bool, fn func(http.ResponseWriter, *http.Requ
return
}
id := r.PathValue("org")
if id == "-" && p.Key != nil {
id = p.Key.OrgID // an API key belongs to one organization, so "-" can stand for it
}
s.mu.Lock()
org := s.findOrg(id)
c := &orgCtx{User: p.User, Key: p.Key}