mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #176] [MERGED] Support configurable S3 addressing style #228
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#228
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/176
Author: @guozy18
Created: 8/17/2026
Status: ✅ Merged
Merged: 8/19/2026
Merged by: @yingdi-shan
Base:
main← Head:feat/oss-addressing-style📝 Commits (1)
b7dcd59feat(oss): support configurable S3 addressing style📊 Changes
16 files changed (+289 additions, -11 deletions)
View changed files
📝
config/default.toml(+3 -0)📝
crates/e2e-tests/tests/snapshot_oss_e2e_test.rs(+1 -0)📝
crates/object-store-operator/src/operator.rs(+1 -1)📝
docs/src/configuration/reference.md(+13 -0)📝
docs/src/getting-started/on-demand-loading.md(+5 -0)📝
src/cfg.rs(+15 -0)📝
src/setup/deps.rs(+23 -2)📝
src/snapshot/image_export/service.rs(+1 -0)📝
src/snapshot/repository/backends/oss/client.rs(+56 -1)📝
src/snapshot/repository/backends/oss/config.rs(+16 -3)📝
src/snapshot/repository/backends/oss/mod.rs(+1 -0)📝
src/snapshot/repository/backends/oss/repository.rs(+1 -0)📝
storage/overlaybd/src/backend/oss.rs(+46 -4)📝
storage/overlaybd/src/config.rs(+12 -0)➕
storage/overlaybd/tests/oss_addressing_style.rs(+93 -0)📝
storage/overlaybd/tests/oss_backend_minio.rs(+2 -0)📄 Description
Summary
Add an optional OSS/S3 bucket addressing-style override and propagate it through both snapshot data paths.
Motivation
The existing OSS backend chooses the addressing style from the endpoint:
Some S3-compatible providers require or prefer virtual-host addressing but cannot be identified reliably by the endpoint heuristic. Without an explicit override, those providers may generate invalid requests.
This change allows users to explicitly select the required addressing style.
Changes
backend.oss.addressing_styleconfiguration:virtualpathossConfig.defaultAddressingStyle.Hostheader.Configuration example
When
addressing_styleis omitted, the existing endpoint-based detection remains unchanged.Backward compatibility
Existing configurations do not require any migration.
The default behavior is preserved:
This change does not modify Prometheus metrics or the
/metricsendpoints.Validation
The following checks pass locally:
cargo fmt --all -- --checkgit diff --checkcargo test -p object-store-operatorcargo clippy -p object-store-operator --all-targets -- -D warningsThe full AgentENV and OverlayBD test suites require a Linux environment. They could not be run locally on macOS because the workspace's
io-uringdependency uses Linux-only libc symbols. Linux CI is required for the full workspace verification.Relationship to #23
This PR supersedes #23.
The original requirement and initial implementation were proposed by @davidmyriel in #23. Thank you for that work and for the original motivation behind the change.
This PR carries the same behavior forward on top of the current
mainbranch, with a refreshed implementation, focused regression tests, and updated documentation. The current implementation was reorganized to fit the latest codebase while preserving the original user-facing intent.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.