GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — fix: deploy-side integrity must fail closed by gnodet · Pull Request #2084 · apache/maven-resolver Conversation
Contributor
SummaryFixes 4 findings from the maven-resolver security audit (scan-maven-resolver-20260811):
Root cause: On the publication and strongest-verification paths, failures degrade silently: checksums that fail to upload are logged and forgotten, one pre-existing signature disables signing wholesale, and trusted-checksums has structural coverage gaps. Fix: Deploy must be atomic across artifact bytes and integrity metadata: propagate failures, cover metadata, compare all checksums, per-artifact signature skip. Test plan
🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
gnodet
force-pushed
the
security/deploy-integrity-fail-closed
branch
from
9ebd6b1 to
fc737b1
Compare
Co-Authored-By: Claude Opus 4.6 <[email protected]>
gnodet
force-pushed
the
security/deploy-integrity-fail-closed
branch
from
fc737b1 to
7b883cd
Compare
gnodet
marked this pull request as ready for review
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
Also, by checking all checksums, Resolver "lazyness" is being removed, and also may trigger extra HTTP roundtrips (think about reposes that have "optional" checksums, like Central -- not all of it has SHA512). Basically this change IMHO should then (would be logical) to trigger another change, to mark listed checksum "optional", as otherwise, "mixed reposes" (just like Central is), cannot be uniformly configured, OR, user is forced to use "least common denominator" (that is SHA1) in cases where they may be available stronger algorithms. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
So, checksums list were envisioned as:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@cstamas — thanks for the detailed review, both points are important. Let me clarify the scope of the change, because the implementation already splits the behaviour along exactly the line you're drawing: PROVIDED / REMOTE_INCLUDED checksums (
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Explanations aligns, I am okay now with PR
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Solid set of fail-closed security fixes for four audit findings (f022, f023, f029, f030). All implementations are correct and well-tested.
@since tag corrections (6 locations)All six new @since tags reference 2.0.22, but that version is already released. They must be @since 2.0.23:
BasicRepositoryConnectorConfigurationKeys.java — CONFIG_PROP_CHECKSUM_UPLOAD_FAIL_CLOSEDFileTrustedChecksumsSourceSupport.java — getTrustedMetadataChecksums + doGetTrustedMetadataChecksumsProvidedChecksumsSource.java — getProvidedMetadataChecksumsTrustedChecksumsSource.java — getTrustedMetadataChecksums + Writer.addTrustedMetadataChecksumshasSignature and isSignatureArtifact are duplicated identically in GnupgSignatureArtifactGenerator and SigstoreSignatureArtifactGenerator. Consider extracting to a shared utility to reduce maintenance risk.
validateChecksums correctly returns accepted && !rejected (all-must-match)This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying.
Claude Code on behalf of gnodet
Sorry, something went wrong.
There was an error while loading. Please reload this page.
2.0.22 is already released; new API additions must target 2.0.23. Co-Authored-By: Claude Opus 4.6 <[email protected]>
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.