You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/integrations/engines/duckdb.md
+66-2Lines changed: 66 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@
17
17
|`catalogs`| Mapping to define multiple catalogs. Can [attach DuckDB catalogs](#duckdb-catalogs-example) or [catalogs for other connections](#other-connection-catalogs-example). First entry is the default catalog. Cannot be defined if using `database`. | dict | N |
18
18
|`extensions`| Extension to load into duckdb. Only autoloadable extensions are supported. | list | N |
19
19
|`connector_config`| Configuration to pass into the duckdb connector. | dict | N |
20
+
|`secrets`| Configuration for authenticating external sources (e.g., S3) using DuckDB secrets. | dict | N |
20
21
21
22
#### DuckDB Catalogs Example
22
23
@@ -141,6 +142,69 @@ If a connector, like Postgres, requires sensitive information in the path, it mi
141
142
142
143
DuckDB can read data directly from cloud services via extensions (e.g., [httpfs](https://duckdb.org/docs/extensions/httpfs/s3api), [azure](https://duckdb.org/docs/extensions/azure)).
143
144
144
-
Loading credentials at runtime using `load_aws_credentials()` or similar functions may fail when using SQLMesh.
145
+
The `secrets` option allows you to configure DuckDB's [Secrets Manager](https://duckdb.org/docs/configuration/secrets_manager.html) to authenticate with external services like S3. This is the recommended approach for cloud storage authentication in DuckDB v0.10.0 and newer, replacing the [legacy authentication method](https://duckdb.org/docs/stable/extensions/httpfs/s3api_legacy_authentication.html) via variables.
145
146
146
-
Instead, create persistent and automatically used authentication credentials with the [DuckDB secrets manager](https://duckdb.org/docs/configuration/secrets_manager.html) (available in DuckDB v0.10.0 or greater).
147
+
##### Secrets Configuration Example for S3
148
+
149
+
The `secrets` accepts a list of secret configurations, each defining the necessary authentication parameters for the specific service:
After configuring the secrets, you can directly reference S3 paths in your catalogs or in SQL queries without additional authentication steps.
207
+
208
+
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).
209
+
210
+
> Note: Loading credentials at runtime using `load_aws_credentials()` or similar deprecated functions may fail when using SQLMesh.
0 commit comments