Skip to content

Prefer the most specific index authentication policy - #174

Draft
zaniebot wants to merge 1 commit into
mainfrom
zb/bughunt200/154-authenticate-never-index-overlap
Draft

Prefer the most specific index authentication policy#174
zaniebot wants to merge 1 commit into
mainfrom
zb/bughunt200/154-authenticate-never-index-overlap

Conversation

@zaniebot

@zaniebot zaniebot commented Jul 16, 2026

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.

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants