@@ -205,6 +205,26 @@ pub struct GlobalArgs {
205205 #[ arg( global = true , long, overrides_with( "offline" ) , hide = true ) ]
206206 pub no_offline : bool ,
207207
208+ /// Allow insecure connections to a host.
209+ ///
210+ /// Can be provided multiple times.
211+ ///
212+ /// Expects to receive either a hostname (e.g., `localhost`), a host-port pair (e.g.,
213+ /// `localhost:8080`), or a URL (e.g., `https://localhost`).
214+ ///
215+ /// WARNING: Hosts included in this list will not be verified against the system's certificate
216+ /// store. Only use `--allow-insecure-host` in a secure network with verified sources, as it
217+ /// bypasses SSL verification and could expose you to MITM attacks.
218+ #[ arg(
219+ global = true ,
220+ long,
221+ alias = "trusted-host" ,
222+ env = EnvVars :: UV_INSECURE_HOST ,
223+ value_delimiter = ' ' ,
224+ value_parser = parse_insecure_host,
225+ ) ]
226+ pub allow_insecure_host : Option < Vec < Maybe < TrustedHost > > > ,
227+
208228 /// Whether to enable experimental, preview features.
209229 ///
210230 /// Preview features may change without warning.
@@ -1768,25 +1788,6 @@ pub struct PipUninstallArgs {
17681788 #[ arg( long, value_enum, env = EnvVars :: UV_KEYRING_PROVIDER ) ]
17691789 pub keyring_provider : Option < KeyringProviderType > ,
17701790
1771- /// Allow insecure connections to a host.
1772- ///
1773- /// Can be provided multiple times.
1774- ///
1775- /// Expects to receive either a hostname (e.g., `localhost`), a host-port pair (e.g.,
1776- /// `localhost:8080`), or a URL (e.g., `https://localhost`).
1777- ///
1778- /// WARNING: Hosts included in this list will not be verified against the system's certificate
1779- /// store. Only use `--allow-insecure-host` in a secure network with verified sources, as it
1780- /// bypasses SSL verification and could expose you to MITM attacks.
1781- #[ arg(
1782- long,
1783- alias = "trusted-host" ,
1784- env = EnvVars :: UV_INSECURE_HOST ,
1785- value_delimiter = ' ' ,
1786- value_parser = parse_insecure_host,
1787- ) ]
1788- pub allow_insecure_host : Option < Vec < Maybe < TrustedHost > > > ,
1789-
17901791 /// Use the system Python to uninstall packages.
17911792 ///
17921793 /// By default, uv uninstalls from the virtual environment in the current working directory or
@@ -2360,25 +2361,6 @@ pub struct VenvArgs {
23602361 #[ arg( long, value_enum, env = EnvVars :: UV_KEYRING_PROVIDER ) ]
23612362 pub keyring_provider : Option < KeyringProviderType > ,
23622363
2363- /// Allow insecure connections to a host.
2364- ///
2365- /// Can be provided multiple times.
2366- ///
2367- /// Expects to receive either a hostname (e.g., `localhost`), a host-port pair (e.g.,
2368- /// `localhost:8080`), or a URL (e.g., `https://localhost`).
2369- ///
2370- /// WARNING: Hosts included in this list will not be verified against the system's certificate
2371- /// store. Only use `--allow-insecure-host` in a secure network with verified sources, as it
2372- /// bypasses SSL verification and could expose you to MITM attacks.
2373- #[ arg(
2374- long,
2375- alias = "trusted-host" ,
2376- env = EnvVars :: UV_INSECURE_HOST ,
2377- value_delimiter = ' ' ,
2378- value_parser = parse_insecure_host,
2379- ) ]
2380- pub allow_insecure_host : Option < Vec < Maybe < TrustedHost > > > ,
2381-
23822364 /// Limit candidate packages to those that were uploaded prior to the given date.
23832365 ///
23842366 /// Accepts both RFC 3339 timestamps (e.g., `2006-12-02T02:07:43Z`) and local dates in the same
@@ -4203,26 +4185,6 @@ pub struct InstallerArgs {
42034185 ) ]
42044186 pub keyring_provider : Option < KeyringProviderType > ,
42054187
4206- /// Allow insecure connections to a host.
4207- ///
4208- /// Can be provided multiple times.
4209- ///
4210- /// Expects to receive either a hostname (e.g., `localhost`), a host-port pair (e.g.,
4211- /// `localhost:8080`), or a URL (e.g., `https://localhost`).
4212- ///
4213- /// WARNING: Hosts included in this list will not be verified against the system's certificate
4214- /// store. Only use `--allow-insecure-host` in a secure network with verified sources, as it
4215- /// bypasses SSL verification and could expose you to MITM attacks.
4216- #[ arg(
4217- long,
4218- alias = "trusted-host" ,
4219- env = EnvVars :: UV_INSECURE_HOST ,
4220- value_delimiter = ' ' ,
4221- value_parser = parse_insecure_host,
4222- help_heading = "Index options"
4223- ) ]
4224- pub allow_insecure_host : Option < Vec < Maybe < TrustedHost > > > ,
4225-
42264188 /// Settings to pass to the PEP 517 build backend, specified as `KEY=VALUE` pairs.
42274189 #[ arg(
42284190 long,
@@ -4365,26 +4327,6 @@ pub struct ResolverArgs {
43654327 ) ]
43664328 pub keyring_provider : Option < KeyringProviderType > ,
43674329
4368- /// Allow insecure connections to a host.
4369- ///
4370- /// Can be provided multiple times.
4371- ///
4372- /// Expects to receive either a hostname (e.g., `localhost`), a host-port pair (e.g.,
4373- /// `localhost:8080`), or a URL (e.g., `https://localhost`).
4374- ///
4375- /// WARNING: Hosts included in this list will not be verified against the system's certificate
4376- /// store. Only use `--allow-insecure-host` in a secure network with verified sources, as it
4377- /// bypasses SSL verification and could expose you to MITM attacks.
4378- #[ arg(
4379- long,
4380- alias = "trusted-host" ,
4381- env = EnvVars :: UV_INSECURE_HOST ,
4382- value_delimiter = ' ' ,
4383- value_parser = parse_insecure_host,
4384- help_heading = "Index options"
4385- ) ]
4386- pub allow_insecure_host : Option < Vec < Maybe < TrustedHost > > > ,
4387-
43884330 /// The strategy to use when selecting between the different compatible versions for a given
43894331 /// package requirement.
43904332 ///
@@ -4778,25 +4720,6 @@ pub struct PublishArgs {
47784720 /// Defaults to `disabled`.
47794721 #[ arg( long, value_enum, env = EnvVars :: UV_KEYRING_PROVIDER ) ]
47804722 pub keyring_provider : Option < KeyringProviderType > ,
4781-
4782- /// Allow insecure connections to a host.
4783- ///
4784- /// Can be provided multiple times.
4785- ///
4786- /// Expects to receive either a hostname (e.g., `localhost`), a host-port pair (e.g.,
4787- /// `localhost:8080`), or a URL (e.g., `https://localhost`).
4788- ///
4789- /// WARNING: Hosts included in this list will not be verified against the system's certificate
4790- /// store. Only use `--allow-insecure-host` in a secure network with verified sources, as it
4791- /// bypasses SSL verification and could expose you to MITM attacks.
4792- #[ arg(
4793- long,
4794- alias = "trusted-host" ,
4795- env = EnvVars :: UV_INSECURE_HOST ,
4796- value_delimiter = ' ' ,
4797- value_parser = parse_insecure_host,
4798- ) ]
4799- pub allow_insecure_host : Option < Vec < Maybe < TrustedHost > > > ,
48004723}
48014724
48024725/// See [PEP 517](https://peps.python.org/pep-0517/) and
0 commit comments