uv/crates/uv-client/src
John Mumm c58675fdac
Add an optional authentication policy to [index] configuration (#11896)
Adds a new optional key `auth-policy` to `[tool.uv.index]` that sets the
authentication policy for the index URL.

The default is `"auto"`, which attempts to authenticate when necessary.
`"always"` always attempts to authenticate and fails if the endpoint is
unauthenticated. `"never"` never attempts to authenticate.

These policy address two kinds of cases:
* Some indexes don’t fail on unauthenticated requests; instead they just
forward to the public PyPI. This can leave the user confused as to why
their package is missing. The "always" policy prevents this.
* "never" allows users to ensure their credentials couldn't be leaked to
an unexpected index, though it will only allow for successful requests
on an index that doesn't require credentials.

Closes #11600
2025-03-10 12:24:25 -05:00
..
httpcache Consistently write log messages with capitalized first word (#11111) 2025-01-30 18:56:46 +00:00
base_client.rs Add an optional authentication policy to [index] configuration (#11896) 2025-03-10 12:24:25 -05:00
cached_client.rs Add Send + 'static bounds to cache deserialization (#10352) 2025-01-07 09:55:37 +00:00
error.rs Fallback to GET on HTTP 400 when attempting to use range requests for wheel download (#11539) 2025-02-15 22:02:46 -06:00
flat_index.rs Use SmallString for filenames and URLs (#11765) 2025-02-24 23:06:57 -08:00
html.rs Use SmallString for filenames and URLs (#11765) 2025-02-24 23:06:57 -08:00
lib.rs Add retries for Python downloads (#9274) 2024-11-20 09:42:42 -05:00
linehaul.rs Add uv- prefix to all internal crates (#7853) 2024-10-01 20:15:32 -04:00
middleware.rs Enable workspace lint configuration in remaining crates (#4329) 2024-06-18 03:02:28 +00:00
registry_client.rs Add an optional authentication policy to [index] configuration (#11896) 2025-03-10 12:24:25 -05:00
remote_metadata.rs Upgrade minimum Rust version to 1.83 (#9815) 2024-12-11 10:06:19 -06:00
rkyvutil.rs Remove unnecessary prefixes (#10158) 2024-12-25 14:18:01 -05:00
tls.rs Always attach URL to network errors (#8444) 2024-10-25 09:10:18 +00:00