Repository navigation
fix: review batch 3 (formats, group metadata, VEX versions, auth, quota, CLI, web paging) - #441
Merged
Merged
Conversation
Coverage
Go by area
Web by area (lines)
|
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.
Fixes from the full codebase review. Several findings were already fixed on
main(0.21.0) and are skipped: docker blob DELETE scoping, failed-commit upload discard, the deb signing fallback, regen queue runner count, auth_groups uniqueness, the proxy listing index, repository PATCH ordering, Azure block-listPut, the gpg signing subkey, and hosted format mismatch.Fixed
Formats and clients
PUT .../junit/junit/maven-metadata.xml(and its checksums) for single-segment groupIds is acknowledged instead of 400.os,cpu,libc,hasInstallScript,funding,acceptDependencies.requireLicenseAcceptanceis parsed as a bool, no longer always false.<module>@<version>/and more than 500 MiB uncompressed.xzlimit.NewReaderreads one stream only and checks the dictionary of every block.pkg/debuses it too. Before, a second stream or block could make the decoder allocate up to 4 GiB.Group and metadata workers
claimadopts the new owner when the stored checksum is empty. apk hosted-name shadowing is per directory.Security data
fixedstatus: per-ecosystem comparators (dpkg, rpm, pep440, gem, nuget, maven).2.36-9is no longer considered at or above2.36-9+deb12u3. apk returns "unknown".Auth and API
must_change_password, so abootstrap.adminTokenFiletoken works on first run.DELETE /api/v1/auth/tokens/{non-uuid}returns 404.curation_modeother thanoffis rejected for formats that can't enforce it (terraform, nix;repotype.Spec.NoCuration).GET /repositories/{name}/license/scansis paginated (page,per_page≤ 100,total,has_more). The web UI andoa license listpage through it. The maven parent re-check queries only unresolved scans.DenialAuditMiddleware).search_artifactsrejects empty queries and uses the capped search, with the REST too-broad error.mcp.httpPathis validated.artifact.downloaded.Database, recovery, quota
DeleteNPMPackagelocks the package before pruning.completed_atis NULL when unset (license, secret scans).026:scan_jobs_elect_latesttakes an advisory lock, so concurrent scans can't both be latest.quota.ConsumeN), so reconcile no longer double counts.Storage and proxy
.nuspecand conan non-archive files get the repo TTL instead of the immutable pin.noAuth.CLI
oa backup downloadandoa audit exportwrite 0600 files.oaerrors when the home directory is unknown.oa quota setrejects overflow.Web
offset(pages 2+ repeated page 1).%in a legacy URL no longer blanks the page.Verification
make lint: 0 issues.make deadcodeok.scripts/dup-check.sh: 0 clones.go test -short -race ./...passes.make generateandmake docs-gen: no drift.bun run typecheck,bun testandi18n:checkpass.