ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.35k stars 177 forks source link

proxyman-cli import does not enable SSL proxying rules #1924

Closed samybenatt closed 4 months ago

samybenatt commented 5 months ago

Description

SSL Proxying rules are correctly imported to Proxyman with proxyman-cli but not enabled. Extract of the JSON configuration file:

{
...
    "sslProxyingData": {
...
        "isEnabled": true
    }
...
}

isEnabled is correctly set to true.

Steps to Reproduce

  1. Add SSL Proxying rules image
  2. Export Proxyman configuration with Proxyman CLI /Applications/Proxyman.app/Contents/MacOS/proxyman-cli export -o proxyman_test.json image
  3. Remove and disable the SSL Proxying rules to "restore" to factory state 20240202212522_rec_
  4. Close Proxyman
  5. Import proxyman generated JSON configuration with proxyman-cli import /Applications/Proxyman.app/Contents/MacOS/proxyman-cli import -m override -i /tmp/proxyman_test.json image
  6. Open Proxyman and check SSL Proxying rules image

SSL Proxying rules are correctly imported but not enabled.

Tried with other tools (Allow List, Scripting, ...), isEnabled is correctly taken into account. Seems to be specific to sslProxyingData.

Current Behavior

SSL Proxying rules are successfully imported but without being enabled while "isEnabled" is true

Expected Behavior

SSL Proxying rules should be imported and enabled

Environment

NghiaTranUIT commented 5 months ago

Thanks. It's a bug. I will fix it and send you a Beta build 👍

NghiaTranUIT commented 4 months ago

It's fixed with this Beta build: https://download.proxyman.io/beta/Proxyman_4.16.0_Fix_ssl_proxying_import_from_proxyman-cli.dmg

samybenatt commented 4 months ago

@NghiaTranUIT

It's fixed with this Beta build: https://download.proxyman.io/beta/Proxyman_4.16.0_Fix_ssl_proxying_import_from_proxyman-cli.dmg

Confirmed working with the above build, thanks for your help! 🙏

samybenatt commented 4 months ago

@NghiaTranUIT it worked but somehow broke the script tool, especially when trying to use env variables