You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For #190
See spec on #4152
See #1776 for a related PR for the feature with the core implementation
for proxies in wininet
This PR adds basic support for using proxies. Most of the changes are
for enabling the configuration and blocking of the feature. This feature
will be gated behind an experimental feature setting
* Added Group Policy and Admin settings for enabling/disabling the use
of proxy CLI arguments and for setting a default proxy.
+ Pending: Internal review for new Group Policy
+ Extended `AdminSettings` to support settings with string values,
instead of only bool flags. The implementation is mostly a copy of the
bool case. In the future we should look back at it to reduce duplication
of code.
+ Added a `set` subcommand to `settings` that can set the admin settings
* Added CLI arguments to select a proxy on each different invocation of
winget, or to disable the use of a default one.
* Updated calls to wininet and cpprestsdk to use the provided proxy, and
added plumbing to get the arguments from the command line to the point
of use.
* Changed the flow around downloads to force winget to use proxies if
available.
Manually tested on a VM using mitmproxy
Pending: Adding automated tests tests.
Co-authored-by: yao-msft <[email protected]>
Copy file name to clipboardExpand all lines: doc/admx/en-US/DesktopAppInstaller.adml
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ If you disable or do not configure this setting, users will not be able to insta
100
100
101
101
If you disable this policy, users will not be able execute the Windows Package Manager CLI, and PowerShell cmdlets.
102
102
103
-
If you enable, or do not configuring this policy, users will be able to execute the Windows Package Manager CLI commands, and PowerShell cmdlets. (Provided “Enable App Installer” policy is not disabled).
103
+
If you enable, or do not configure this policy, users will be able to execute the Windows Package Manager CLI commands, and PowerShell cmdlets. (Provided “Enable App Installer” policy is not disabled).
104
104
105
105
This policy does not override the “Enable App Installer” policy.</string>
106
106
<stringid="EnableWindowsPackageManagerConfiguration">Enable Windows Package Manager Configuration</string>
@@ -109,6 +109,19 @@ If you disable or do not configure this setting, users will not be able to insta
109
109
If you enable or do not configure this setting, users will be able to use the Windows Package Manager configuration feature.
110
110
111
111
If you disable this setting, users will not be able to use the Windows Package Manager configuration feature.</string>
112
+
<stringid="EnableWindowsPackageManagerProxyCommandLineOptions">Enable Windows Package Manager Proxy command line options</string>
This policy controls whether the Windows Package Manager usage of proxy can be configured by users through the command line.
115
+
116
+
If you enable this setting, users will be able to configure the Windows Package Manager's use of proxy through the command line.
117
+
118
+
If you disable or do not configure this setting, users will not be able to to configure the Windows Package Manager's use of proxy through the command line.</string>
119
+
<stringid="WindowsPackageManagerDefaultProxy">Set Windows Package Manager Default Proxy</string>
120
+
<stringid="WindowsPackageManagerDefaultProxyExplanation">This policy controls the default proxy used by the Windows Package Manager.
121
+
122
+
If you disable or do not configure this setting, no proxy will be used by default.
123
+
124
+
If you enable this setting, the specified proxy will be used by default.</string>
112
125
</stringTable>
113
126
<presentationTable>
114
127
<presentationid="SourceAutoUpdateInterval">
@@ -120,6 +133,11 @@ If you disable this setting, users will not be able to use the Windows Package M
0 commit comments