Skip to content

M4: Harden PinnedTransport TLS verification and remove http_probe's split socket path #69

Backlog

Description

@h45sh

Context

tools/http_probe/adapter.py builds its own unverified ssl context and opens a second socket to read the certificate, separate from the PinnedTransport request path. PinnedTransport does not bind verification to the pinned IP plus SNI, and proxy environment variables are not controlled.

Acceptance criteria

  • Bind TLS verification to the pinned IP and the requested SNI in one place.
  • Remove the duplicate certificate-fetch socket path.
  • Block redirects before headers are sent, not only in a response hook.
  • Ignore or explicitly clear proxy environment variables in SAFE.
  • Handle IPv6 zone IDs correctly.
  • Add tests for a mismatched certificate, a redirect to a blocked host, and a proxy env var.

Out of scope

The tls_probe bypass; that is #62.

Part of #27

Activity

  1. added this to the M4 Boundary milestone on Nov 29, 2026
  2. added
    type:security
    area:gateway
    priority:P1
    on Nov 29, 2026
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

    area:gatewaypriority:P1type:security

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions