Skip to content

[DND-1447] Migrate s3proxy-chart to S3Proxy 4.x (jclouds-free) - #43

Merged
CRThaze merged 6 commits into
mainfrom
CRThaze/DND-1447/s3proxy-4x-migration
Oct 29, 2026
Merged

CRThaze merged 6 commits into
mainfrom
CRThaze/DND-1447/s3proxy-4x-migration

Conversation

@CRThaze

@CRThaze CRThaze commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Chart 0.5.0 -> 1.0.0, appVersion 3.3.0 -> 4.1.1. S3Proxy 4.0.0 removed Apache jclouds and with it the Atmos and B2 backends. Each remaining backend has one SDK/NIO2 implementation under its plain provider name; the -sdk/-nio2 names are now deprecated aliases (BlobStores.resolveProviderAlias).

Rendered jclouds.provider with every backend enabled:

-jclouds.provider=filesystem-nio2
-jclouds.provider=transient-nio2
-jclouds.provider=aws-s3                  # jclouds on 3.3.0
-jclouds.provider=azureblob-sdk
-jclouds.provider=google-cloud-storage    # jclouds on 3.3.0
-jclouds.provider=openstack-swift         # jclouds on 3.3.0
+jclouds.provider=filesystem
+jclouds.provider=transient
+jclouds.provider=aws-s3                  # AWS SDK
+jclouds.provider=azureblob               # Azure SDK
+jclouds.provider=google-cloud-storage    # Google SDK
+jclouds.provider=openstack-swift         # openstack4j

config.backends values (the breaking part, hence the major bump):

 s3:
-  aws
+  keyless             # empty identity/credential -> AWS default chain (IRSA, Pod Identity, instance profile)
 azureblob:
-  provider
-  regions             # the 4.x Azure store takes no region
 filesystem / transient:
-  nio2
 googleCloudStorage:
-  clientEmail
-  privateKey.*
+  serviceAccountKey.* # full JSON key; mounted, escaped by the init container into jclouds.credential
+  endpoint            # jclouds.endpoint, e.g. a fake-gcs-server emulator
 openstackSwift:
-  tenantName
+  projectName         # identity is now the bare username; project/domains go in openstack-swift-sdk.*
+  projectDomainName
+  userDomainName
-b2.*                  # removed upstream in 4.0.0
-rackspaceCloudfiles.* # jclouds-only, removed upstream in 4.0.0

Also:

  • The render guard is flipped: it fails when the effective S3Proxy version (image.tag, else appVersion) is semver and < 4.0.0. Non-semver tags (master, sha-*) skip it. Chart 0.x remains the line for S3Proxy 3.x.
  • Azure sasToken is now sent as jclouds.session-token, which 4.x reads. The old jclouds.azureblob.sas key is read by no S3Proxy release, so SAS auth never worked before this. sasToken.existingSecret now also conflicts with managedIdentity.
  • Keyless GCS (Workload Identity / ADC) is not supported by S3Proxy 4.1.1: an empty credential selects NoCredentials (emulator only). This is documented, and the chart has no keyless toggle for GCS. The upstream fix is tracked in DND-2024.
  • README.md.gotmpl, override-values.example.yaml, values.yaml # -- docs, test-values/, and both CI matrices are updated. README.md is left to the release workflow.

Functional CI (kind):

 functional-test legs
   s3, multi-backend            # MinIO mock
-                               #   quay.io/minio/minio (now 401 to anonymous pulls, so main fails too)
+                               #   cgr.dev/chainguard/minio, pinned by digest
   azureblob, azureblob-existing-secret
+  azureblob-managed-identity   # keyless Azure, see below
+  gcs                          # fake-gcs-server 1.56.1 via googleCloudStorage.endpoint
   filesystem, transient, tls, auth-existing-secret

azureblob-managed-identity checks the chart's keyless Azure path end to end:

chart: managedIdentity=true  ->  jclouds.identity= / jclouds.credential=
S3Proxy Azure SDK  ->  DefaultAzureCredential
  managed-identity source (IDENTITY_ENDPOINT/IDENTITY_HEADER)  ->  token stub  ->  unsigned JWT
  bearer token over HTTPS  ->  Azurite --oauth basic (checks iss/aud/lifetime, rejects anonymous)

Failure diagnostics now also print the mock pods' logs.

Evidence

  • Before: on chart 0.5.0 with a keyless S3 config, the aws-s3 provider runs on jclouds, whose startup check requires jclouds.identity/jclouds.credential (Main in 3.3.0), so S3Proxy exits on startup. Azure SAS renders jclouds.azureblob.sas, which is never read.
    After: with s3.keyless=true, the chart renders empty jclouds.identity=/jclouds.credential=, and AwsS3SdkBlobStore falls back to DefaultCredentialsProvider. Azure SAS renders jclouds.session-token=....
  • Each property was checked against the upstream source (BlobStores, Main.createBlobStore, the per-backend stores) at s3proxy-4.1.1. BlobStores.java and Main.java are unchanged on master (4.2.0-SNAPSHOT, 2026-10-02).
  • CI is green: 27/27 checks, including every functional leg. The s3/multi-backend legs exercise the AWS SDK store, azureblob-managed-identity the keyless Azure path, and gcs the Google SDK store.
  • Local runs, with the exact properties and env vars the chart renders against S3Proxy 4.1.1:
    • GCS: the round-trip to fake-gcs-server works, and the object appears in the emulator's own API.
    • Azure managed identity: the round-trip works, and the stub logged GET /msi/token?api-version=2019-08-01&resource=https://storage.azure.com.
    • Negative control: the same Azure setup without IDENTITY_ENDPOINT fails with InternalError, and Azurite answers 403 to an anonymous container create.
  • helm lint is clean, and all 24 test-values/ and ci/functional/values/ profiles render. The guard on image.tag=3.3.0 fails with: targets S3Proxy >= 4.0.0 (jclouds removed in 4.0.0), but the effective S3Proxy version is 3.3.0.
  • Still needs a real cloud: aws-s3 with static keys and keyless, GCS with a service-account key, Swift, and Azure SAS. No emulator checks those auth paths.

Merge Danger

Door: two-way

Released charts are immutable OCI tags, so 0.5.0 stays installable, and reverting the merge restores the 0.x line.

Blast Radius: upgraders

Anyone moving to 1.0.0 must rewrite the removed values above. b2 and Rackspace users have no 4.x path and should stay on 0.x. The guard rejects a 3.x image.tag at render time, not at runtime. If Renovate's Dependency Dashboard offers the s3proxy 3.3.0 -> 4.x major, don't tick it: this PR replaces it. main's functional tests fail on the MinIO pull until this merges.

Ticket: DND-1447

S3Proxy 4.0.0 removed Apache jclouds and collapsed each backend to a single
native/SDK implementation selected by its plain name, dropping the Atmos/B2
backends and the -sdk/-nio2 name variants. This is a breaking major release
(chart 1.0.0, appVersion 4.1.1) targeting S3Proxy >= 4.0.0.

- Providers pinned to canonical names; drop the aws:/nio2:/azureblob.provider
  toggles and the azureblob.regions field (unused by the 4.x Azure SDK store).
- Keyless auth for S3 (s3.keyless -> AWS default credential chain) and Azure
  (existing managedIdentity). GCS stays static-key only: the 4.x GCS SDK maps
  identity->project id and credential->the service-account JSON key, and an
  empty credential selects an emulator client, not ADC.
- GCS credential is the full JSON key, merged from a mounted file and escaped
  to one properties value by the init container (kept out of the ConfigMap).
- OpenStack Swift rewritten for the openstack4j SDK: bare-username identity plus
  openstack-swift-sdk.project-name/.project-domain-name/.user-domain-name/.region.
- Remove the b2 and rackspaceCloudfiles backends (jclouds-only). Rackspace is
  Swift-compatible; configure it via openstackSwift.
- Render guard flipped: fail if the effective S3Proxy version is < 4.0.0.
- Docs, override example, NOTES, test-values and CI render/functional matrices
  updated; b2/rackspace test-values removed.
No S3Proxy release reads jclouds.azureblob.sas, so sasToken never took
effect. 4.x reads a SAS token from jclouds.session-token and prefers it
over an account key. Also reject sasToken.existingSecret alongside
managedIdentity, since a session token now overrides DefaultAzureCredential.
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

quay.io/minio/minio now answers 401 to anonymous pulls, as Docker Hub
already did, so the s3 and multi-backend legs fail at ImagePullBackOff.
cgr.dev/chainguard/minio pulls anonymously and takes the same args and
health path; pinned by digest because only :latest is free.
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@CRThaze
CRThaze marked this pull request as ready for review October 29, 2026 14:43
…tional leg

googleCloudStorage.endpoint renders jclouds.endpoint, so the GCS backend
can target an emulator. The new gcs leg round-trips through S3Proxy into
fake-gcs-server 1.56.1, the emulator upstream's own GCS lane uses. With no
key the GCS SDK sends unauthenticated requests, which the emulator accepts.

Also correct the workflow header: GCS against an emulator needs no key,
and Swift has an emulator (openstackswift/saio), just no leg yet.
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

The fake-gcs Service injects FAKE_GCS_PORT=tcp://<ip>:4443 into the pod,
which fake-gcs-server parses as its port setting and exits on.
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

With managedIdentity the chart renders empty identity/credential, so the
Azure SDK falls back to DefaultAzureCredential. The leg points its
managed-identity source at a stub token endpoint (the App Service
IDENTITY_ENDPOINT contract) and runs Azurite with --oauth basic over
HTTPS, which checks the token's issuer, audience and lifetime. Azurite
rejects anonymous requests, so the round-trip passes only through the
token. The S3Proxy JVM trusts Azurite's self-signed cert through a PKCS12
truststore in JAVA_TOOL_OPTIONS.

Failure diagnostics now include the mock pods' logs.
@github-actions

Copy link
Copy Markdown

📝 README.md Preview

The following changes to README.md will be applied when this PR is merged:

Click to expand diff
diff --git a/README.md b/README.md
index 8c70fb0..68a2cc6 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 # s3proxy
 
