GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@gnodet

@gnodet gnodet commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions
@gnodet
gnodet force-pushed the security/optin-backend-hardening branch from 73a2f23 to a179bde Compare August 30, 2026 19:33
@gnodet @claude
fix: harden opt-in backend defaults for Minio, Hazelcast, and Redisson
068979b
Co-Authored-By: Claude Opus 4.6 <[email protected]>
@gnodet
gnodet force-pushed the security/optin-backend-hardening branch from a179bde to 068979b Compare August 30, 2026 20:00
@gnodet
ci: retrigger Jenkins
c7b4fbb
@gnodet
gnodet marked this pull request as ready for review August 31, 2026 05:20
@gnodet
gnodet requested a review from cstamas August 31, 2026 05:20
@gnodet gnodet added bug Something isn't working priority:major Major loss of function labels Aug 31, 2026
@gnodet gnodet added this to the 2.0.23 milestone Aug 31, 2026
gnodet
gnodet commented Aug 31, 2026
View reviewed changes

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor Author

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.

All reactions
cstamas
cstamas approved these changes Aug 31, 2026
View reviewed changes

@cstamas cstamas left a comment

Copy link
Copy Markdown
Member

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.

All reactions
@gnodet gnodet mentioned this pull request Aug 31, 2026
fix: atomic file publication and authenticated IPC lock daemon #2083
Merged
4 tasks
@gnodet @claude
fix: correct @SInCE tags from 2.0.22 to 2.0.23
cbb0808
2.0.22 is already released; new API additions must target 2.0.23.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
cstamas
cstamas approved these changes Aug 31, 2026
View reviewed changes
slachiewicz
slachiewicz approved these changes Aug 31, 2026
View reviewed changes
@cstamas
cstamas merged commit e67ad9f into master Aug 31, 2026
24 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@cstamas
cstamas deleted the security/optin-backend-hardening branch August 31, 2026 10:56
@github-actions github-actions Bot assigned cstamas Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cstamas cstamas cstamas approved these changes
@slachiewicz slachiewicz slachiewicz approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@cstamas cstamas

Labels

bug Something isn't working priority:major Major loss of function

Projects

None yet

Milestone

2.0.23

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@gnodet @cstamas @slachiewicz
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.