Log egress block reason to stderr #203

Merged
didericis merged 2 commits from log-egress-block-reason into main 2026-06-06 13:03:46 -04:00
Collaborator

Summary

  • When a request is blocked by the egress allowlist, decision.reason was sent back to the client as the HTTP 403 body but never written to the sidecar logs. This adds a sys.stderr.write call so the block reason appears in container logs alongside the client-facing message.
## Summary - When a request is blocked by the egress allowlist, `decision.reason` was sent back to the client as the HTTP 403 body but never written to the sidecar logs. This adds a `sys.stderr.write` call so the block reason appears in container logs alongside the client-facing message.
didericis-claude added 1 commit 2026-06-06 12:56:36 -04:00
feat(egress): log block reason to stderr on blocked requests
lint / lint (push) Successful in 1m24s
test / unit (pull_request) Successful in 31s
test / integration (pull_request) Successful in 41s
c89a0d334a
didericis added 1 commit 2026-06-06 13:00:49 -04:00
refactor(egress): centralize block logging in _block helper
test / unit (pull_request) Successful in 30s
test / integration (pull_request) Successful in 49s
lint / lint (push) Successful in 1m26s
test / unit (push) Successful in 31s
test / integration (push) Successful in 49s
Update Quality Badges / update-badges (push) Successful in 1m13s
e82bbb587f
didericis approved these changes 2026-06-06 13:03:30 -04:00
didericis merged commit e82bbb587f into main 2026-06-06 13:03:46 -04:00
didericis deleted branch log-egress-block-reason 2026-06-06 13:03:46 -04:00
Sign in to join this conversation.