[GH-ISSUE #1925] proxyman cli import does not activate "allow system environment" Scripting permission #1917

Open
opened 2026-03-03 19:55:26 +03:00 by kerem · 3 comments
Owner

Originally created by @samybenatt on GitHub (Feb 2, 2024).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1925

Originally assigned to: @NghiaTranUIT on GitHub.

Description

proxyman cli import does not activate "allow system environment" permission

Steps to Reproduce

  1. Create script and activate "allow system environment" permission
    image

  2. Export current scripting settings with proxyman cli export

/Applications/Proxyman.app/Contents/MacOS/proxyman-cli export -m enabledRules -o /tmp/proxy_script.json
image
  1. Remove scripting rule and disable system environment permission to reset Proxyman state

  2. Close Proxyman

  3. Import scripting settings with proxyman cli import

/Applications/Proxyman.app/Contents/MacOS/proxyman-cli import -m override -i /tmp/proxy_script.json
image
  1. Open Proxyman and observe script imported and scripting enabled but environment variable option not activated
    image

Current Behavior

proxyman cli import does not activate "allow system environment" permission of Scripting on import of settings

Expected Behavior

proxyman cli export should keep the state of Scripting advanced permission and proxyman cli import should be able to import it

Environment

Proxyman macOS 4.16.0

Originally created by @samybenatt on GitHub (Feb 2, 2024). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1925 Originally assigned to: @NghiaTranUIT on GitHub. ## Description proxyman cli import does not activate "allow system environment" permission ## Steps to Reproduce 1. Create script and activate "allow system environment" permission <img width="1207" alt="image" src="https://github.com/ProxymanApp/Proxyman/assets/24391573/c6933659-1e8d-4097-80d0-e744662ace75"> 2. Export current scripting settings with proxyman cli export ```bash /Applications/Proxyman.app/Contents/MacOS/proxyman-cli export -m enabledRules -o /tmp/proxy_script.json ``` <img width="567" alt="image" src="https://github.com/ProxymanApp/Proxyman/assets/24391573/6c3e2316-1225-4613-90a6-9e0f5424640e"> 3. Remove scripting rule and disable system environment permission to reset Proxyman state 4. Close Proxyman 5. Import scripting settings with proxyman cli import ```bash /Applications/Proxyman.app/Contents/MacOS/proxyman-cli import -m override -i /tmp/proxy_script.json ``` <img width="478" alt="image" src="https://github.com/ProxymanApp/Proxyman/assets/24391573/90ddbccd-19c2-450b-96ef-8de7bb21caf1"> 6. Open Proxyman and observe script imported and scripting enabled but environment variable option not activated <img width="1182" alt="image" src="https://github.com/ProxymanApp/Proxyman/assets/24391573/1fac5730-2b01-4665-b27f-f38beb393446"> ## Current Behavior proxyman cli import does not activate "allow system environment" permission of Scripting on import of settings ## Expected Behavior proxyman cli export should keep the state of Scripting advanced permission and proxyman cli import should be able to import it ## Environment Proxyman macOS 4.16.0
Author
Owner

@samybenatt commented on GitHub (Feb 19, 2024):

@NghiaTranUIT Not sure if this one is related to the previous bug you fixed or not #(1924)
I marked it as a bug but might be a enhancement, let me know if you need me to update the label

<!-- gh-comment-id:1951930974 --> @samybenatt commented on GitHub (Feb 19, 2024): @NghiaTranUIT Not sure if this one is related to the previous bug you fixed or not [#(1924)](https://github.com/ProxymanApp/Proxyman/issues/1924) I marked it as a bug but might be a enhancement, let me know if you need me to update the label
Author
Owner

@NghiaTranUIT commented on GitHub (Feb 20, 2024):

@samybenatt from what I see, the Export Scripting data doesn't include the Scripting Setting. For now, it only exports the Script data itself.

Do you need these settings should be exported too ?

<!-- gh-comment-id:1953414765 --> @NghiaTranUIT commented on GitHub (Feb 20, 2024): @samybenatt from what I see, the Export Scripting data doesn't include the Scripting Setting. For now, it only exports the Script data itself. Do you need these settings should be exported too ?
Author
Owner

@samybenatt commented on GitHub (Feb 20, 2024):

@samybenatt from what I see, the Export Scripting data doesn't include the Scripting Setting. For now, it only exports the Script data itself.

Do you need these settings should be exported too ?

@NghiaTranUIT Thanks for your reply.
For consistent CLI import/export, I feel that the script options should be included into the exported json too so it's easy to restore the exact same Proxyman script overall configuration (script + options enabled) from one environment to another (especially when those options are used within the script)

<!-- gh-comment-id:1953563096 --> @samybenatt commented on GitHub (Feb 20, 2024): > @samybenatt from what I see, the Export Scripting data doesn't include the Scripting Setting. For now, it only exports the Script data itself. > > Do you need these settings should be exported too ? @NghiaTranUIT Thanks for your reply. For consistent CLI import/export, I feel that the script options should be included into the exported json too so it's easy to restore the exact same Proxyman script overall configuration (script + options enabled) from one environment to another (especially when those options are used within the script)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#1917
No description provided.