Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support to intercept mTLS protected traffics. #6430

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Nov 10, 2023

  1. feat: support to intercept mTLS protected traffics

    Currently we have options.client_certs as a per-site config
    to enable mTLS. However, when mitmproxy is working as
    a reverse proxy for a single server, there is no way for us
    to generate client certificates for each client.
    
    This is a very common scenario in kubernetes clusters.
    The kube-apiserver is a REST server wtih RBAC enabled,
    where mTLS is used to indicate the user/client.
    
    Now mitmproxy have addons/tlsconfig.py, which is a
    good start point. But client cert logic are embedded inside,
    other addons cannot override them. This commit adds
    make_certificate_builder and use_client_cert functions
    so that addons can monkey patch them.
    
    This commit introduces a new option tls_request_client_cert
    as well to accept original client certificate.
    fungaren committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    a751f99 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2023

  1. Configuration menu
    Copy the full SHA
    02002c0 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2023

  1. Configuration menu
    Copy the full SHA
    56528c9 View commit details
    Browse the repository at this point in the history