From 3f66d288dce70d6e6c326094ce9fb1944099b1bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Pe=C3=B1a-Castellanos?= Date: Fri, 31 Jul 2026 10:31:03 -0500 Subject: [PATCH 1/3] docs(duckdb): add S3-compatible endpoint secret example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gonzalo Peña-Castellanos --- docs/integrations/engines/duckdb.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/integrations/engines/duckdb.md b/docs/integrations/engines/duckdb.md index aca58615b3..612572e7b3 100644 --- a/docs/integrations/engines/duckdb.md +++ b/docs/integrations/engines/duckdb.md @@ -344,6 +344,31 @@ Using a dictionary allows you to assign custom names to your secrets for better ) ``` +##### S3-Compatible Endpoint Example + +An `s3` secret targets Amazon S3 by default. To use another S3-compatible object store (for example Backblaze B2, Cloudflare R2, or MinIO), set `endpoint` to the provider's S3 host: + +=== "YAML" + + ```yaml linenums="1" + gateways: + duckdb: + connection: + type: duckdb + catalogs: + local: local.db + remote: "s3://bucket/data/remote.duckdb" + extensions: + - name: httpfs + secrets: + - type: s3 + endpoint: "s3.example-region.example.com" + region: "YOUR_REGION" + key_id: "YOUR_ACCESS_KEY_ID" + secret: "YOUR_SECRET_ACCESS_KEY" + # url_style: path # For providers that require path-style addressing + ``` + After configuring the secrets, you can directly reference S3 paths in your catalogs or in SQL queries without additional authentication steps. Refer to the official DuckDB documentation for the full list of [supported S3 secret parameters](https://duckdb.org/docs/stable/extensions/httpfs/s3api.html#overview-of-s3-secret-parameters) and for more information on the [Secrets Manager configuration](https://duckdb.org/docs/configuration/secrets_manager.html). From ec01bbc6ec00c71050e1a09555a6148ffcf6ee1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Pe=C3=B1a-Castellanos?= Date: Thu, 26 Nov 2026 19:48:00 -0500 Subject: [PATCH 2/3] docs(duckdb): fold S3-compatible endpoint into existing examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gonzalo Peña-Castellanos --- docs/integrations/engines/duckdb.md | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/docs/integrations/engines/duckdb.md b/docs/integrations/engines/duckdb.md index 612572e7b3..fa64a8ed02 100644 --- a/docs/integrations/engines/duckdb.md +++ b/docs/integrations/engines/duckdb.md @@ -237,6 +237,7 @@ Using a list creates secrets with DuckDB's default naming: region: "YOUR_AWS_REGION" key_id: "YOUR_AWS_ACCESS_KEY" secret: "YOUR_AWS_SECRET_KEY" + # endpoint: "s3.example-region.example.com" # For S3-compatible providers ``` === "Python" @@ -266,7 +267,8 @@ Using a list creates secrets with DuckDB's default naming: "type": "s3", "region": "YOUR_AWS_REGION", "key_id": "YOUR_AWS_ACCESS_KEY", - "secret": "YOUR_AWS_SECRET_KEY" + "secret": "YOUR_AWS_SECRET_KEY", + # "endpoint": "s3.example-region.example.com", # For S3-compatible providers } ] ) @@ -344,30 +346,9 @@ Using a dictionary allows you to assign custom names to your secrets for better ) ``` -##### S3-Compatible Endpoint Example - -An `s3` secret targets Amazon S3 by default. To use another S3-compatible object store (for example Backblaze B2, Cloudflare R2, or MinIO), set `endpoint` to the provider's S3 host: +##### S3-Compatible Endpoints -=== "YAML" - - ```yaml linenums="1" - gateways: - duckdb: - connection: - type: duckdb - catalogs: - local: local.db - remote: "s3://bucket/data/remote.duckdb" - extensions: - - name: httpfs - secrets: - - type: s3 - endpoint: "s3.example-region.example.com" - region: "YOUR_REGION" - key_id: "YOUR_ACCESS_KEY_ID" - secret: "YOUR_SECRET_ACCESS_KEY" - # url_style: path # For providers that require path-style addressing - ``` +An `s3` secret targets Amazon S3 by default. To use another S3-compatible object store (for example Backblaze B2, Cloudflare R2, or MinIO), uncomment `endpoint` in the examples above and set it to the provider's S3 host, without `https://`. For providers that require path-style addressing, also set `url_style: path`. After configuring the secrets, you can directly reference S3 paths in your catalogs or in SQL queries without additional authentication steps. From 507cc4c27a32701785cddcb74c90ed8ac28f10a6 Mon Sep 17 00:00:00 2001 From: mday-io Date: Fri, 27 Nov 2026 17:57:08 -0500 Subject: [PATCH 3/3] docs(duckdb): move S3-compatible endpoints note below the general secrets notes The note sat above paragraphs that apply to every secret, so they read as part of it. Also point it at the List Format example, the only one with the endpoint line. Signed-off-by: mday-io --- docs/integrations/engines/duckdb.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/integrations/engines/duckdb.md b/docs/integrations/engines/duckdb.md index fa64a8ed02..dc6a3a078a 100644 --- a/docs/integrations/engines/duckdb.md +++ b/docs/integrations/engines/duckdb.md @@ -346,16 +346,16 @@ Using a dictionary allows you to assign custom names to your secrets for better ) ``` -##### S3-Compatible Endpoints - -An `s3` secret targets Amazon S3 by default. To use another S3-compatible object store (for example Backblaze B2, Cloudflare R2, or MinIO), uncomment `endpoint` in the examples above and set it to the provider's S3 host, without `https://`. For providers that require path-style addressing, also set `url_style: path`. - After configuring the secrets, you can directly reference S3 paths in your catalogs or in SQL queries without additional authentication steps. Refer to the official DuckDB documentation for the full list of [supported S3 secret parameters](https://duckdb.org/docs/stable/extensions/httpfs/s3api.html#overview-of-s3-secret-parameters) and for more information on the [Secrets Manager configuration](https://duckdb.org/docs/configuration/secrets_manager.html). > Note: Loading credentials at runtime using `load_aws_credentials()` or similar deprecated functions may fail when using SQLMesh. +##### S3-Compatible Endpoints + +An `s3` secret targets Amazon S3 by default. To use another S3-compatible object store (for example Backblaze B2, Cloudflare R2, or MinIO), uncomment `endpoint` in the List Format example and set it to the provider's S3 host, without `https://`. For providers that require path-style addressing, also set `url_style: path`. + ##### File system configuration example for Microsoft Onelake The `filesystems` accepts a list of file systems to register in the DuckDB connection. This is especially useful for Azure Storage Accounts, as it adds write support for DuckDB which is not natively supported by DuckDB (yet).