diff --git a/.github/workflows/functional-test.yaml b/.github/workflows/functional-test.yaml index e1eb1a5..eb0429c 100644 --- a/.github/workflows/functional-test.yaml +++ b/.github/workflows/functional-test.yaml @@ -14,6 +14,15 @@ name: Functional Test (kind) # jclouds.endpoint (provider-agnostic). # azureblob-existing-secret -> Azurite mock, account key delivered via a # pre-created Secret (key.existingSecret path, GH #34). +# azureblob-managed-identity -> keyless Azure: managedIdentity renders empty +# identity/credential, so the Azure SDK's +# DefaultAzureCredential fetches a token from a stub +# managed-identity endpoint and S3Proxy presents it to +# Azurite (--oauth basic, HTTPS). Azurite rejects +# anonymous requests, so only the token path passes. +# gcs -> fake-gcs-server mock through googleCloudStorage.endpoint, +# full round-trip. No key: the emulator accepts the +# unauthenticated requests the GCS SDK sends without one. # multi-backend -> s3 (MinIO) + azureblob (Azurite) + filesystem (PVC) # in ONE release, with per-backend bucket-locator # routing. assert-routing.sh writes one bucket per @@ -25,9 +34,9 @@ name: Functional Test (kind) # generated and stored in a Secret; s3proxy is installed # with config.tls (existingSecret path) over filesystem, # then the smoke test round-trips over HTTPS. -# gcs/b2/openstack-swift/rackspace are render-only (covered by lint-render + helm-diff): -# gcs has no jclouds.endpoint override in the chart, and the others have no -# lightweight in-cluster emulator. +# openstack-swift is render-only (lint-render + helm-diff); an openstackswift/saio leg +# is possible but not added yet. Auth paths no emulator verifies stay render-only too: +# the GCS service-account key, Azure SAS, and S3 keyless. on: pull_request: @@ -68,6 +77,13 @@ jobs: values: ci/functional/values/azureblob-existing-secret.yaml mock: ci/functional/mocks/azurite.yaml azureKeySecret: true + - backend: azureblob-managed-identity + values: ci/functional/values/azureblob-managed-identity.yaml + mock: ci/functional/mocks/azurite-oauth.yaml ci/functional/mocks/azure-token-stub.yaml + azuriteOAuth: true + - backend: gcs + values: ci/functional/values/gcs.yaml + mock: ci/functional/mocks/fake-gcs-server.yaml - backend: multi-backend values: ci/functional/values/multi-backend.yaml mock: ci/functional/mocks/minio.yaml ci/functional/mocks/azurite.yaml @@ -114,6 +130,23 @@ jobs: --from-file=keystore.p12=/tmp/keystore.p12 \ --from-literal=keystore-password=changeit + - name: Generate Azurite TLS and S3Proxy truststore Secrets (managed-identity leg) + if: matrix.azuriteOAuth + # Azurite serves bearer-token auth over HTTPS only, and the Azure SDK sends + # tokens over HTTPS only, so Azurite gets a self-signed cert for its Service + # name and the S3Proxy JVM trusts it through a PKCS12 truststore. + run: | + openssl req -x509 -newkey rsa:2048 -nodes -days 1 \ + -keyout /tmp/azurite.key -out /tmp/azurite.crt \ + -subj "/CN=azurite" -addext "subjectAltName=DNS:azurite" + "${JAVA_HOME}/bin/keytool" -importcert -noprompt -alias azurite \ + -file /tmp/azurite.crt -keystore /tmp/truststore \ + -storetype PKCS12 -storepass changeit + kubectl -n "${NAMESPACE}" create secret tls azurite-tls \ + --cert=/tmp/azurite.crt --key=/tmp/azurite.key + kubectl -n "${NAMESPACE}" create secret generic s3proxy-truststore \ + --from-file=truststore=/tmp/truststore + - name: Create client auth Secret (auth existingSecret leg) if: matrix.authSecret # The identity/secret the smoke test signs with, in the Secret the chart @@ -171,4 +204,5 @@ jobs: kubectl -n "${NAMESPACE}" get all || true kubectl -n "${NAMESPACE}" describe pods || true kubectl -n "${NAMESPACE}" logs -l app.kubernetes.io/name=s3proxy --all-containers --tail=300 || true + kubectl -n "${NAMESPACE}" logs -l app --all-containers --prefix --tail=100 || true kubectl -n "${NAMESPACE}" get events --sort-by=.lastTimestamp || true diff --git a/.github/workflows/lint-render.yaml b/.github/workflows/lint-render.yaml index 10d97f3..f58c17c 100644 --- a/.github/workflows/lint-render.yaml +++ b/.github/workflows/lint-render.yaml @@ -33,9 +33,7 @@ jobs: - test-values/auth-existing-secret.yaml - test-values/azureblob-managed-identity.yaml - test-values/gcs.yaml - - test-values/b2.yaml - test-values/openstack-swift.yaml - - test-values/rackspace.yaml - test-values/multi-backend.yaml - test-values/ingress.yaml - test-values/autoscaling.yaml diff --git a/charts/s3proxy/Chart.yaml b/charts/s3proxy/Chart.yaml index 916483b..19f0951 100644 --- a/charts/s3proxy/Chart.yaml +++ b/charts/s3proxy/Chart.yaml @@ -15,13 +15,13 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.5.0 +version: 1.0.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "3.3.0" +appVersion: "4.1.1" # comet-common is a library chart of shared helpers (names, labels, images, ...) # used across Comet charts. The resolved dependency (charts/*.tgz) is git-ignored, diff --git a/charts/s3proxy/README.md.gotmpl b/charts/s3proxy/README.md.gotmpl index faa4f4f..9136ea9 100644 --- a/charts/s3proxy/README.md.gotmpl +++ b/charts/s3proxy/README.md.gotmpl @@ -21,20 +21,19 @@ ## S3Proxy version compatibility -The chart tracks S3Proxy (`andrewgaul/s3proxy`) through `appVersion` (currently `{{ template "chart.appVersion" . }}`); override it with `image.tag`. Minimum supported version is `2.7.0`. +Chart `1.x` targets **S3Proxy 4.x** (`appVersion` currently `{{ template "chart.appVersion" . }}`; 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 @@ -100,8 +99,6 @@ config: backends: filesystem: enabled: true - nio2: true - filesystem: basedir: "/data/s3proxy" persistence: @@ -123,17 +120,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 ./{{ template "chart.name" . }} -f values-aws-s3.yaml @@ -148,11 +161,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 @@ -180,7 +196,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 @@ -199,6 +214,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: @@ -206,15 +224,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 @@ -229,8 +253,7 @@ config: type: "none" backends: transient: - enabled: true - nio2: true # In-memory storage + enabled: true # In-memory storage persistence: enabled: false diff --git a/charts/s3proxy/override-values.example.yaml b/charts/s3proxy/override-values.example.yaml index f40d458..5af709e 100644 --- a/charts/s3proxy/override-values.example.yaml +++ b/charts/s3proxy/override-values.example.yaml @@ -70,21 +70,18 @@ config: # Properties files will be loaded in order: main properties first, then each backend's properties # Later properties can override earlier ones if there are conflicts backends: - # Filesystem backend for local storage + # Filesystem backend for local storage (NIO2-backed) filesystem: enabled: true # Set to true to use filesystem backend - nio2: true # Set to true for NIO2 implementation (filesystem-nio2), false for standard (filesystem) basedir: "/data/s3proxy" # Transient (in-memory) backend - useful for testing transient: enabled: false # Set to true to use transient backend - nio2: true # Set to true for NIO2 implementation (transient-nio2), false for standard (transient) - # S3 backend (AWS S3 or S3-compatible storage) + # S3 backend (aws-s3 AWS SDK provider; AWS S3 or any S3-compatible storage) s3: enabled: false # Set to true to use S3 backend - aws: true # Set to true for AWS S3 (aws-s3 provider), false for generic S3 region: "us-west-2" # endpoint: "https://s3.amazonaws.com" # Optional custom endpoint (e.g., MinIO, Ceph) accessKeyID: "AKIAIOSFODNN7EXAMPLE" @@ -92,11 +89,13 @@ config: value: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" # existingSecret: "my-s3-secret" # secretKey: "secretAccessKey" + # Or keyless: drop accessKeyID/secretAccessKey and set keyless: true to use the + # AWS default credential chain (IRSA / EKS Pod Identity / EC2 instance profile). + # keyless: true - # Azure Blob Storage backend + # Azure Blob Storage backend (Azure SDK) azureblob: enabled: false # Set to true to use Azure Blob backend - provider: "azureblob" # Can be "azureblob" or "azureblob-sdk" account: "mystorageaccount" key: value: "base64encodedkey==" @@ -107,58 +106,42 @@ config: value: "" # Optional SAS token # existingSecret: "my-azure-sas-secret" # secretKey: "sasToken" + # Or Managed/Workload Identity (no static key): set managedIdentity: true and + # leave key/sasToken empty (see README "Example 3b"). + # managedIdentity: true - # Google Cloud Storage backend + # Google Cloud Storage backend (Google SDK). A static service-account JSON key is + # required; S3Proxy 4.x does not support keyless GCS (Workload Identity/ADC). googleCloudStorage: enabled: false # Set to true to use GCS backend - projectID: "my-project" - - # Service account email or user email - clientEmail: "service-account@my-project.iam.gserviceaccount.com" - - # Private key configuration - privateKey: - # Option 1: Provide private key directly - # value: |- - # -----BEGIN RSA PRIVATE KEY----- - # ... - # -----END RSA PRIVATE KEY----- - - # Option 2: Reference an existing secret containing the private key - # existingSecret: "my-gcs-privatekey-secret" - # secretKey: "privateKey" - - # Backblaze B2 backend - b2: - enabled: false # Set to true to use B2 backend - account: "account-id" - applicationKey: - value: "application-key" - # existingSecret: "my-b2-secret" - # secretKey: "applicationKey" - - # OpenStack Swift backend + projectID: "my-project" # Optional; otherwise taken from the key + serviceAccountKey: + # Option 1: the full service-account JSON key inline + # 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" + # } + # Option 2: reference an existing Secret holding the JSON key + # existingSecret: "my-gcs-key" + # secretKey: "key.json" + + # OpenStack Swift backend (openstack4j SDK, Keystone v3) openstackSwift: enabled: false # Set to true to use Swift backend - authURL: "https://auth.cloud.com/v2.0" - tenantName: "my-tenant" + authURL: "https://auth.cloud.com/v3" userName: "my-user" password: value: "my-password" # existingSecret: "my-swift-secret" # secretKey: "password" + projectName: "my-project" # Keystone project (required) + projectDomainName: "Default" + userDomainName: "Default" region: "RegionOne" - # Rackspace Cloud Files backend - rackspaceCloudfiles: - enabled: false # Set to true to use Rackspace Cloud Files backend - region: "us" # Region: "us" or "uk" - userName: "my-user" - apiKey: - value: "my-api-key" - # existingSecret: "my-rackspace-secret" - # secretKey: "apiKey" - # Persistence settings for filesystem backend persistence: enabled: true diff --git a/charts/s3proxy/templates/NOTES.txt b/charts/s3proxy/templates/NOTES.txt index f9a7045..1a1ce3e 100644 --- a/charts/s3proxy/templates/NOTES.txt +++ b/charts/s3proxy/templates/NOTES.txt @@ -22,39 +22,19 @@ {{- end }} 2. S3Proxy Configuration: - - Backend Provider: + - Backend Provider: {{- if .Values.config.backends.filesystem.enabled }} - {{- if .Values.config.backends.filesystem.nio2 }} - filesystem (filesystem-nio2) - {{- else }} - filesystem (filesystem) - {{- end }} + filesystem {{- else if .Values.config.backends.transient.enabled }} - {{- if .Values.config.backends.transient.nio2 }} - transient (transient-nio2) - {{- else }} - transient (transient) - {{- end }} + transient {{- else if .Values.config.backends.s3.enabled }} - {{- if .Values.config.backends.s3.aws }} - AWS S3 (aws-s3) - {{- else }} - Generic S3 (s3) - {{- end }} + S3 (aws-s3) {{- else if .Values.config.backends.azureblob.enabled }} - Azure Blob ({{ .Values.config.backends.azureblob.provider }}) + Azure Blob (azureblob) {{- else if .Values.config.backends.googleCloudStorage.enabled }} Google Cloud Storage -{{- else if .Values.config.backends.b2.enabled }} - Backblaze B2 {{- else if .Values.config.backends.openstackSwift.enabled }} OpenStack Swift -{{- else if .Values.config.backends.rackspaceCloudfiles.enabled }} - {{- if eq .Values.config.backends.rackspaceCloudfiles.region "uk" }} - Rackspace Cloud Files UK - {{- else }} - Rackspace Cloud Files US - {{- end }} {{- end }} - Authorization: {{ .Values.config.auth.type }} {{- if .Values.config.cors.enabled }} @@ -110,15 +90,11 @@ - WARNING: S3Proxy identity not configured. Remember to set config.auth.identity and config.auth.secret (or config.auth.existingSecret) for authentication. {{- end }} {{- if .Values.config.backends.s3.enabled }} - - Make sure to configure S3 backend credentials + - Make sure to configure S3 backend credentials (or set s3.keyless: true) {{- else if .Values.config.backends.azureblob.enabled }} - - Make sure to configure Azure Blob backend credentials + - Make sure to configure Azure Blob backend credentials (or set azureblob.managedIdentity: true) {{- else if .Values.config.backends.googleCloudStorage.enabled }} - Make sure to configure Google Cloud Storage backend credentials -{{- else if .Values.config.backends.b2.enabled }} - - Make sure to configure Backblaze B2 backend credentials {{- else if .Values.config.backends.openstackSwift.enabled }} - Make sure to configure OpenStack Swift backend credentials -{{- else if .Values.config.backends.rackspaceCloudfiles.enabled }} - - Make sure to configure Rackspace Cloud Files backend credentials {{- end }} diff --git a/charts/s3proxy/templates/_helpers.tpl b/charts/s3proxy/templates/_helpers.tpl index 833f6e7..b390a30 100644 --- a/charts/s3proxy/templates/_helpers.tpl +++ b/charts/s3proxy/templates/_helpers.tpl @@ -43,16 +43,10 @@ backend-.properties filename; is the jclouds key the initContainer {{- $out = append $out (dict "name" "azureblob-credential" "backend" "azureblob" "prop" "jclouds.credential" "secret" $b.azureblob.key.existingSecret "key" $b.azureblob.key.secretKey) -}} {{- end -}} {{- if and $b.azureblob.enabled $b.azureblob.sasToken.existingSecret -}} - {{- $out = append $out (dict "name" "azureblob-sas" "backend" "azureblob" "prop" "jclouds.azureblob.sas" "secret" $b.azureblob.sasToken.existingSecret "key" $b.azureblob.sasToken.secretKey) -}} - {{- end -}} - {{- if and $b.b2.enabled $b.b2.applicationKey.existingSecret -}} - {{- $out = append $out (dict "name" "b2-credential" "backend" "b2" "prop" "jclouds.credential" "secret" $b.b2.applicationKey.existingSecret "key" $b.b2.applicationKey.secretKey) -}} + {{- $out = append $out (dict "name" "azureblob-sas" "backend" "azureblob" "prop" "jclouds.session-token" "secret" $b.azureblob.sasToken.existingSecret "key" $b.azureblob.sasToken.secretKey) -}} {{- end -}} {{- if and $b.openstackSwift.enabled $b.openstackSwift.password.existingSecret -}} {{- $out = append $out (dict "name" "openstack-swift-credential" "backend" "openstack-swift" "prop" "jclouds.credential" "secret" $b.openstackSwift.password.existingSecret "key" $b.openstackSwift.password.secretKey) -}} {{- end -}} - {{- if and $b.rackspaceCloudfiles.enabled $b.rackspaceCloudfiles.apiKey.existingSecret -}} - {{- $out = append $out (dict "name" "rackspace-cloudfiles-credential" "backend" "rackspace-cloudfiles" "prop" "jclouds.credential" "secret" $b.rackspaceCloudfiles.apiKey.existingSecret "key" $b.rackspaceCloudfiles.apiKey.secretKey) -}} - {{- end -}} {{- $out | toJson -}} {{- end }} diff --git a/charts/s3proxy/templates/configmap.yaml b/charts/s3proxy/templates/configmap.yaml index a7c8ac4..64fc92a 100644 --- a/charts/s3proxy/templates/configmap.yaml +++ b/charts/s3proxy/templates/configmap.yaml @@ -69,37 +69,36 @@ s3proxy.large-object-mocking=true {{- end }} {{- end }} {{- /* - Guardrail (DND-1418): the jclouds-only backends below have no SDK successor, and - upstream has announced they are dropped after S3Proxy 3.3.0. Fail the render if - one is enabled while the effective S3Proxy version (image.tag, else appVersion) - parses as semver and is greater than 3.3.0, so upgrading past the jclouds sunset - cannot silently ship a broken backend. Non-semver tags (master, sha-*) are not - version-checked. When S3Proxy ships a jclouds-free release the chart moves to - 1.x.x and migrates/removes these backends. + Version guard: this chart (1.x) targets S3Proxy 4.x, which removed Apache jclouds + and, with it, the Atmos/B2 backends and the -sdk/-nio2 provider name variants (the + short names are now canonical). Rendered configs are therefore not valid on 3.x, so + fail if the effective S3Proxy version (image.tag, else appVersion) parses as semver + and is older than 4.0.0. Non-semver tags (master, sha-*) are not version-checked. + Chart 0.x remains the line for S3Proxy 3.x. */}} {{- $s3pVersion := .Values.image.tag | default .Chart.AppVersion -}} {{- if regexMatch "^v?[0-9]+\\.[0-9]+\\.[0-9]+" $s3pVersion }} - {{- if semverCompare "> 3.3.0" (trimPrefix "v" $s3pVersion) }} - {{- range $backend := list "b2" "atmos" }} - {{- if dig $backend "enabled" false $.Values.config.backends }} - {{- fail (printf "config.backends.%s is enabled, but the %q S3Proxy backend relies on Apache jclouds, which is dropped after 3.3.0 (resolved image version %s). Pin image.tag to 3.3.0 or earlier, or disable config.backends.%s. See the chart README 'S3Proxy version compatibility' notes." $backend $backend $s3pVersion $backend) }} - {{- end }} - {{- end }} + {{- if semverCompare "< 4.0.0" (trimPrefix "v" $s3pVersion) }} + {{- fail (printf "s3proxy-chart %s targets S3Proxy >= 4.0.0 (jclouds removed in 4.0.0), but the effective S3Proxy version is %s. Bump image.tag to >= 4.0.0, or use chart 0.x for S3Proxy 3.x. See the chart README 'S3Proxy version compatibility' notes." $.Chart.Version $s3pVersion) }} {{- end }} {{- end }} {{- /* Fail fast on an Azure managed-identity config that can't authenticate, since the failure otherwise surfaces only at runtime as an opaque Azure SDK error. */}} {{- if and .Values.config.backends.azureblob.enabled .Values.config.backends.azureblob.managedIdentity }} - {{- if ne .Values.config.backends.azureblob.provider "azureblob-sdk" }} - {{- fail "config.backends.azureblob.managedIdentity requires provider=azureblob-sdk; the legacy jclouds azureblob provider cannot use Azure token auth." }} - {{- end }} - {{- if or .Values.config.backends.azureblob.key.value .Values.config.backends.azureblob.key.existingSecret .Values.config.backends.azureblob.sasToken.value }} + {{- if or .Values.config.backends.azureblob.key.value .Values.config.backends.azureblob.key.existingSecret .Values.config.backends.azureblob.sasToken.value .Values.config.backends.azureblob.sasToken.existingSecret }} {{- fail "config.backends.azureblob.managedIdentity conflicts with a static credential; a non-empty key.*/sasToken.* disables DefaultAzureCredential. Unset them." }} {{- end }} {{- if and (not .Values.config.backends.azureblob.account) (not .Values.config.backends.azureblob.endpoint) }} {{- fail "config.backends.azureblob.managedIdentity needs the storage endpoint; set config.backends.azureblob.account (default endpoint) or endpoint." }} {{- end }} {{- end }} +{{- /* Same fail-fast for S3 keyless: an ambient-credentials config must not also + carry a static key, which would override the AWS default credential chain. */}} +{{- if and .Values.config.backends.s3.enabled .Values.config.backends.s3.keyless }} + {{- if or .Values.config.backends.s3.accessKeyID .Values.config.backends.s3.secretAccessKey.value .Values.config.backends.s3.secretAccessKey.existingSecret }} + {{- fail "config.backends.s3.keyless conflicts with a static credential; a non-empty accessKeyID/secretAccessKey.* disables the AWS default credential chain. Unset them." }} + {{- end }} +{{- end }} apiVersion: v1 kind: ConfigMap metadata: @@ -111,12 +110,8 @@ data: backend-filesystem.properties: |- {{- include "s3proxy.main.config" . | nindent 4 }} - # Filesystem backend configuration - {{- if .Values.config.backends.filesystem.nio2 }} - jclouds.provider=filesystem-nio2 - {{- else }} + # Filesystem backend configuration (NIO2-backed in S3Proxy 4.x) jclouds.provider=filesystem - {{- end }} jclouds.filesystem.basedir={{ .Values.config.backends.filesystem.basedir }} # S3Proxy requires jclouds.identity and jclouds.credential in every backend # properties file, even for local backends where the values are unused. @@ -131,12 +126,8 @@ data: backend-transient.properties: |- {{- include "s3proxy.main.config" . | nindent 4 }} - # Transient backend configuration - {{- if .Values.config.backends.transient.nio2 }} - jclouds.provider=transient-nio2 - {{- else }} + # Transient backend configuration (NIO2-backed in S3Proxy 4.x) jclouds.provider=transient - {{- end }} # S3Proxy requires jclouds.identity and jclouds.credential in every backend # properties file, even for local backends where the values are unused. jclouds.identity={{ .Values.config.backends.transient.identity | default "local" }} @@ -150,23 +141,27 @@ data: backend-s3.properties: |- {{- include "s3proxy.main.config" . | nindent 4 }} - # S3 backend configuration - {{- if .Values.config.backends.s3.aws }} + # S3 backend configuration (aws-s3 provider, AWS SDK; also serves S3-compatible + # endpoints such as MinIO/Ceph via jclouds.endpoint). jclouds.provider=aws-s3 - {{- else }} - jclouds.provider=s3 - {{- end }} {{- if .Values.config.backends.s3.region }} jclouds.region={{ .Values.config.backends.s3.region }} {{- end }} {{- if .Values.config.backends.s3.endpoint }} jclouds.endpoint={{ .Values.config.backends.s3.endpoint }} {{- end }} - {{- if .Values.config.backends.s3.accessKeyID }} + {{- if .Values.config.backends.s3.keyless }} + # Keyless: empty identity/credential make the AWS SDK resolve credentials from + # its default provider chain (IRSA / EKS Pod Identity / EC2 instance profile). + jclouds.identity= + jclouds.credential= + {{- else }} + {{- if .Values.config.backends.s3.accessKeyID }} jclouds.identity={{ .Values.config.backends.s3.accessKeyID }} - {{- end }} - {{- if .Values.config.backends.s3.secretAccessKey.value }} + {{- end }} + {{- if .Values.config.backends.s3.secretAccessKey.value }} # Credential will be merged from the secret properties file + {{- end }} {{- end }} {{- range $index, $bucket := .Values.config.backends.s3.bucketLocators }} s3proxy.bucket-locator.{{ add $index 1 }}={{ $bucket }} @@ -177,21 +172,16 @@ data: backend-azureblob.properties: |- {{- include "s3proxy.main.config" . | nindent 4 }} - # Azure Blob backend configuration - jclouds.provider={{ .Values.config.backends.azureblob.provider }} + # Azure Blob backend configuration (azureblob provider, Azure SDK) + jclouds.provider=azureblob {{- if or .Values.config.backends.azureblob.endpoint .Values.config.backends.azureblob.account }} jclouds.endpoint={{ .Values.config.backends.azureblob.endpoint | default (printf "https://%s.blob.core.windows.net" .Values.config.backends.azureblob.account) }} {{- end }} - {{- if .Values.config.backends.azureblob.regions }} - # Required by the azureblob-sdk provider on real Azure to create buckets - # (otherwise "no jclouds.regions configured" -> InvalidLocationConstraint). - jclouds.regions={{ .Values.config.backends.azureblob.regions }} - {{- end }} {{- if .Values.config.backends.azureblob.managedIdentity }} - # Managed/Workload Identity: azureblob-sdk falls back to Azure's - # DefaultAzureCredential (reads the AKS-injected AZURE_CLIENT_ID/TENANT_ID/ - # FEDERATED_TOKEN_FILE) only when BOTH identity and credential are empty. The - # account name lives in jclouds.endpoint above, never in the identity. + # Managed/Workload Identity: the Azure SDK falls back to DefaultAzureCredential + # (reads the AKS-injected AZURE_CLIENT_ID/TENANT_ID/FEDERATED_TOKEN_FILE) only + # when BOTH identity and credential are empty. The account name lives in + # jclouds.endpoint above, never in the identity. jclouds.identity= jclouds.credential= {{- else }} @@ -214,83 +204,51 @@ data: backend-google-cloud-storage.properties: |- {{- include "s3proxy.main.config" . | nindent 4 }} - # Google Cloud Storage backend configuration + # Google Cloud Storage backend configuration (google-cloud-storage provider, + # Google SDK). jclouds.provider=google-cloud-storage {{- if .Values.config.backends.googleCloudStorage.projectID }} - jclouds.project-id={{ .Values.config.backends.googleCloudStorage.projectID }} - {{- end }} - {{- if .Values.config.backends.googleCloudStorage.clientEmail }} - jclouds.identity={{ .Values.config.backends.googleCloudStorage.clientEmail }} + # The GCS SDK store reads jclouds.identity as the GCP project id (setProjectId). + jclouds.identity={{ .Values.config.backends.googleCloudStorage.projectID }} {{- end }} - {{- if .Values.config.backends.googleCloudStorage.privateKey.existingSecret }} - # Using privateKey from mounted secret file - jclouds.credential=/credentials/gcs-private.key - {{- else if .Values.config.backends.googleCloudStorage.privateKey.value }} - # Private key credential will be merged from the secret properties file - # jclouds.credential will be provided by the secret + {{- if .Values.config.backends.googleCloudStorage.endpoint }} + jclouds.endpoint={{ .Values.config.backends.googleCloudStorage.endpoint }} {{- end }} + # jclouds.credential (the full service-account JSON key) is merged in by the + # merge-configs initContainer from the mounted key file, so the multi-line JSON + # is escaped to a single properties value and kept out of the ConfigMap. With no + # key the SDK uses an unauthenticated client (emulator only) — S3Proxy 4.x does + # NOT support keyless GCS (Workload Identity/ADC); real GCS needs a static key. {{- range $index, $bucket := .Values.config.backends.googleCloudStorage.bucketLocators }} s3proxy.bucket-locator.{{ add $index 1 }}={{ $bucket }} {{- end }} {{- end }} -{{- if .Values.config.backends.b2.enabled }} - backend-b2.properties: |- - {{- include "s3proxy.main.config" . | nindent 4 }} - - # Backblaze B2 backend configuration - jclouds.provider=b2 - {{- if .Values.config.backends.b2.account }} - jclouds.identity={{ .Values.config.backends.b2.account }} - {{- end }} - {{- if .Values.config.backends.b2.applicationKey.value }} - # Credential will be merged from the secret properties file - {{- end }} - {{- range $index, $bucket := .Values.config.backends.b2.bucketLocators }} - s3proxy.bucket-locator.{{ add $index 1 }}={{ $bucket }} - {{- end }} -{{- end }} - {{- if .Values.config.backends.openstackSwift.enabled }} backend-openstack-swift.properties: |- {{- include "s3proxy.main.config" . | nindent 4 }} - # OpenStack Swift backend configuration + # OpenStack Swift backend configuration (openstack-swift provider, openstack4j + # SDK, Keystone v3). jclouds.provider=openstack-swift {{- if .Values.config.backends.openstackSwift.authURL }} - jclouds.keystone.auth-url={{ .Values.config.backends.openstackSwift.authURL }} - {{- end }} - {{- if .Values.config.backends.openstackSwift.region }} - jclouds.region={{ .Values.config.backends.openstackSwift.region }} + jclouds.endpoint={{ .Values.config.backends.openstackSwift.authURL }} {{- end }} - {{- if and .Values.config.backends.openstackSwift.tenantName .Values.config.backends.openstackSwift.userName }} - jclouds.identity={{ printf "%s:%s" .Values.config.backends.openstackSwift.tenantName .Values.config.backends.openstackSwift.userName }} + {{- if .Values.config.backends.openstackSwift.userName }} + jclouds.identity={{ .Values.config.backends.openstackSwift.userName }} {{- end }} {{- if .Values.config.backends.openstackSwift.password.value }} # Credential will be merged from the secret properties file {{- end }} - {{- range $index, $bucket := .Values.config.backends.openstackSwift.bucketLocators }} - s3proxy.bucket-locator.{{ add $index 1 }}={{ $bucket }} - {{- end }} -{{- end }} - -{{- if .Values.config.backends.rackspaceCloudfiles.enabled }} - backend-rackspace-cloudfiles.properties: |- - {{- include "s3proxy.main.config" . | nindent 4 }} - - # Rackspace Cloud Files backend configuration - {{- if eq .Values.config.backends.rackspaceCloudfiles.region "uk" }} - jclouds.provider=rackspace-cloudfiles-uk - {{- else }} - jclouds.provider=rackspace-cloudfiles-us - {{- end }} - {{- if .Values.config.backends.rackspaceCloudfiles.userName }} - jclouds.identity={{ .Values.config.backends.rackspaceCloudfiles.userName }} + {{- if .Values.config.backends.openstackSwift.projectName }} + openstack-swift-sdk.project-name={{ .Values.config.backends.openstackSwift.projectName }} {{- end }} - {{- if .Values.config.backends.rackspaceCloudfiles.apiKey.value }} - # Credential will be merged from the secret properties file + openstack-swift-sdk.project-domain-name={{ .Values.config.backends.openstackSwift.projectDomainName | default "Default" }} + openstack-swift-sdk.user-domain-name={{ .Values.config.backends.openstackSwift.userDomainName | default "Default" }} + {{- if .Values.config.backends.openstackSwift.region }} + openstack-swift-sdk.region={{ .Values.config.backends.openstackSwift.region }} {{- end }} - {{- range $index, $bucket := .Values.config.backends.rackspaceCloudfiles.bucketLocators }} + {{- range $index, $bucket := .Values.config.backends.openstackSwift.bucketLocators }} s3proxy.bucket-locator.{{ add $index 1 }}={{ $bucket }} {{- end }} {{- end }} diff --git a/charts/s3proxy/templates/deployment.yaml b/charts/s3proxy/templates/deployment.yaml index 6a7d171..16a3a3a 100644 --- a/charts/s3proxy/templates/deployment.yaml +++ b/charts/s3proxy/templates/deployment.yaml @@ -108,6 +108,17 @@ spec: done fi + # Google Cloud Storage: the SDK store parses jclouds.credential as + # the literal service-account JSON key (ServiceAccountCredentials. + # fromStream), so the mounted key file is collapsed to one Java- + # properties value (whole file slurped, backslashes doubled, then + # newlines -> \n) and appended only to the GCS backend file. + if [ "$backend" = "google-cloud-storage" ] && [ -f /gcs-key/key.json ] + then + esc=$(sed -e ':a' -e 'N' -e '$!ba' -e 's/\\/\\\\/g' -e 's/\n/\\n/g' /gcs-key/key.json) + printf '\njclouds.credential=%s\n' "$esc" >> "$output_file" + fi + # TLS keystore password from an existing Secret (kept out of the # ConfigMap). Mounted only when config.tls.keystorePassword.existingSecret # is set; an inline password arrives via secret-common.properties instead. @@ -139,6 +150,11 @@ spec: mountPath: /auth-secret readOnly: true {{- end }} +{{- if and .Values.config.backends.googleCloudStorage.enabled (or .Values.config.backends.googleCloudStorage.serviceAccountKey.value .Values.config.backends.googleCloudStorage.serviceAccountKey.existingSecret) }} + - name: gcs-key + mountPath: /gcs-key + readOnly: true +{{- end }} {{- range $s := (include "s3proxy.externalBackendSecrets" . | fromJsonArray) }} - name: {{ $s.name }} mountPath: /backend-secret/{{ $s.backend }}/{{ $s.prop }} @@ -177,18 +193,10 @@ spec: - "--properties" - "/merged-config/backend-google-cloud-storage.properties" {{- end }} -{{- if .Values.config.backends.b2.enabled }} - - "--properties" - - "/merged-config/backend-b2.properties" -{{- end }} {{- if .Values.config.backends.openstackSwift.enabled }} - "--properties" - "/merged-config/backend-openstack-swift.properties" {{- end }} -{{- if .Values.config.backends.rackspaceCloudfiles.enabled }} - - "--properties" - - "/merged-config/backend-rackspace-cloudfiles.properties" -{{- end }} {{- with .Values.extraEnvVars }} env: {{- toYaml . | nindent 12 }} @@ -252,12 +260,6 @@ spec: mountPath: {{ .Values.config.backends.filesystem.basedir }} {{- end }} {{- end }} -{{- if and .Values.config.backends.googleCloudStorage.enabled .Values.config.backends.googleCloudStorage.privateKey.existingSecret }} - - name: gcp-private-key - mountPath: /credentials/gcs-private.key - subPath: gcs-private.key - readOnly: true -{{- end }} {{- with .Values.extraVolumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} @@ -300,13 +302,20 @@ spec: claimName: {{ .Values.persistence.existingClaim | default (include "comet-common.names.fullname" .) }} {{- end }} {{- end }} -{{- if and .Values.config.backends.googleCloudStorage.enabled .Values.config.backends.googleCloudStorage.privateKey.existingSecret }} - - name: gcp-private-key +{{- if and .Values.config.backends.googleCloudStorage.enabled (or .Values.config.backends.googleCloudStorage.serviceAccountKey.value .Values.config.backends.googleCloudStorage.serviceAccountKey.existingSecret) }} + - name: gcs-key secret: - secretName: {{ .Values.config.backends.googleCloudStorage.privateKey.existingSecret }} + {{- if .Values.config.backends.googleCloudStorage.serviceAccountKey.existingSecret }} + secretName: {{ .Values.config.backends.googleCloudStorage.serviceAccountKey.existingSecret }} items: - - key: {{ .Values.config.backends.googleCloudStorage.privateKey.secretKey }} - path: gcs-private.key + - key: {{ .Values.config.backends.googleCloudStorage.serviceAccountKey.secretKey }} + path: key.json + {{- else }} + secretName: {{ include "comet-common.names.fullname" . }} + items: + - key: gcs-key.json + path: key.json + {{- end }} {{- end }} {{- if .Values.config.auth.existingSecret }} - name: auth-secret diff --git a/charts/s3proxy/templates/secret.yaml b/charts/s3proxy/templates/secret.yaml index 3b8d757..0ee021b 100644 --- a/charts/s3proxy/templates/secret.yaml +++ b/charts/s3proxy/templates/secret.yaml @@ -58,28 +58,21 @@ mounted at /auth-secret and merged by the initContainer instead of landing here. jclouds.credential={{ .Values.config.backends.azureblob.key.value }} {{- end }} {{- if .Values.config.backends.azureblob.sasToken.value }} - jclouds.azureblob.sas={{ .Values.config.backends.azureblob.sasToken.value }} + # S3Proxy 4.x reads a SAS token as the backend session token. + jclouds.session-token={{ .Values.config.backends.azureblob.sasToken.value }} {{- end }} {{- end }} {{- end }} -{{- if and .Values.config.backends.googleCloudStorage.enabled .Values.config.backends.googleCloudStorage.privateKey.value }} - secret-google-cloud-storage.properties: | - # Google Cloud Storage backend credential (PEM private key) - jclouds.credential={{ .Values.config.backends.googleCloudStorage.privateKey.value | trim | replace "\n" "\\n\\" }} -{{- end }} -{{- if and .Values.config.backends.b2.enabled .Values.config.backends.b2.applicationKey.value }} - secret-b2.properties: | - # Backblaze B2 backend credential - jclouds.credential={{ .Values.config.backends.b2.applicationKey.value }} +{{- if and .Values.config.backends.googleCloudStorage.enabled .Values.config.backends.googleCloudStorage.serviceAccountKey.value (not .Values.config.backends.googleCloudStorage.serviceAccountKey.existingSecret) }} + # Full service-account JSON key. Mounted as a file and merged into the backend + # properties (escaped to a single line) by the merge-configs initContainer, so the + # multi-line JSON never lands in the ConfigMap or on a properties line here. + gcs-key.json: | + {{- .Values.config.backends.googleCloudStorage.serviceAccountKey.value | nindent 4 }} {{- end }} {{- if and .Values.config.backends.openstackSwift.enabled .Values.config.backends.openstackSwift.password.value }} secret-openstack-swift.properties: | # OpenStack Swift backend credential jclouds.credential={{ .Values.config.backends.openstackSwift.password.value }} {{- end }} -{{- if and .Values.config.backends.rackspaceCloudfiles.enabled .Values.config.backends.rackspaceCloudfiles.apiKey.value }} - secret-rackspace-cloudfiles.properties: | - # Rackspace Cloud Files backend credential - jclouds.credential={{ .Values.config.backends.rackspaceCloudfiles.apiKey.value }} -{{- end }} {{- end }} diff --git a/charts/s3proxy/values.yaml b/charts/s3proxy/values.yaml index 151c484..278182b 100644 --- a/charts/s3proxy/values.yaml +++ b/charts/s3proxy/values.yaml @@ -188,43 +188,39 @@ config: backends: filesystem: - # -- Enable filesystem backend + # -- Enable filesystem backend (provider `filesystem`, NIO2-backed in S3Proxy 4.x) enabled: true - # -- Use NIO2 implementation (filesystem-nio2) instead of standard filesystem - nio2: true # -- Base directory for filesystem backend basedir: "/data/s3proxy" - # -- 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". + # -- 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". identity: "local" - # -- jclouds credential. S3Proxy requires jclouds.credential in every backend properties file; the filesystem backend ignores the value. An empty value falls back to "local". + # -- 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". credential: "local" # -- 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. bucketLocators: [] transient: - # -- Enable transient (in-memory) backend + # -- Enable transient (in-memory) backend (provider `transient`, NIO2-backed in S3Proxy 4.x) enabled: false - # -- Use NIO2 implementation (transient-nio2) instead of standard transient - nio2: true - # -- 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". + # -- 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". identity: "local" - # -- jclouds credential. S3Proxy requires jclouds.credential in every backend properties file; the transient backend ignores the value. An empty value falls back to "local". + # -- 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". credential: "local" # -- 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. bucketLocators: [] s3: - # -- Enable S3 backend + # -- Enable S3 backend (provider `aws-s3`, AWS SDK; also serves S3-compatible endpoints such as MinIO/Ceph via `endpoint`) enabled: false - # -- Use AWS-specific S3 provider (aws-s3) instead of generic S3 provider - aws: true - # -- AWS region + # -- AWS region (`jclouds.region`). S3Proxy defaults to `us-east-1` when empty. region: "" - # -- S3 endpoint + # -- S3 endpoint (`jclouds.endpoint`) for an S3-compatible backend (MinIO, Ceph). Leave empty for AWS. endpoint: "" - # -- S3 Access Key ID for backend + # -- Use ambient/keyless credentials: leave `accessKeyID`/`secretAccessKey` empty and the AWS SDK default credential chain resolves IRSA / EKS Pod Identity / EC2 instance-profile creds. Mutually exclusive with `accessKeyID`/`secretAccessKey.*`. + keyless: false + # -- S3 Access Key ID for backend (`jclouds.identity`). Leave empty when `keyless: true`. accessKeyID: "" - # -- S3 Secret Access Key configuration + # -- S3 Secret Access Key configuration. Leave empty when `keyless: true`. secretAccessKey: # -- Secret access key value value: "" @@ -236,11 +232,9 @@ config: bucketLocators: [] azureblob: - # -- Enable Azure Blob Storage backend + # -- Enable Azure Blob Storage backend (provider `azureblob`, Azure SDK) enabled: false - # -- Provider type. Defaults to `azureblob-sdk` (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 `azureblob` provider is deprecated upstream and mis-signs against custom endpoints; on real Azure `azureblob-sdk` may require `regions` to be set for bucket creation. - provider: "azureblob-sdk" - # -- Use Azure Managed/Workload Identity instead of a static account key or SAS token. Requires `provider: azureblob-sdk`; mutually exclusive with `key.*` and `sasToken.*`. When true the chart renders both `jclouds.identity` and `jclouds.credential` empty, which makes azureblob-sdk fall back to Azure's `DefaultAzureCredential` (consuming the AKS workload-identity env `AZURE_CLIENT_ID`/`AZURE_TENANT_ID`/`AZURE_FEDERATED_TOKEN_FILE`). Set `account` (or `endpoint`) for the storage endpoint, annotate the ServiceAccount with `azure.workload.identity/client-id` (`serviceAccount.annotations`) and label the pod `azure.workload.identity/use: "true"` (`podLabels`). + # -- Use Azure Managed/Workload Identity instead of a static account key or SAS token. Mutually exclusive with `key.*` and `sasToken.*`. When true the chart renders both `jclouds.identity` and `jclouds.credential` empty, which makes the Azure SDK fall back to `DefaultAzureCredential` (consuming the AKS workload-identity env `AZURE_CLIENT_ID`/`AZURE_TENANT_ID`/`AZURE_FEDERATED_TOKEN_FILE`). Set `account` (or `endpoint`) for the storage endpoint, annotate the ServiceAccount with `azure.workload.identity/client-id` (`serviceAccount.annotations`) and label the pod `azure.workload.identity/use: "true"` (`podLabels`). managedIdentity: false # -- Storage account name account: "" @@ -255,8 +249,6 @@ config: # -- (string) Azure endpoint # @default -- `https://{{ .Values.config.backends.azureblob.account }}.blob.core.windows.net` endpoint: - # -- jclouds region(s) for the backend, emitted as `jclouds.regions=`. The azureblob-sdk provider requires this on real Azure to create buckets (without it `aws s3 mb` fails with InvalidLocationConstraint / "no jclouds.regions configured"). Comma-separated for multiple. Not needed against Azurite. Leave empty to omit. - regions: "" # -- SAS token configuration sasToken: # -- SAS token value @@ -269,47 +261,29 @@ config: bucketLocators: [] googleCloudStorage: - # -- Enable Google Cloud Storage backend + # -- Enable Google Cloud Storage backend (provider `google-cloud-storage`, Google SDK) enabled: false - # -- GCP project ID + # -- GCP project ID, emitted as `jclouds.identity` (the GCS SDK store reads it as the project id). Optional: when empty the project is taken from the service-account key. projectID: "" - # -- Service account email or user email - clientEmail: "" - # -- Private key configuration - privateKey: - # -- Private key value (in PEM format) - value: "" - # -- Name of existing secret containing the private key - existingSecret: "" - # -- Key in the existing secret containing the private key (in PEM format) - secretKey: "private.key" - # -- 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. - bucketLocators: [] - - b2: - # -- Enable Backblaze B2 backend - enabled: false - # -- B2 account ID - account: "" - # -- B2 application key configuration - applicationKey: - # -- Application key value + # -- Custom GCS endpoint (`jclouds.endpoint`), e.g. a fake-gcs-server emulator. Empty uses `https://storage.googleapis.com`. An emulator needs no `serviceAccountKey`: with no key the SDK sends unauthenticated requests. + endpoint: "" + # -- Service-account key configuration. The full JSON key is passed to the GCS SDK as `jclouds.credential` (`ServiceAccountCredentials.fromStream`). 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. + serviceAccountKey: + # -- (string) 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 `existingSecret` is empty. value: "" - # -- Name of existing secret containing the application key + # -- Name of an existing Secret holding the service-account JSON key existingSecret: "" - # -- Key in the existing secret containing the application key - secretKey: "applicationKey" + # -- Key within the Secret that holds the JSON key + secretKey: "key.json" # -- 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. bucketLocators: [] openstackSwift: - # -- Enable OpenStack Swift backend + # -- Enable OpenStack Swift backend (provider `openstack-swift`, openstack4j SDK, Keystone v3) enabled: false - # -- Authentication URL + # -- Keystone authentication URL (`jclouds.endpoint`) authURL: "" - # -- Tenant name - tenantName: "" - # -- Username + # -- Username (`jclouds.identity`) userName: "" # -- Password configuration password: @@ -319,29 +293,17 @@ config: existingSecret: "" # -- Key in the existing secret containing the password secretKey: "password" - # -- Region + # -- Keystone project (tenant) name to scope the token to (`openstack-swift-sdk.project-name`). Required: Swift is only reachable through a project-scoped token. + projectName: "" + # -- Keystone domain that owns the project (`openstack-swift-sdk.project-domain-name`) + projectDomainName: "Default" + # -- Keystone domain that owns the user (`openstack-swift-sdk.user-domain-name`) + userDomainName: "Default" + # -- Region to select from the service catalog (`openstack-swift-sdk.region`); empty selects the first/default region region: "" # -- 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. bucketLocators: [] - rackspaceCloudfiles: - # -- Enable Rackspace Cloud Files backend - enabled: false - # -- Region (uk or us) - region: "us" - # -- Username - userName: "" - # -- API key configuration - apiKey: - # -- API key value - value: "" - # -- Name of existing secret containing the API key - existingSecret: "" - # -- Key in the existing secret containing the API key - secretKey: "apiKey" - # -- 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. - bucketLocators: [] - persistence: # -- Enable persistence using PVC enabled: true diff --git a/ci/functional/mocks/azure-token-stub.yaml b/ci/functional/mocks/azure-token-stub.yaml new file mode 100644 index 0000000..79aa7b8 --- /dev/null +++ b/ci/functional/mocks/azure-token-stub.yaml @@ -0,0 +1,94 @@ +# Managed-identity token stub for the azureblob-managed-identity functional leg. +# S3Proxy gets IDENTITY_ENDPOINT/IDENTITY_HEADER (the App Service managed-identity +# contract), so DefaultAzureCredential fetches its token here. The token is an +# unsigned JWT: Azurite's --oauth basic checks issuer, audience and lifetime but +# not the signature. +apiVersion: v1 +kind: ConfigMap +metadata: + name: azure-token +data: + token_stub.py: | + import base64 + import json + import time + from http.server import BaseHTTPRequestHandler, HTTPServer + + + def b64(obj): + return base64.urlsafe_b64encode(json.dumps(obj).encode()).rstrip(b"=").decode() + + + class Handler(BaseHTTPRequestHandler): + def do_GET(self): + now = int(time.time()) + claims = { + "aud": "https://storage.azure.com", + "iss": "https://sts.windows.net/00000000-0000-0000-0000-000000000000/", + "iat": now - 60, + "nbf": now - 60, + "exp": now + 3600, + } + token = f'{b64({"alg": "none", "typ": "JWT"})}.{b64(claims)}.' + body = json.dumps({ + "access_token": token, + "expires_on": str(now + 3600), + "resource": "https://storage.azure.com", + "token_type": "Bearer", + }).encode() + self.send_response(200) + self.send_header("Content-Type", "application/json") + self.end_headers() + self.wfile.write(body) + + + HTTPServer(("", 8080), Handler).serve_forever() +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: azure-token + labels: + app: azure-token +spec: + replicas: 1 + selector: + matchLabels: + app: azure-token + template: + metadata: + labels: + app: azure-token + spec: + containers: + - name: azure-token + image: python:3.13-alpine + command: ["python", "-u", "/stub/token_stub.py"] + ports: + - name: http + containerPort: 8080 + readinessProbe: + tcpSocket: + port: 8080 + periodSeconds: 2 + volumeMounts: + - name: stub + mountPath: /stub + volumes: + - name: stub + configMap: + name: azure-token +--- +apiVersion: v1 +kind: Service +metadata: + name: azure-token + labels: + app: azure-token +spec: + selector: + app: azure-token + ports: + - name: http + port: 8080 + targetPort: 8080 diff --git a/ci/functional/mocks/azurite-oauth.yaml b/ci/functional/mocks/azurite-oauth.yaml new file mode 100644 index 0000000..52477fd --- /dev/null +++ b/ci/functional/mocks/azurite-oauth.yaml @@ -0,0 +1,67 @@ +# Azurite with OAuth for the azureblob-managed-identity functional leg. +# --oauth basic accepts bearer tokens (checking issuer, audience and lifetime) and +# requires HTTPS, so it serves the self-signed azurite-tls Secret the workflow +# creates. Anonymous requests are still rejected, so a passing round-trip with no +# account key proves S3Proxy authenticated with the token. +apiVersion: apps/v1 +kind: Deployment +metadata: + name: azurite + labels: + app: azurite +spec: + replicas: 1 + selector: + matchLabels: + app: azurite + template: + metadata: + labels: + app: azurite + spec: + containers: + - name: azurite + image: mcr.microsoft.com/azure-storage/azurite:3.34.0 + args: + - azurite-blob + - --blobHost + - 0.0.0.0 + - --blobPort + - "10000" + - --skipApiVersionCheck + - --oauth + - basic + - --cert + - /certs/tls.crt + - --key + - /certs/tls.key + ports: + - name: blob + containerPort: 10000 + readinessProbe: + tcpSocket: + port: 10000 + initialDelaySeconds: 5 + periodSeconds: 5 + volumeMounts: + - name: tls + mountPath: /certs + readOnly: true + volumes: + - name: tls + secret: + secretName: azurite-tls +--- +apiVersion: v1 +kind: Service +metadata: + name: azurite + labels: + app: azurite +spec: + selector: + app: azurite + ports: + - name: blob + port: 10000 + targetPort: 10000 diff --git a/ci/functional/mocks/fake-gcs-server.yaml b/ci/functional/mocks/fake-gcs-server.yaml new file mode 100644 index 0000000..4607948 --- /dev/null +++ b/ci/functional/mocks/fake-gcs-server.yaml @@ -0,0 +1,61 @@ +# fake-gcs-server: Google Cloud Storage emulator for the s3proxy functional test +# (the emulator S3Proxy's own CI runs its GCS lane against). +# Ephemeral (in-memory backend); the whole kind cluster is discarded after the test. +apiVersion: apps/v1 +kind: Deployment +metadata: + name: fake-gcs + labels: + app: fake-gcs +spec: + replicas: 1 + selector: + matchLabels: + app: fake-gcs + template: + metadata: + labels: + app: fake-gcs + spec: + # The fake-gcs Service would inject FAKE_GCS_PORT=tcp://:4443, which + # fake-gcs-server reads as its own port setting and exits on. + enableServiceLinks: false + containers: + - name: fake-gcs + image: fsouza/fake-gcs-server:1.56.1 + args: + - -scheme + - http + - -port + - "4443" + - -backend + - memory + # Upload responses carry URLs back to the server, so they must name + # the Service rather than the pod's own host. + - -external-url + - http://fake-gcs:4443 + - -public-host + - fake-gcs:4443 + ports: + - name: gcs + containerPort: 4443 + readinessProbe: + httpGet: + path: /_internal/healthcheck + port: 4443 + initialDelaySeconds: 2 + periodSeconds: 5 +--- +apiVersion: v1 +kind: Service +metadata: + name: fake-gcs + labels: + app: fake-gcs +spec: + selector: + app: fake-gcs + ports: + - name: gcs + port: 4443 + targetPort: 4443 diff --git a/ci/functional/mocks/minio.yaml b/ci/functional/mocks/minio.yaml index b796cab..6ba2276 100644 --- a/ci/functional/mocks/minio.yaml +++ b/ci/functional/mocks/minio.yaml @@ -19,9 +19,10 @@ spec: spec: containers: - name: minio - # quay.io, not docker.io: MinIO removed its community images from Docker - # Hub in 2025, so the old docker.io tag now 404s (ImagePullBackOff). - image: quay.io/minio/minio:RELEASE.2025-09-07T16-13-09Z.hotfix.7aa24e772 + # MinIO's own images on Docker Hub and quay.io now need authentication. + # Chainguard's build pulls anonymously but publishes only :latest for + # free, so pin the digest. + image: cgr.dev/chainguard/minio@sha256:e234321fd3abff7fb968b0674056e883b702aa1ad93a0d4d795cb6c21fa46407 args: - server - /data diff --git a/ci/functional/values/auth-existing-secret.yaml b/ci/functional/values/auth-existing-secret.yaml index b298e8a..bba242b 100644 --- a/ci/functional/values/auth-existing-secret.yaml +++ b/ci/functional/values/auth-existing-secret.yaml @@ -9,7 +9,6 @@ config: backends: filesystem: enabled: true - nio2: true basedir: /data/s3proxy persistence: enabled: true diff --git a/ci/functional/values/azureblob-existing-secret.yaml b/ci/functional/values/azureblob-existing-secret.yaml index 89fe6f7..0b98d7e 100644 --- a/ci/functional/values/azureblob-existing-secret.yaml +++ b/ci/functional/values/azureblob-existing-secret.yaml @@ -11,7 +11,6 @@ config: enabled: false azureblob: enabled: true - provider: azureblob-sdk account: devstoreaccount1 endpoint: http://azurite:10000/devstoreaccount1 key: diff --git a/ci/functional/values/azureblob-managed-identity.yaml b/ci/functional/values/azureblob-managed-identity.yaml new file mode 100644 index 0000000..d1854a5 --- /dev/null +++ b/ci/functional/values/azureblob-managed-identity.yaml @@ -0,0 +1,45 @@ +# Functional-test values: Azure Blob backend with managedIdentity against the +# OAuth-enabled Azurite mock (ci/functional/mocks/azurite-oauth.yaml), no account +# key. The chart renders empty jclouds.identity/credential, so S3Proxy's Azure SDK +# falls back to DefaultAzureCredential, whose managed-identity source is pointed +# at the token stub (ci/functional/mocks/azure-token-stub.yaml) through the App +# Service IDENTITY_ENDPOINT/IDENTITY_HEADER contract. The Azure SDK sends bearer +# tokens over HTTPS only, so the JVM trusts Azurite's self-signed certificate via +# the s3proxy-truststore Secret the workflow creates. +config: + auth: + type: aws-v4 + identity: test-access-key + secret: test-secret-key + backends: + filesystem: + enabled: false + azureblob: + enabled: true + account: devstoreaccount1 + endpoint: https://azurite:10000/devstoreaccount1 + managedIdentity: true +extraEnvVars: + - name: IDENTITY_ENDPOINT + value: http://azure-token:8080/msi/token + - name: IDENTITY_HEADER + value: functional-test + - name: JAVA_TOOL_OPTIONS + value: >- + -Djavax.net.ssl.trustStore=/truststore/truststore + -Djavax.net.ssl.trustStorePassword=changeit + -Djavax.net.ssl.trustStoreType=PKCS12 +extraVolumes: + - name: truststore + secret: + secretName: s3proxy-truststore +extraVolumeMounts: + - name: truststore + mountPath: /truststore + readOnly: true +persistence: + enabled: false +resources: + requests: + cpu: 100m + memory: 256Mi diff --git a/ci/functional/values/azureblob.yaml b/ci/functional/values/azureblob.yaml index 662ec2d..aa1c0f0 100644 --- a/ci/functional/values/azureblob.yaml +++ b/ci/functional/values/azureblob.yaml @@ -2,10 +2,8 @@ # mock (ci/functional/mocks/azurite.yaml -> Service "azurite:10000") using # Azurite's well-known devstoreaccount1 credentials. # -# Uses the azureblob-sdk provider (Azure SDK), which signs correctly against -# Azurite and any custom endpoint; the legacy "azureblob" provider mis-signs the -# SharedKey and Azurite rejects it with 403. Relies on the jclouds.endpoint fix -# (previously the chart emitted the jclouds.azureblob.endpoint typo). +# The azureblob provider is the Azure SDK in S3Proxy 4.x; it signs correctly +# against Azurite and any custom endpoint reached via jclouds.endpoint. config: auth: type: aws-v4 @@ -16,7 +14,6 @@ config: enabled: false azureblob: enabled: true - provider: azureblob-sdk account: devstoreaccount1 endpoint: http://azurite:10000/devstoreaccount1 key: diff --git a/ci/functional/values/filesystem.yaml b/ci/functional/values/filesystem.yaml index 3745f1c..4b69fb5 100644 --- a/ci/functional/values/filesystem.yaml +++ b/ci/functional/values/filesystem.yaml @@ -7,7 +7,6 @@ config: backends: filesystem: enabled: true - nio2: true basedir: /data/s3proxy persistence: enabled: true diff --git a/ci/functional/values/gcs.yaml b/ci/functional/values/gcs.yaml new file mode 100644 index 0000000..60d51c4 --- /dev/null +++ b/ci/functional/values/gcs.yaml @@ -0,0 +1,22 @@ +# Functional-test values: Google Cloud Storage backend pointed at the in-cluster +# fake-gcs-server mock (ci/functional/mocks/fake-gcs-server.yaml -> Service +# "fake-gcs:4443"). No service-account key: with an empty credential the GCS SDK +# sends unauthenticated requests, which the emulator accepts. +config: + auth: + type: aws-v4 + identity: test-access-key + secret: test-secret-key + backends: + filesystem: + enabled: false + googleCloudStorage: + enabled: true + projectID: test-project + endpoint: http://fake-gcs:4443 +persistence: + enabled: false +resources: + requests: + cpu: 100m + memory: 256Mi diff --git a/ci/functional/values/multi-backend.yaml b/ci/functional/values/multi-backend.yaml index fdfd840..c70d323 100644 --- a/ci/functional/values/multi-backend.yaml +++ b/ci/functional/values/multi-backend.yaml @@ -16,13 +16,11 @@ config: backends: filesystem: enabled: true - nio2: true basedir: /data/s3proxy bucketLocators: - "smoke-fs-*" s3: enabled: true - aws: false region: us-east-1 endpoint: http://minio:9000 accessKeyID: minioadmin @@ -32,9 +30,6 @@ config: - "smoke-s3-*" azureblob: enabled: true - # azureblob-sdk (Azure SDK) signs correctly against Azurite and any custom - # endpoint; the legacy "azureblob" provider mis-signs SharedKey → 403. - provider: azureblob-sdk account: devstoreaccount1 endpoint: http://azurite:10000/devstoreaccount1 key: diff --git a/ci/functional/values/s3.yaml b/ci/functional/values/s3.yaml index 0938b18..50d5aa8 100644 --- a/ci/functional/values/s3.yaml +++ b/ci/functional/values/s3.yaml @@ -1,6 +1,6 @@ # Functional-test values: S3 backend pointed at the in-cluster MinIO mock # (ci/functional/mocks/minio.yaml -> Service "minio:9000"). -# Uses the generic S3 provider (aws: false) with a custom endpoint. +# Uses the aws-s3 (AWS SDK) provider against the custom MinIO endpoint. config: auth: type: aws-v4 @@ -11,7 +11,6 @@ config: enabled: false s3: enabled: true - aws: false region: us-east-1 endpoint: http://minio:9000 accessKeyID: minioadmin diff --git a/ci/functional/values/tls.yaml b/ci/functional/values/tls.yaml index 66f666a..e193d47 100644 --- a/ci/functional/values/tls.yaml +++ b/ci/functional/values/tls.yaml @@ -19,7 +19,6 @@ config: backends: filesystem: enabled: true - nio2: true basedir: /data/s3proxy persistence: enabled: true diff --git a/ci/functional/values/transient.yaml b/ci/functional/values/transient.yaml index 6317f29..2b1c4fc 100644 --- a/ci/functional/values/transient.yaml +++ b/ci/functional/values/transient.yaml @@ -9,7 +9,6 @@ config: enabled: false transient: enabled: true - nio2: true persistence: enabled: false resources: diff --git a/test-values/auth-existing-secret.yaml b/test-values/auth-existing-secret.yaml index 457eb8e..1db20c0 100644 --- a/test-values/auth-existing-secret.yaml +++ b/test-values/auth-existing-secret.yaml @@ -8,7 +8,6 @@ config: backends: filesystem: enabled: true - nio2: true basedir: /data/s3proxy persistence: enabled: false diff --git a/test-values/azureblob-existing-secret.yaml b/test-values/azureblob-existing-secret.yaml index 65fcc61..544825f 100644 --- a/test-values/azureblob-existing-secret.yaml +++ b/test-values/azureblob-existing-secret.yaml @@ -10,7 +10,6 @@ config: enabled: false azureblob: enabled: true - provider: azureblob-sdk account: teststorageaccount key: existingSecret: my-azure-key diff --git a/test-values/azureblob-managed-identity.yaml b/test-values/azureblob-managed-identity.yaml index e6e265d..d3c7a55 100644 --- a/test-values/azureblob-managed-identity.yaml +++ b/test-values/azureblob-managed-identity.yaml @@ -12,7 +12,6 @@ config: enabled: false azureblob: enabled: true - provider: azureblob-sdk managedIdentity: true account: teststorageaccount serviceAccount: diff --git a/test-values/azureblob.yaml b/test-values/azureblob.yaml index a4a7027..1ac54ee 100644 --- a/test-values/azureblob.yaml +++ b/test-values/azureblob.yaml @@ -12,7 +12,6 @@ config: enabled: false azureblob: enabled: true - provider: azureblob account: teststorageaccount key: value: dGVzdC1henVyZS1hY2NvdW50LWtleQ== diff --git a/test-values/b2.yaml b/test-values/b2.yaml deleted file mode 100644 index 265a844..0000000 --- a/test-values/b2.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# Render/lint scenario: Backblaze B2 backend. -config: - auth: - type: aws-v4 - identity: test-access-key - secret: test-secret-key - backends: - filesystem: - enabled: false - b2: - enabled: true - account: b2-account-id - applicationKey: - value: b2-application-key -persistence: - enabled: false diff --git a/test-values/filesystem.yaml b/test-values/filesystem.yaml index 834e187..a571de3 100644 --- a/test-values/filesystem.yaml +++ b/test-values/filesystem.yaml @@ -8,7 +8,6 @@ config: backends: filesystem: enabled: true - nio2: true basedir: /data/s3proxy persistence: enabled: true diff --git a/test-values/gcs.yaml b/test-values/gcs.yaml index f7f3465..d580bf8 100644 --- a/test-values/gcs.yaml +++ b/test-values/gcs.yaml @@ -1,7 +1,8 @@ -# Render/lint scenario: Google Cloud Storage backend using an existing secret -# for the private key. Exercises the gcs-private-key volume + volumeMount + -# `jclouds.credential=/credentials/gcs-private.key` render path in -# deployment.yaml and configmap.yaml. +# Render/lint scenario: Google Cloud Storage backend with an inline service-account +# JSON key. Exercises the secret.yaml gcs-key.json emission and the gcs-key volume +# + initContainer escape path (S3Proxy 4.x: the GCS SDK reads jclouds.credential as +# the JSON key content, so the multi-line key is merged in from the mounted file +# rather than referenced by path). config: auth: type: aws-v4 @@ -13,9 +14,13 @@ config: googleCloudStorage: enabled: true projectID: test-project - clientEmail: s3proxy@test-project.iam.gserviceaccount.com - privateKey: - existingSecret: gcs-private-key - secretKey: private.key + serviceAccountKey: + value: | + { + "type": "service_account", + "project_id": "test-project", + "private_key": "-----BEGIN PRIVATE KEY-----\nMIIBExample\n-----END PRIVATE KEY-----\n", + "client_email": "s3proxy@test-project.iam.gserviceaccount.com" + } persistence: enabled: false diff --git a/test-values/ingress.yaml b/test-values/ingress.yaml index 15bc773..ff37cab 100644 --- a/test-values/ingress.yaml +++ b/test-values/ingress.yaml @@ -17,7 +17,6 @@ config: backends: filesystem: enabled: true - nio2: true basedir: /data/s3proxy serviceAccount: create: true diff --git a/test-values/multi-backend.yaml b/test-values/multi-backend.yaml index c7f8f65..2023aee 100644 --- a/test-values/multi-backend.yaml +++ b/test-values/multi-backend.yaml @@ -12,7 +12,6 @@ config: enabled: false s3: enabled: true - aws: false region: us-east-1 endpoint: http://minio.example:9000 accessKeyID: minio-access-key @@ -20,7 +19,6 @@ config: value: minio-secret-key azureblob: enabled: true - provider: azureblob account: teststorageaccount key: value: dGVzdC1henVyZS1hY2NvdW50LWtleQ== diff --git a/test-values/openstack-swift.yaml b/test-values/openstack-swift.yaml index 18f7e48..4ee90c3 100644 --- a/test-values/openstack-swift.yaml +++ b/test-values/openstack-swift.yaml @@ -1,5 +1,6 @@ -# Render/lint scenario: OpenStack Swift backend. -# Exercises the "tenant:user" composite jclouds.identity render. +# Render/lint scenario: OpenStack Swift backend (openstack-swift provider, +# openstack4j SDK, Keystone v3). Exercises the bare-username jclouds.identity and +# the openstack-swift-sdk.project-name / *-domain-name / region render. config: auth: type: aws-v4 @@ -11,10 +12,12 @@ config: openstackSwift: enabled: true authURL: https://auth.example.com/v3 - tenantName: test-tenant userName: test-user password: value: test-password + projectName: test-project + projectDomainName: Default + userDomainName: Default region: RegionOne persistence: enabled: false diff --git a/test-values/rackspace.yaml b/test-values/rackspace.yaml deleted file mode 100644 index 5cdb685..0000000 --- a/test-values/rackspace.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# Render/lint scenario: Rackspace Cloud Files backend (US region). -config: - auth: - type: aws-v4 - identity: test-access-key - secret: test-secret-key - backends: - filesystem: - enabled: false - rackspaceCloudfiles: - enabled: true - region: us - userName: test-user - apiKey: - value: test-api-key -persistence: - enabled: false diff --git a/test-values/s3.yaml b/test-values/s3.yaml index 91a346c..d13db99 100644 --- a/test-values/s3.yaml +++ b/test-values/s3.yaml @@ -11,7 +11,6 @@ config: enabled: false s3: enabled: true - aws: true region: us-east-1 endpoint: https://s3.us-east-1.amazonaws.com accessKeyID: AKIAIOSFODNN7EXAMPLE diff --git a/test-values/transient.yaml b/test-values/transient.yaml index 16d0110..8429a5a 100644 --- a/test-values/transient.yaml +++ b/test-values/transient.yaml @@ -9,6 +9,5 @@ config: enabled: false transient: enabled: true - nio2: true persistence: enabled: false