mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 20:44:00 +00:00
feat: add Azure storage account access key support to SDKs (#5177)
Add `azure_storage_account_access_key_secret` to the sync and async
Python storage integration APIs, with a matching Rust constructor. The
SDK sends a Secret reference in SQL and decodes the reference returned
by CREATE and DESCRIBE.
```python
info = db.create_storage_integration(
"blobs", "az://customer-data/raw/",
storage_provider="AZURE",
azure_storage_account="customeraccount",
azure_storage_account_access_key_secret="azure_key",
)
```
Azure requires a storage account and one authentication mode. The
account access key uses a single Secret. Service principal
authentication uses the existing three Secret references.
This commit is contained in:
@@ -97,9 +97,12 @@ CREATE STORAGE INTEGRATION blobs
|
||||
| `STORAGE_AZURE_TENANT_ID_SECRET` | Secret ref | Entra ID tenant |
|
||||
| `STORAGE_AZURE_CLIENT_ID_SECRET` | Secret ref | service principal client ID |
|
||||
| `STORAGE_AZURE_CLIENT_SECRET_SECRET` | Secret ref | service principal client secret |
|
||||
| `STORAGE_AZURE_STORAGE_ACCOUNT_ACCESS_KEY_SECRET` | Secret ref | storage account access key for Azure Shared Key authorization |
|
||||
|
||||
All four are required together; there is no role-based alternative for
|
||||
Azure.
|
||||
Specify the storage account and choose one credential mode. Service principal
|
||||
authentication requires all three service principal Secret references. Shared
|
||||
Key authentication requires the account access key Secret reference and an Azure
|
||||
storage account that allows Shared Key authorization.
|
||||
|
||||
### GCP {#gcp}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user