p2.5: log host=- for permit_restricted callers

Scrape, fetch, refused, fetch-failed, and internal lines redact the
host for callers in context.permit_restricted. final_url stays in the
response. Test captures slog records, not the journal.
This commit is contained in:
2026-09-23 11:40:45 -07:00
parent e36da19f57
commit 85113f9c0b
4 changed files with 165 additions and 3 deletions
+1
View File
@@ -96,6 +96,7 @@ func serveMain() {
defer stop()
srv := api.New(version, g, fetcher, store, log)
srv.PermitRestricted = cfg.Context.PermitRestricted
if cfg.Dixie.Chat != "" {
cachePath := cfg.Digest.Cache
if cachePath == "" {