Skip to content

Blocked egress is only logged at debug level; add an egress audit log #8

Open

Description

Problem

Every policy decision in the proxy is logged with debug!:

  • IP not in the DNS-pinned set: proxy.rs:219
  • SNI not in allowlist: proxy.rs:261
  • No SNI in ClientHello: proxy.rs:268
  • DNS query refused: dns.rs:73

(Line numbers as of #3 / upstream v0.11.0.) Only the MITM/secret-substitution failure path uses warn! (proxy.rs:284). At the default log level a user running an agent in the sandbox has no idea the agent tried to reach a host that was blocked, or which hosts it successfully reached.

For an agent sandbox, "what did the agent try to talk to" is the main thing an operator wants after a run.

Proposed behaviour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions