Proxyman icon indicating copy to clipboard operation
Proxyman copied to clipboard

Failed to intercept connections from kubectl command

Open NitroCao opened this issue 2 years ago • 1 comments

Description

I want to intercept traffic generated by kubectl command but Proxyman doesn't work.

Steps to Reproduce

  • Intercept HTTPS traffic of kubectl command by adding kubectl app in Tools -> SSL Proxying List -> Include List.
  • Add client certificate and client key file in Certificate -> Add Custom Certificate.
  • Enable SOCKS Proxy in Proxyman.
  • Set HTTPS_PROXY environment variable in terminal.
  • Run command kubectl --insecure-skip-tls-verify=true get pods. CleanShot 2023-12-14 at 12 45 50@2x CleanShot 2023-12-14 at 12 46 22@2x

Current Behavior

kubectl command retries all the time. CleanShot 2023-12-14 at 12 42 42@2x

CleanShot 2023-12-14 at 12 43 43@2x

BTW, if I edit and repeat the request, Proxyman fails with invalid host.

Expected Behavior

kubectl command works as usual.

Environment

  • App version: 4.15.0 (49600)
  • macOS version: 14.1.2 (23B92)

NitroCao avatar Dec 14 '23 04:12 NitroCao

You need to set proxy-url on .kube/config too.

clusters:
- name: cluster-name
  cluster:
    proxy-url: http://localhost:9090

CleanShot 2024-07-09 at 10 57 47@2x

kamontat avatar Jul 09 '24 04:07 kamontat