GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Prefer the most specific index authentication policy by zaniebot · Pull Request #174 · astral-sh/uv-dev

Conversation

@zaniebot

@zaniebot zaniebot commented Jul 16, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Overlapping index roots use the first hash-set match, so a broader authenticated index can override a nested authenticate = "never" index and send credentials. Choose the most-specific matching root, prefer never on ties, and reject credentials already attached to the request. uv#11896 introduced this policy to prevent credential leakage, and uv#19154 fixed related path-boundary matching.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@zaniebot zaniebot mentioned this pull request Jul 16, 2026
Prefer the most specific index authentication policy zaniebot/uv#193
Closed
@zaniebot
zaniebot force-pushed the zb/bughunt200/154-authenticate-never-index-overlap branch from 630805d to 035df84 Compare July 16, 2026 03:24
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/bughunt200/154-authenticate-never-index-overlap branch from 035df84 to b728955 Compare July 23, 2026 14:26
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/bughunt200/154-authenticate-never-index-overlap branch from b728955 to 5f60a99 Compare August 8, 2026 12:34
@zaniebot zaniebot added priority:1 High: material security boundary, data loss, silent incorrect results, or major regression. size:3 Substantial: interacting behaviors, difficult compatibility questions, or a careful migration. bug Something isn't working security risk:3 Credible risk of meaningful incorrect behavior or regression; bounded or recoverable. labels Sep 9, 2026
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/bughunt200/154-authenticate-never-index-overlap branch from 5f60a99 to ffb3289 Compare September 11, 2026 19:32
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/bughunt200/154-authenticate-never-index-overlap branch from ffb3289 to 6f4290c Compare October 1, 2026 12:17
@codspeed

codspeed Bot commented Oct 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Merging this PR will not alter performance

⚠️ 8 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

  • run_python_version_synthetic_workspace
  • discover_workspace_from_all_members
  • resolve_warm_airflow
  • discover_workspace_from_all_members_with_excludes
  • install_wheel_many_files
  • unpack_sdist_many_files
  • resolve_warm_jupyter
  • resolve_warm_jupyter_universal

✅ 69 untouched benchmarks
⏩ 35 skipped benchmarks1


Comparing zb/bughunt200/154-authenticate-never-index-overlap (6e89b85) with main (f1c34ca)

Open in CodSpeed

Footnotes

  1. 35 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@zanieb @astral-automations-bot
Prefer the most specific index authentication policy
6e89b85
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/bughunt200/154-authenticate-never-index-overlap branch from 6f4290c to 6e89b85 Compare October 16, 2026 18:11
@astral-automations-bot
astral-automations-bot Bot deployed to automations October 16, 2026 18:12 Active
@astral-automations-bot
astral-automations-bot Bot deployed to automations October 16, 2026 18:16 Active
astral-automations-bot[bot]
astral-automations-bot Bot reviewed Oct 16, 2026
View reviewed changes
Comment thread crates/uv/tests/project/edit.rs
Comment on lines 14078 to +14082
uv_snapshot!(context.filters(), context.add().arg("anyio"), @"
exit_code: 1 (failure)
exit_code: 2 (failure)
----- stderr -----
error: Failed to add dependencies
cause: No solution found when resolving dependencies
cause: Because anyio==4.3.0 could not be fetched from the network (`401 Unauthorized`) and only anyio==4.3.0 is available, we can conclude that all versions of anyio cannot be used.
And because your project depends on anyio, we can conclude that your project's requirements are unsatisfiable.

hint: Metadata for `anyio` (v4.3.0) could not be fetched; the server returned: `401 Unauthorized`

hint: If you want to add the package regardless of the failed resolution, provide the `--frozen` flag to skip locking and syncing
error: Failed to fetch: http://[LOCALHOST]/basic-auth/simple/anyio/
cause: Credentials were provided for `***[LOCALHOST]/basic-auth/simple/anyio/`, but authentication is disabled for this index

@astral-automations-bot astral-automations-bot Bot Oct 16, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P3] Retain coverage of ignored wheel-metadata HTTP errors

This now fails in AuthMiddleware before receiving an HTTP response, so ignore-error-codes = [401] cannot affect the result and the test duplicates add_auth_policy_never_with_url_credentials above. The previous snapshot exercised converting a wheel-metadata fetch failure into MetadataUnavailable::Network; the nearby add_ignore_error_codes test only covers index queries. Adjust this fixture to serve the Simple API anonymously and return 401 for the wheel or metadata request, without URL credentials, so that distinct coverage remains reachable.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

This branch was successfully deployed

1 active deployment
automations — 6e89b85f Deployed Oct 16, 2026 by astral-automations-bot[bot] via review-code-quality / report #10717
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@astral-automations-bot astral-automations-bot[bot] astral-automations-bot[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

bug Something isn't working priority:1 High: material security boundary, data loss, silent incorrect results, or major regression. risk:3 Credible risk of meaningful incorrect behavior or regression; bounded or recoverable. security size:3 Substantial: interacting behaviors, difficult compatibility questions, or a careful migration.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@zaniebot @zanieb
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.