-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Require elevated-only Windows policy for network proxies #31437
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
base: main
Are you sure you want to change the base?
Changes from all commits
36e6579
d1e1810
aab8d9b
c32b50b
c20a892
fadc699
b93937f
df79057
8e8fd94
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -204,6 +204,7 @@ impl CommandExecRequestProcessor { | |
| network_proxy_permission_profile, | ||
| managed_network_requirements_enabled, | ||
| windows_sandbox_workspace_roots, | ||
| windows_sandbox_level, | ||
| ) = if let Some(permission_profile) = permission_profile { | ||
| let overrides = ConfigOverrides { | ||
| cwd: Some(cwd.to_path_buf()), | ||
|
|
@@ -232,6 +233,7 @@ impl CommandExecRequestProcessor { | |
| config.permissions.permission_profile().clone(), | ||
| config.managed_network_requirements_enabled(), | ||
| config.effective_workspace_roots(), | ||
| WindowsSandboxLevel::from_config(&config), | ||
| ) | ||
| } else if let Some(policy) = sandbox_policy.map(|policy| policy.to_core()) { | ||
| self.config | ||
|
|
@@ -258,6 +260,7 @@ impl CommandExecRequestProcessor { | |
| self.config.permissions.permission_profile().clone(), | ||
| self.config.managed_network_requirements_enabled(), | ||
| self.config.effective_workspace_roots(), | ||
| windows_sandbox_level, | ||
| ) | ||
| } else { | ||
| ( | ||
|
|
@@ -266,9 +269,13 @@ impl CommandExecRequestProcessor { | |
| self.config.permissions.permission_profile().clone(), | ||
| self.config.managed_network_requirements_enabled(), | ||
| self.config.effective_workspace_roots(), | ||
| windows_sandbox_level, | ||
| ) | ||
| }; | ||
| let started_network_proxy = match network_proxy_spec.as_ref() { | ||
| let started_network_proxy = match network_proxy_spec | ||
| .as_ref() | ||
| .filter(|spec| !cfg!(target_os = "windows") || spec.enabled()) | ||
|
Comment on lines
+275
to
+277
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When AGENTS.md reference: AGENTS.md:L102-L107 Useful? React with 👍 / 👎. |
||
| { | ||
| Some(spec) => match spec | ||
| .start_proxy( | ||
| &network_proxy_permission_profile, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.