-![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.3.0](https://img.shields.io/badge/AppVersion-3.3.0-informational?style=flat-square)
+![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 4.1.1](https://img.shields.io/badge/AppVersion-4.1.1-informational?style=flat-square)
 
 A Helm chart for deploying S3Proxy - Access other storage backends via the S3 API
 
@@ -18,20 +18,19 @@ A Helm chart for deploying S3Proxy - Access other storage backends via the S3 AP
 
 ## S3Proxy version compatibility
 
-The chart tracks S3Proxy (`andrewgaul/s3proxy`) through `appVersion` (currently `3.3.0`); override it with `image.tag`. Minimum supported version is `2.7.0`.
+Chart `1.x` targets **S3Proxy 4.x** (`appVersion` currently `4.1.1`; override with `image.tag`). Minimum supported version is `4.0.0`.
 
-S3Proxy `3.0.0` deprecated the Apache jclouds storage backends (`s3`, `aws-s3`, `azureblob`, `filesystem`, `transient`) in favor of SDK / NIO2 providers. Upstream has announced that `3.3.0` is the last release to bundle jclouds and that future releases "will lack its Atmos and B2 storage backends" (no jclouds-free release has shipped yet; `3.3.0` remains the latest). The jclouds providers still work on 3.x, but are deprecated:
+S3Proxy `4.0.0` removed Apache jclouds and, with it, the Atmos and B2 backends and the `-sdk` / `-nio2` provider-name variants. Each backend now has a single native/SDK implementation selected by its plain name — `filesystem`, `transient`, `aws-s3`, `azureblob`, `google-cloud-storage`, `openstack-swift` — so the chart no longer exposes the `aws:` / `nio2:` / `azureblob.provider` toggles.
 
-- `filesystem` / `transient`: already default to the non-deprecated `*-nio2` variants (`nio2: true`).
-- `azureblob`: **defaults to `provider: azureblob-sdk`** (the Azure SDK provider, which signs correctly against custom endpoints such as Azurite). The legacy jclouds `azureblob` provider is deprecated and mis-signs against custom endpoints; set `provider: azureblob` only if you specifically need it. On real Azure, `azureblob-sdk` may require `config.backends.azureblob.regions` for bucket creation. For AKS Managed/Workload Identity (no static key), set `config.backends.azureblob.managedIdentity: true` — see "Example 3b" below.
-- `s3`, `googleCloudStorage`, `openstackSwift`: SDK providers exist upstream (`aws-s3-sdk`, `google-cloud-storage-sdk`, `openstack-swift-sdk`). `rackspaceCloudfiles` is OpenStack-Swift-compatible and may be served by `openstack-swift-sdk`. Migrating the chart defaults to the SDK providers is tracked separately.
-- `b2` (and Atmos, if ever added) are jclouds-only with **no SDK successor**. These are the backends upstream has said future releases will drop.
+- **`filesystem` / `transient`** — the NIO2 implementations (no toggle).
+- **`s3`** — the `aws-s3` AWS SDK provider; serves AWS or any S3-compatible endpoint (set `endpoint`). Supports **keyless** auth: leave `accessKeyID`/`secretAccessKey` empty and set `s3.keyless: true` to use the AWS default credential chain (IRSA / EKS Pod Identity / EC2 instance profile).
+- **`azureblob`** — the Azure SDK; supports Managed/Workload Identity via `azureblob.managedIdentity: true` (no static key) — see "Example 3b".
+- **`googleCloudStorage`** — the Google SDK; a static service-account JSON key is required (`serviceAccountKey.value` / `.existingSecret`). **Keyless GCS (Workload Identity/ADC) is not supported by S3Proxy 4.x** — an empty credential selects an unauthenticated (emulator-only) client, not ADC.
+- **`openstackSwift`** — the openstack4j SDK (Keystone v3); set `projectName` and, if non-default, `projectDomainName` / `userDomainName`.
 
-### Our compatibility plan
+Removed in chart `1.x`: the `b2` and `rackspaceCloudfiles` backends (jclouds-only, dropped upstream). Rackspace Cloud Files is OpenStack-Swift-compatible — configure it via the `openstackSwift` backend.
 
-- **Through S3Proxy `3.3.0` (chart `0.x`):** all current backends, including the jclouds-only `b2`, are supported. This is where the chart sits today.
-- **Guardrail:** the chart **hard-fails at render time** if `b2` (or `atmos`) is enabled while the effective S3Proxy version (`image.tag`, else `appVersion`) is greater than `3.3.0`, so an upgrade past the jclouds sunset cannot silently ship a broken backend. Pin `image.tag` to `3.3.0` or earlier, or disable the backend.
-- **When S3Proxy ships its first jclouds-free release:** the chart moves to `1.x.x` (major bump), migrates the remaining backends to their SDK providers, and drops `b2`/`atmos`. Tracked in the SDK-migration follow-up.
+- **Guardrail:** the chart **hard-fails at render time** if the effective S3Proxy version (`image.tag`, else `appVersion`) parses as semver and is older than `4.0.0`, so it cannot render a 4.x-only config against a 3.x image. Use chart `0.x` for S3Proxy 3.x.
 
 ## Installation
 
@@ -141,7 +140,7 @@ The following section lists the configurable parameters of the s3proxy chart and
 		</tr>
 		<tr>
 			<td><code>config.backends.azureblob.enabled</code></td>
-			<td>Enable Azure Blob Storage backend</td>
+			<td>Enable Azure Blob Storage backend (provider <code>azureblob</code>, Azure SDK)</td>
 			<td><code>bool</code></td>
 			<td><code>false</code></td>
 		</tr>
@@ -177,22 +176,10 @@ The following section lists the configurable parameters of the s3proxy chart and
 		</tr>
 		<tr>
 			<td><code>config.backends.azureblob.managedIdentity</code></td>
-			<td>Use Azure Managed/Workload Identity instead of a static account key or SAS token. Requires <code>provider: azureblob-sdk</code>; mutually exclusive with <code>key.<i></code> and <code>sasToken.</i></code>. When true the chart renders both <code>jclouds.identity</code> and <code>jclouds.credential</code> empty, which makes azureblob-sdk fall back to Azure's <code>DefaultAzureCredential</code> (consuming the AKS workload-identity env <code>AZURE_CLIENT_ID</code>/<code>AZURE_TENANT_ID</code>/<code>AZURE_FEDERATED_TOKEN_FILE</code>). Set <code>account</code> (or <code>endpoint</code>) for the storage endpoint, annotate the ServiceAccount with <code>azure.workload.identity/client-id</code> (<code>serviceAccount.annotations</code>) and label the pod <code>azure.workload.identity/use: "true"</code> (<code>podLabels</code>).</td>
+			<td>Use Azure Managed/Workload Identity instead of a static account key or SAS token. Mutually exclusive with <code>key.<i></code> and <code>sasToken.</i></code>. When true the chart renders both <code>jclouds.identity</code> and <code>jclouds.credential</code> empty, which makes the Azure SDK fall back to <code>DefaultAzureCredential</code> (consuming the AKS workload-identity env <code>AZURE_CLIENT_ID</code>/<code>AZURE_TENANT_ID</code>/<code>AZURE_FEDERATED_TOKEN_FILE</code>). Set <code>account</code> (or <code>endpoint</code>) for the storage endpoint, annotate the ServiceAccount with <code>azure.workload.identity/client-id</code> (<code>serviceAccount.annotations</code>) and label the pod <code>azure.workload.identity/use: "true"</code> (<code>podLabels</code>).</td>
 			<td><code>bool</code></td>
 			<td><code>false</code></td>
 		</tr>
-		<tr>
-			<td><code>config.backends.azureblob.provider</code></td>
-			<td>Provider type. Defaults to <code>azureblob-sdk</code> (Azure SDK): it signs correctly against custom endpoints (Azurite, Azure Gov/China, private endpoints) and is the non-deprecated provider on S3Proxy 3.x. The legacy jclouds <code>azureblob</code> provider is deprecated upstream and mis-signs against custom endpoints; on real Azure <code>azureblob-sdk</code> may require <code>regions</code> to be set for bucket creation.</td>
-			<td><code>string</code></td>
-			<td><code>"azureblob-sdk"</code></td>
-		</tr>
-		<tr>
-			<td><code>config.backends.azureblob.regions</code></td>
-			<td>jclouds region(s) for the backend, emitted as <code>jclouds.regions=</code>. The azureblob-sdk provider requires this on real Azure to create buckets (without it <code>aws s3 mb</code> fails with InvalidLocationConstraint / "no jclouds.regions configured"). Comma-separated for multiple. Not needed against Azurite. Leave empty to omit.</td>
-			<td><code>string</code></td>
-			<td><code>""</code></td>
-		</tr>
 		<tr>
 			<td><code>config.backends.azureblob.sasToken</code></td>
 			<td>SAS token configuration</td>
@@ -217,48 +204,6 @@ The following section lists the configurable parameters of the s3proxy chart and
 			<td><code>string</code></td>
 			<td><code>""</code></td>
 		</tr>
-		<tr>
-			<td><code>config.backends.b2.account</code></td>
-			<td>B2 account ID</td>
-			<td><code>string</code></td>
-			<td><code>""</code></td>
-		</tr>
-		<tr>
-			<td><code>config.backends.b2.applicationKey</code></td>
-			<td>B2 application key configuration</td>
-			<td><code>object</code></td>
-			<td><code>{"existingSecret":"","secretKey":"applicationKey","value":""}</code></td>
-		</tr>
-		<tr>
-			<td><code>config.backends.b2.applicationKey.existingSecret</code></td>
-			<td>Name of existing secret containing the application key</td>
-			<td><code>string</code></td>
-			<td><code>""</code></td>
-		</tr>
-		<tr>
-			<td><code>config.backends.b2.applicationKey.secretKey</code></td>
-			<td>Key in the existing secret containing the application key</td>
-			<td><code>string</code></td>
-			<td><code>"applicationKey"</code></td>
-		</tr>
-		<tr>
-			<td><code>config.backends.b2.applicationKey.value</code></td>
-			<td>Application key value</td>
-			<td><code>string</code></td>
-			<td><code>""</code></td>
-		</tr>
-		<tr>
-			<td><code>config.backends.b2.bucketLocators</code></td>
-			<td>Buckets routed to this backend (S3Proxy bucket-locator; glob patterns supported). Only relevant when multiple backends are enabled; a bucket matching no backend's list falls through to the first-enabled backend.</td>
-			<td><code>list</code></td>
-			<td><code>[]</code></td>
-		</tr>
-		<tr>
-			<td><code>config.backends.b2.enabled</code></td>
-			<td>Enable Backblaze B2 backend</td>
-			<td><code>bool</code></td>
-			<td><code>false</code></td>
-		</tr>
 		<tr>
 			<td><code>config.backends.filesystem.basedir</code></td>
 			<td>Base directory for filesystem backend</td>
@@ -273,79 +218,73 @@ The following section lists the configurable parameters of the s3proxy chart and
 		</tr>
 		<tr>
 			<td><code>config.backends.filesystem.credential</code></td>
-			<td>jclouds credential. S3Proxy requires jclouds.credential in every backend properties file; the filesystem backend ignores the value. An empty value falls back to "local".</td>
+			<td>jclouds credential placeholder. S3Proxy requires jclouds.credential in every backend properties file; the filesystem backend ignores the value. An empty value falls back to "local".</td>
 			<td><code>string</code></td>
 			<td><code>"local"</code></td>
 		</tr>
 		<tr>
 			<td><code>config.backends.filesystem.enabled</code></td>
-			<td>Enable filesystem backend</td>
+			<td>Enable filesystem backend (provider <code>filesystem</code>, NIO2-backed in S3Proxy 4.x)</td>
 			<td><code>bool</code></td>
 			<td><code>true</code></td>
 		</tr>
 		<tr>
 			<td><code>config.backends.filesystem.identity</code></td>
-			<td>jclouds identity. S3Proxy requires jclouds.identity in every backend properties file; the filesystem backend ignores the value, so the "local" placeholder is fine. An empty value falls back to "local".</td>
+			<td>jclouds identity placeholder. S3Proxy requires jclouds.identity in every backend properties file; the filesystem backend ignores the value. An empty value falls back to "local".</td>
 			<td><code>string</code></td>
 			<td><code>"local"</code></td>
 		</tr>
-		<tr>
-			<td><code>config.backends.filesystem.nio2</code></td>
-			<td>Use NIO2 implementation (filesystem-nio2) instead of standard filesystem</td>
-			<td><code>bool</code></td>
-			<td><code>true</code></td>
-		</tr>
 		<tr>
 			<td><code>config.backends.googleCloudStorage.bucketLocators</code></td>
 			<td>Buckets routed to this backend (S3Proxy bucket-locator; glob patterns supported). Only relevant when multiple backends are enabled; a bucket matching no backend's list falls through to the first-enabled backend.</td>
 			<td><code>list</code></td>
 			<td><code>[]</code></td>
 		</tr>
-		<tr>
-			<td><code>config.backends.googleCloudStorage.clientEmail</code></td>
-			<td>Service account email or user email</td>
-			<td><code>string</code></td>
-			<td><code>""</code></td>
-		</tr>
 		<tr>
 			<td><code>config.backends.googleCloudStorage.enabled</code></td>
-			<td>Enable Google Cloud Storage backend</td>
+			<td>Enable Google Cloud Storage backend (provider <code>google-cloud-storage</code>, Google SDK)</td>
 			<td><code>bool</code></td>
 			<td><code>false</code></td>
 		</tr>
 		<tr>
-			<td><code>config.backends.googleCloudStorage.privateKey</code></td>
-			<td>Private key configuration</td>
-			<td><code>object</code></td>
-			<td><code>{"existingSecret":"","secretKey":"private.key","value":""}</code></td>
+			<td><code>config.backends.googleCloudStorage.endpoint</code></td>
+			<td>Custom GCS endpoint (<code>jclouds.endpoint</code>), e.g. a fake-gcs-server emulator. Empty uses <code>https://storage.googleapis.com</code>. An emulator needs no <code>serviceAccountKey</code>: with no key the SDK sends unauthenticated requests.</td>
+			<td><code>string</code></td>
+			<td><code>""</code></td>
 		</tr>
 		<tr>
-			<td><code>config.backends.googleCloudStorage.privateKey.existingSecret</code></td>
-			<td>Name of existing secret containing the private key</td>
+			<td><code>config.backends.googleCloudStorage.projectID</code></td>
+			<td>GCP project ID, emitted as <code>jclouds.identity</code> (the GCS SDK store reads it as the project id). Optional: when empty the project is taken from the service-account key.</td>
 			<td><code>string</code></td>
 			<td><code>""</code></td>
 		</tr>
 		<tr>
-			<td><code>config.backends.googleCloudStorage.privateKey.secretKey</code></td>
-			<td>Key in the existing secret containing the private key (in PEM format)</td>
-			<td><code>string</code></td>
-			<td><code>"private.key"</code></td>
+			<td><code>config.backends.googleCloudStorage.serviceAccountKey</code></td>
+			<td>Service-account key configuration. The full JSON key is passed to the GCS SDK as <code>jclouds.credential</code> (<code>ServiceAccountCredentials.fromStream</code>). NOTE: S3Proxy 4.x does NOT support keyless GCS (Workload Identity/ADC) — an empty credential selects an unauthenticated (emulator-only) client, not ADC — so a static key is required against real GCS.</td>
+			<td><code>object</code></td>
+			<td><code>{"existingSecret":"","secretKey":"key.json","value":""}</code></td>
 		</tr>
 		<tr>
-			<td><code>config.backends.googleCloudStorage.privateKey.value</code></td>
-			<td>Private key value (in PEM format)</td>
+			<td><code>config.backends.googleCloudStorage.serviceAccountKey.existingSecret</code></td>
+			<td>Name of an existing Secret holding the service-account JSON key</td>
 			<td><code>string</code></td>
 			<td><code>""</code></td>
 		</tr>
 		<tr>
-			<td><code>config.backends.googleCloudStorage.projectID</code></td>
-			<td>GCP project ID</td>
+			<td><code>config.backends.googleCloudStorage.serviceAccountKey.secretKey</code></td>
+			<td>Key within the Secret that holds the JSON key</td>
+			<td><code>string</code></td>
+			<td><code>"key.json"</code></td>
+		</tr>
+		<tr>
+			<td><code>config.backends.googleCloudStorage.serviceAccountKey.value</code></td>
+			<td>Inline service-account JSON key content, stored in the chart-owned Secret and mounted as a file the initContainer merges into the backend properties (kept out of the ConfigMap). Used only when <code>existingSecret</code> is empty.</td>
 			<td><code>string</code></td>
 			<td><code>""</code></td>
 		</tr>
 		<tr>
 			<td><code>config.backends.openstackSwift.authURL</code></td>
-			<td>Authentication URL</td>
+			<td>Keystone authentication URL (<code>jclouds.endpoint</code>)</td>
 			<td><code>string</code></td>
 			<td><code>""</code></td>
 		</tr>
@@ -357,7 +296,7 @@ The following section lists the configurable parameters of the s3proxy chart and
 		</tr>
 		<tr>
 			<td><code>config.backends.openstackSwift.enabled</code></td>
-			<td>Enable OpenStack Swift backend</td>
+			<td>Enable OpenStack Swift backend (provider <code>openstack-swift</code>, openstack4j SDK, Keystone v3)</td>
 			<td><code>bool</code></td>
 			<td><code>false</code></td>
 		</tr>
@@ -386,83 +325,41 @@ The following section lists the configurable parameters of the s3proxy chart and
 			<td><code>""</code></td>
 		</tr>
 		<tr>
-			<td><code>config.backends.openstackSwift.region</code></td>
-			<td>Region</td>
+			<td><code>config.backends.openstackSwift.projectDomainName</code></td>
+			<td>Keystone domain that owns the project (<code>openstack-swift-sdk.project-domain-name</code>)</td>
 			<td><code>string</code></td>
-			<td><code>""</code></td>
+			<td><code>"Default"</code></td>
 		</tr>
 		<tr>
-			<td><code>config.backends.openstackSwift.tenantName</code></td>
-			<td>Tenant name</td>
+			<td><code>config.backends.openstackSwift.projectName</code></td>
+			<td>Keystone project (tenant) name to scope the token to (<code>openstack-swift-sdk.project-name</code>). Required: Swift is only reachable through a project-scoped token.</td>
 			<td><code>string</code></td>
 			<td><code>""</code></td>
 		</tr>
 		<tr>
-			<td><code>config.backends.openstackSwift.userName</code></td>
-			<td>Username</td>
-			<td><code>string</code></td>
-			<td><code>""</code></td>
-		</tr>
-		<tr>
-			<td><code>config.backends.rackspaceCloudfiles.apiKey</code></td>
-			<td>API key configuration</td>
-			<td><code>object</code></td>
-			<td><code>{"existingSecret":"","secretKey":"apiKey","value":""}</code></td>
-		</tr>
-		<tr>
-			<td><code>config.backends.rackspaceCloudfiles.apiKey.existingSecret</code></td>
-			<td>Name of existing secret containing the API key</td>
-			<td><code>string</code></td>
-			<td><code>""</code></td>
-		</tr>
-		<tr>
-			<td><code>config.backends.rackspaceCloudfiles.apiKey.secretKey</code></td>
-			<td>Key in the existing secret containing the API key</td>
-			<td><code>string</code></td>
-			<td><code>"apiKey"</code></td>
-		</tr>
-		<tr>
-			<td><code>config.backends.rackspaceCloudfiles.apiKey.value</code></td>
-			<td>API key value</td>
+			<td><code>config.backends.openstackSwift.region</code></td>
+			<td>Region to select from the service catalog (<code>openstack-swift-sdk.region</code>); empty selects the first/default region</td>
 			<td><code>string</code></td>
 			<td><code>""</code></td>
 		</tr>
 		<tr>
-			<td><code>config.backends.rackspaceCloudfiles.bucketLocators</code></td>
-			<td>Buckets routed to this backend (S3Proxy bucket-locator; glob patterns supported). Only relevant when multiple backends are enabled; a bucket matching no backend's list falls through to the first-enabled backend.</td>
-			<td><code>list</code></td>
-			<td><code>[]</code></td>
-		</tr>
-		<tr>
-			<td><code>config.backends.rackspaceCloudfiles.enabled</code></td>
-			<td>Enable Rackspace Cloud Files backend</td>
-			<td><code>bool</code></td>
-			<td><code>false</code></td>
-		</tr>
-		<tr>
-			<td><code>config.backends.rackspaceCloudfiles.region</code></td>
-			<td>Region (uk or us)</td>
+			<td><code>config.backends.openstackSwift.userDomainName</code></td>
+			<td>Keystone domain that owns the user (<code>openstack-swift-sdk.user-domain-name</code>)</td>
 			<td><code>string</code></td>
-			<td><code>"us"</code></td>
+			<td><code>"Default"</code></td>
 		</tr>
 		<tr>
-			<td><code>config.backends.rackspaceCloudfiles.userName</code></td>
-			<td>Username</td>
+			<td><code>config.backends.openstackSwift.userName</code></td>
+			<td>Username (<code>jclouds.identity</code>)</td>
 			<td><code>string</code></td>
 			<td><code>""</code></td>
 		</tr>
 		<tr>
 			<td><code>config.backends.s3.accessKeyID</code></td>
-			<td>S3 Access Key ID for backend</td>
+			<td>S3 Access Key ID for backend (<code>jclouds.identity</code>). Leave empty when <code>keyless: true</code>.</td>
 			<td><code>string</code></td>
 			<td><code>""</code></td>
 		</tr>
-		<tr>
-			<td><code>config.backends.s3.aws</code></td>
-			<td>Use AWS-specific S3 provider (aws-s3) instead of generic S3 provider</td>
-			<td><code>bool</code></td>
-			<td><code>true</code></td>
-		</tr>
 		<tr>
 			<td><code>config.backends.s3.bucketLocators</code></td>
 			<td>Buckets routed to this backend (S3Proxy bucket-locator; glob patterns supported). Only relevant when multiple backends are enabled; a bucket matching no backend's list falls through to the first-enabled backend.</td>
@@ -471,25 +368,31 @@ The following section lists the configurable parameters of the s3proxy chart and
 		</tr>
 		<tr>
 			<td><code>config.backends.s3.enabled</code></td>
-			<td>Enable S3 backend</td>
+			<td>Enable S3 backend (provider <code>aws-s3</code>, AWS SDK; also serves S3-compatible endpoints such as MinIO/Ceph via <code>endpoint</code>)</td>
 			<td><code>bool</code></td>
 			<td><code>false</code></td>
 		</tr>
 		<tr>
 			<td><code>config.backends.s3.endpoint</code></td>
-			<td>S3 endpoint</td>
+			<td>S3 endpoint (<code>jclouds.endpoint</code>) for an S3-compatible backend (MinIO, Ceph). Leave empty for AWS.</td>
 			<td><code>string</code></td>
 			<td><code>""</code></td>
 		</tr>
+		<tr>
+			<td><code>config.backends.s3.keyless</code></td>
+			<td>Use ambient/keyless credentials: leave <code>accessKeyID</code>/<code>secretAccessKey</code> empty and the AWS SDK default credential chain resolves IRSA / EKS Pod Identity / EC2 instance-profile creds. Mutually exclusive with <code>accessKeyID</code>/<code>secretAccessKey.*</code>.</td>
+			<td><code>bool</code></td>
+			<td><code>false</code></td>
+		</tr>
 		<tr>
 			<td><code>config.backends.s3.region</code></td>
-			<td>AWS region</td>
+			<td>AWS region (<code>jclouds.region</code>). S3Proxy defaults to <code>us-east-1</code> when empty.</td>
 			<td><code>string</code></td>
 			<td><code>""</code></td>
 		</tr>
 		<tr>
 			<td><code>config.backends.s3.secretAccessKey</code></td>
-			<td>S3 Secret Access Key configuration</td>
+			<td>S3 Secret Access Key configuration. Leave empty when <code>keyless: true</code>.</td>
 			<td><code>object</code></td>
 			<td><code>{"existingSecret":"","secretKey":"secretAccessKey","value":""}</code></td>
 		</tr>
@@ -519,28 +422,22 @@ The following section lists the configurable parameters of the s3proxy chart and
 		</tr>
 		<tr>
 			<td><code>config.backends.transient.credential</code></td>
-			<td>jclouds credential. S3Proxy requires jclouds.credential in every backend properties file; the transient backend ignores the value. An empty value falls back to "local".</td>
+			<td>jclouds credential placeholder. S3Proxy requires jclouds.credential in every backend properties file; the transient backend ignores the value. An empty value falls back to "local".</td>
 			<td><code>string</code></td>
 			<td><code>"local"</code></td>
 		</tr>
 		<tr>
 			<td><code>config.backends.transient.enabled</code></td>
-			<td>Enable transient (in-memory) backend</td>
+			<td>Enable transient (in-memory) backend (provider <code>transient</code>, NIO2-backed in S3Proxy 4.x)</td>
 			<td><code>bool</code></td>
 			<td><code>false</code></td>
 		</tr>
 		<tr>
 			<td><code>config.backends.transient.identity</code></td>
-			<td>jclouds identity. S3Proxy requires jclouds.identity in every backend properties file; the transient backend ignores the value, so the "local" placeholder is fine. An empty value falls back to "local".</td>
+			<td>jclouds identity placeholder. S3Proxy requires jclouds.identity in every backend properties file; the transient backend ignores the value. An empty value falls back to "local".</td>
 			<td><code>string</code></td>
 			<td><code>"local"</code></td>
 		</tr>
-		<tr>
-			<td><code>config.backends.transient.nio2</code></td>
-			<td>Use NIO2 implementation (transient-nio2) instead of standard transient</td>
-			<td><code>bool</code></td>
-			<td><code>true</code></td>
-		</tr>
 		<tr>
 			<td><code>config.buckets.alias</code></td>
 			<td>Map virtual bucket names to actual backend buckets</td>
@@ -906,8 +803,6 @@ config:
   backends:
     filesystem:
       enabled: true
-      nio2: true
-    filesystem:
       basedir: "/data/s3proxy"
 
 persistence:
@@ -929,17 +824,33 @@ config:
     type: "aws-v4"
     identity: "proxy-access-key"  # For clients connecting to s3proxy
     secret: "proxy-secret-key"
-  backend:
-    provider: "aws-s3"
-    awsS3:
+  backends:
+    filesystem:
+      enabled: false
+    s3:
+      enabled: true
       region: "us-west-2"
-      accessKeyID: "aws-access-key-id"  # For s3proxy to connect to AWS
-      secretAccessKey: "aws-secret-access-key"
+      accessKeyID: "aws-access-key-id"       # For s3proxy to connect to AWS
+      secretAccessKey:
+        value: "aws-secret-access-key"
 
 persistence:
   enabled: false  # Not needed for S3 backend
 ```
 
+For keyless auth on EKS (IRSA / Pod Identity) or EC2, drop the keys and set `keyless`:
+
+```yaml
+config:
+  backends:
+    filesystem:
+      enabled: false
+    s3:
+      enabled: true
+      region: "us-west-2"
+      keyless: true
+```
+
 Install:
 ```bash
 helm install s3proxy-s3 ./s3proxy -f values-aws-s3.yaml
@@ -954,11 +865,14 @@ config:
     type: "aws-v4"
     identity: "myaccesskey"
     secret: "mysecretkey"
-  backend:
-    provider: "azureblob"
+  backends:
+    filesystem:
+      enabled: false
     azureblob:
+      enabled: true
       account: "mystorageaccount"
-      key: "storageaccountkey"
+      key:
+        value: "storageaccountkey"
 
 persistence:
   enabled: false  # Not needed for Azure backend
@@ -986,7 +900,6 @@ config:
       enabled: false
     azureblob:
       enabled: true
-      provider: "azureblob-sdk"   # required: the legacy jclouds provider can't do token auth
       managedIdentity: true
       account: "mystorageaccount" # used for the endpoint; NOT emitted as jclouds.identity
       # endpoint: "https://mystorageaccount.blob.core.windows.net"  # or set explicitly
@@ -1005,6 +918,9 @@ persistence:
 
 ### Example 4: Google Cloud Storage Backend
 
+The GCS SDK reads the credential as a full service-account JSON key. A static key
+is required — S3Proxy 4.x does not support keyless GCS (Workload Identity/ADC).
+
 ```yaml
 # values-gcs.yaml
 config:
@@ -1012,15 +928,21 @@ config:
     type: "aws-v4"
     identity: "myaccesskey"
     secret: "mysecretkey"
-  backend:
-    provider: "google-cloud-storage"
+  backends:
+    filesystem:
+      enabled: false
     googleCloudStorage:
+      enabled: true
       projectID: "my-project"
-      clientEmail: "service-account@my-project.iam.gserviceaccount.com"
-      privateKey: |
-        -----BEGIN RSA PRIVATE KEY-----
-        ...
-        -----END RSA PRIVATE KEY-----
+      serviceAccountKey:
+        # The full service-account JSON key (or use existingSecret / secretKey).
+        value: |
+          {
+            "type": "service_account",
+            "project_id": "my-project",
+            "private_key": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n",
+            "client_email": "service-account@my-project.iam.gserviceaccount.com"
+          }
 
 persistence:
   enabled: false  # Not needed for GCS backend
@@ -1035,8 +957,7 @@ config:
     type: "none"
   backends:
     transient:
-      enabled: true
-      nio2: true  # In-memory storage
+      enabled: true  # In-memory storage
 
 persistence:
   enabled: false

Note: This is an automated preview generated by helm-docs. The changes will be automatically applied upon merge.

@github-actions

Copy link
Copy Markdown

📊 Helm Render Diff Summary

Chart charts/s3proxy rendered with Kubernetes 1.29.0. Informational only — this check never fails the PR.

Values File Chart Path Changes Status
test-values/auth-existing-secret.yaml charts/s3proxy +26 -15 🔄 Changes Detected (summary)
test-values/autoscaling.yaml charts/s3proxy +28 -17 🔄 Changes Detected (summary)
test-values/azureblob-existing-secret.yaml charts/s3proxy +26 -15 🔄 Changes Detected (summary)
test-values/azureblob-managed-identity.yaml charts/s3proxy +32 -21 🔄 Changes Detected (summary)
test-values/azureblob.yaml charts/s3proxy +25 -14 🔄 Changes Detected (summary)
test-values/b2.yaml charts/s3proxy +0 -282 🔄 Changes Detected (summary)
test-values/filesystem.yaml charts/s3proxy +28 -17 🔄 Changes Detected (summary)
test-values/gcs.yaml charts/s3proxy +50 -26 🔄 Changes Detected (summary)
test-values/ingress.yaml charts/s3proxy +32 -21 🔄 Changes Detected (summary)
test-values/multi-backend.yaml charts/s3proxy +28 -16 🔄 Changes Detected (summary)
test-values/openstack-swift.yaml charts/s3proxy +32 -17 🔄 Changes Detected (summary)
test-values/rackspace.yaml charts/s3proxy +0 -282 🔄 Changes Detected (summary)
test-values/s3.yaml charts/s3proxy +26 -14 🔄 Changes Detected (summary)
test-values/tls-existing-secret.yaml charts/s3proxy +28 -17 🔄 Changes Detected (summary)
test-values/tls.yaml charts/s3proxy +28 -17 🔄 Changes Detected (summary)
test-values/transient.yaml charts/s3proxy +26 -15 🔄 Changes Detected (summary)

ℹ️ Per-scenario diffs are omitted from this comment because the full render diff exceeds GitHub's comment size limit. See the complete diffs in the workflow job summary.

@CRThaze
CRThaze merged commit 4638bb1 into main Oct 29, 2026
27 checks passed
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