Skip to content

feat(storage): add a path style setting to the s3 storage - #1188

Merged
TheMeinerLP merged 4 commits into
mainfrom
feat/s3-path-style-setting
Nov 23, 2026
Merged

TheMeinerLP merged 4 commits into
mainfrom
feat/s3-path-style-setting

Conversation

@TheMeinerLP

Copy link
Copy Markdown

Description

Operators of MinIO and other S3-compatible servers needed path-style addresses, but the only switch was a JVM property that applies to every repository of the process and is invisible in the settings form. This adds an optional pathStyleAccess field to the S3 storage settings. When it is set it decides for that repository; when it is unset the existing property decides, exactly as before. Old settings files read as unset, so nothing changes for existing installations.

Implements task groups 2 and 3 of the add-s3-path-style-setting change.

Type of change

  • feat - new feature

How was this tested?

  • ./gradlew :reposilite-backend:test --tests 'com.reposilite.storage.s3.*' (new S3PathStyleAccessTest covers the four precedence cases and the old-document round trip; existing S3 tests pass unedited)

Checklist

  • Commit messages follow the Conventional Commits convention documented in CLAUDE.md
  • Tests cover the change
  • ./gradlew build passes locally (targeted S3 tests only; CI runs the rest)
  • Documentation and configuration samples are updated if the change is user-facing
  • Existing copyright headers are preserved; new files carry the appropriate header
  • No credentials, tokens or personal data are included in the diff

@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Test results

  746 files    746 suites   9m 30s ⏱️
5 988 tests 5 976 ✅ 12 💤 0 ❌
6 051 runs  6 039 ✅ 12 💤 0 ❌

Results for commit 4b87746.

♻️ This comment has been updated with latest results.

@github-actions

This comment has been minimized.

2 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

The per-repository setting decides when it is set and the JVM property
decides when it is not. An old document without the field stays unset.

Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
Path-style addresses are a property of one bucket, yet only a
process-wide JVM property switched them on. A repository can now set
pathStyleAccess itself; when it is unset the property still decides, so
existing installations behave as before.

Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
…emas

The maven schema goldens hold the S3 settings of the served schema.
The new optional pathStyleAccess setting adds exactly one nullable
boolean property there and changes nothing else, so both goldens gain
that property. An old settings document still loads and writes no
value for it.

Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
@TheMeinerLP
TheMeinerLP force-pushed the feat/s3-path-style-setting branch from 462e311 to 4b87746 Compare November 23, 2026 02:04
@TheMeinerLP
TheMeinerLP added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 39f9022 Nov 23, 2026
42 checks passed
@TheMeinerLP
TheMeinerLP deleted the feat/s3-path-style-setting branch November 23, 2026 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant