🐛 fix(ui): enforce OCI read ACLs#213
Merged
Merged
Conversation
Merging this PR will not alter performance
Comparing Footnotes
|
c0766af to
7b28cf5
Compare
7b28cf5 to
9de8d0c
Compare
This was referenced Jul 12, 2026
ce75ae1 to
a3a93c5
Compare
Anonymous users could browse private OCI repositories through neutral UI and search routes because those routes skipped index read ACLs. Check OCI read ACLs before browse drivers read repository data. Add readable resource globs to the Tantivy query so private repositories do not affect totals or pages. Resolve Basic credentials once per index and retain the public fast path. Fixes tox-dev#190
a3a93c5 to
0a4513e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Anonymous users could see private repository names and stored package data outside
/v2/through neutral browse and search routes that skipped OCI read ACLs (#190). 🔒The server now resolves Basic or Bearer credentials once per index before browse drivers read repository data, then converts readable scopes into Tantivy predicates before counting and pagination. Public indexes retain their direct query path.
Invalid Basic credentials trigger a
WWW-Authenticatechallenge. Root-mounted OCI routes accept the same bearer scopes as nested routes; the OCI user guides and contributor architecture reference describe the boundary.