GeezerVison is showing github.com — fix: harden opt-in transport and lock backends against unauthenticated infrastructure by gnodet · Pull Request #2086 · apache/maven-resolver
Conversation
Summary
Fixes 4 findings from the maven-resolver security audit (scan-maven-resolver-20260811):
| Finding |
Severity |
Description |
| f031 |
MEDIUM |
Plaintext minio+http/s3+http repositories evade external:http:* blocking |
| f032 |
MEDIUM |
Default-config Hazelcast member in build JVM accepts unauthenticated LAN peers |
| f033 |
MEDIUM |
Redis lock backend trusted unconditionally over unauthenticated plaintext |
| f034 |
LOW |
Swapped ConfigUtils.getString args ignore bucket config, misroute artifacts |
Root cause: Three opt-in modules place infrastructure that gates local-repository integrity outside every defense the platform otherwise applies: MinIO plaintext evades external:http:*, Hazelcast boots with no auth on defaults, Redis accepts any plaintext address.
Fix: Make enabling insecure backends a loud, deliberate act: refuse plaintext without opt-in, fail fast without explicit config, document trust boundary.
Test plan
- Existing tests pass
- MinIO plaintext rejection tested
- Hazelcast fail-fast without config tested
- Redis plaintext refusal tested
- ConfigUtils.getString arg order fixed and unit tested
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well-structured security hardening that correctly guards all three opt-in backends (Hazelcast, Redisson, Minio) against unauthenticated infrastructure defaults. Each backend follows a "fail closed" philosophy appropriate to its role.
@since tag corrections (2 locations)
RedissonNamedLockFactorySupport.java line 72: @since 2.0.22 → @since 2.0.23
MinioTransporterConfigurationKeys.java line 67: @since 2.0.22 → @since 2.0.23
Bonus bugfix
FixedBucketObjectNameMapperFactory.java: The ConfigUtils.getString arguments were swapped — the config property name was used as the default value and vice versa, so unconfigured builds would use the literal string "aether.transport.minio.fixedBucketName" as the bucket name instead of "maven". This is a genuine pre-existing bug fix. Consider separating into its own commit for cleaner backport tracking.
Positive observations
- Redisson guard correctly allows loopback addresses for local dev
- Minio guard takes a stricter stance by refusing even loopback HTTP (justified:
minio+http/s3+http bypasses external:http:* mirror blocking)
isInsecureRemoteAddress handles TLS (rediss://), IPv4/IPv6 loopback, and fails closed on unparseable URIs
httpOvertake path correctly unguarded — when operator explicitly raises Minio priority, the repo IS subject to mirror blocking
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, with one note for the record: Hazelcast locking is "frozen", is deprecated, should not be used, and is just waiting for Resolver 2.1.x to be dropped
Sorry, something went wrong.
Uh oh!
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]>
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
cstamas
cstamas approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|