Repository navigation
fix: review batch 3 (correctness, races, query plans, CLI, web) - #428
Merged
Merged
Conversation
Fixes the findings of the third codebase review and of the follow-up review of the database layer and the areas the first pass skipped. Server - regen queue: a blocked key no longer starves other ready keys - cleanup: TriggerPolicy cannot start work after Stop (503 while stopping) - npm: refuse versions with build metadata; batched version lookups - cargo: refuse names differing only in - versus _ - pypi: an upload of a PEP 440-equal version joins the existing release - raw: PUT refuses unaddressable paths (400) - compact index: ParseVersions is linear (was quadratic in yanks) - groups (ansible, conda, maven, oci, helm): no cached merge after a member failure; helm index parse capped - proxy: OCI tag/referrer listings take an upstream fetch slot - webhooks: additive X-Oa-Timestamp / X-Oa-Signature-V2 (replay-safe) - login revokes the pre-login session; AI analysis uses the stored component's identity - docker GC: a manifest with a missing body blocks blob sweeps instead of being indexed as referencing nothing; reported as manifests_missing_body - licenses: SPDX expressions evaluated as an AST (AND before OR, parens), comma lists all-required, deprecated -with-exception ids, one SPDX table, SPDX 3 license cache key; curation globs precompiled - rpm: drop unread FileEntry fields Database - 015 (concurrent, re-runnable): indexes for package_versions, proxy cache negative/listing/prefix/docker image, docker_blob_images, scan_jobs, Dependency-Track pushes; ListDockerCatalog proxied CTE as a loose index scan; SecurityHealthStats last scan via per-type probe - 016: merge duplicate global groups and make global names unique; GetOrCreateGroup is INSERT ... ON CONFLICT - admin user PATCH writes only the changed columns; scan jobs store NULL instead of a zero completed_at - storage backend update and its busy check in one transaction; repository PATCH validates before moving and applies move, settings and members in one transaction; member list loaded in one query - advisory locks through pglock everywhere oa CLI - downloads keep 0600 / the existing mode, Ctrl-C cancels, plain-http password warning, blank token refused, saved token only for its server Web - stale declarative plans dropped, ?new flags reactive, user edit can clear email and name, undo targets captured at toast time, audit hidden count, permission assign retry, dead route guard removed, plural/tiering toasts Tests: removed fixed sleeps and wiring-only tests.
Fixes the CodeQL allocation-size alert on the V2 signature buffer by hashing the parts in sequence, and resolves the dupl ratchet clone in the cleanup trigger error switch.
Coverage
Go by area
Web by area (lines)
|
M0Rf30
added a commit
that referenced
this pull request
Nov 8, 2026
…omotion, column-wise admin edits (#429) * fix: bind docker uploads to their image, enforce license policy on promotion, column-wise admin edits Review batch 4: the areas the previous passes skipped plus the items deferred from #428. Authorization and policy - docker: a blob upload session belongs to the repository and image it was started for (migration 017); another image gets 404 BLOB_UPLOAD_UNKNOWN; pre-migration sessions fail closed - promotion evaluates the target's license policy for npm, conda, ansible, nuget, helm, maven, ivy and sbt; an unreadable file under a blocking policy is 422 LICENSE_METADATA_UNREADABLE and copies nothing; helm charts gain a license reader (artifacthub.io/license) Lost updates - project, webhook, group, SSO provider, permission target and promotion pipeline edits write only the columns sent (PatchX + XPatch, as PatchUser); unused UpdateX queries removed Secrets - GCS hmacKey/hmacSecret in camelCase are encrypted and hidden - scanner: no token tails in line hints, encrypted/PGP private keys, github_pat_ tokens, combined findings cap Correctness - npm unpublish and publish rollback delete versions in one transaction - pypi: egg and Windows installer filenames yield the release version - cargo: [project].license fallback; non-string license is unreadable - tiering: a cold-tier delete failure without a placement row is retried instead of orphaning bytes - /ready caches the S3 probe (3 s timeout, 2 s TTL); a shutdown that exceeds its deadline closes remaining connections Web - Quotas/Cleanup links open the repository Settings tab - Attestations lists every hosted docker repository (paged, filtered) and drops stale responses - Quota, scanner and dry-run counts formatted Upgrade notes under Unreleased in docs/getting-started/upgrading.md. * fix(web): point the empty cleanup hint at the Settings tab * ci(e2e): retry the Lightpanda download for up to five minutes
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 the findings of the third codebase review and of the follow-up
review of the database layer and the areas the first pass skipped.
Server
member failure; helm index parse capped
component's identity
being indexed as referencing nothing; reported as manifests_missing_body
comma lists all-required, deprecated -with-exception ids, one SPDX table,
SPDX 3 license cache key; curation globs precompiled
Database
negative/listing/prefix/docker image, docker_blob_images, scan_jobs,
Dependency-Track pushes; ListDockerCatalog proxied CTE as a loose index
scan; SecurityHealthStats last scan via per-type probe
GetOrCreateGroup is INSERT ... ON CONFLICT
instead of a zero completed_at
PATCH validates before moving and applies move, settings and members in
one transaction; member list loaded in one query
oa CLI
password warning, blank token refused, saved token only for its server
Web
email and name, undo targets captured at toast time, audit hidden count,
permission assign retry, dead route guard removed, plural/tiering toasts
Tests: removed fixed sleeps and wiring-only tests.