Skip to content

Commit 236c3bf

Browse files
fix(FS-1204): ibm watsonx s3 destination bucket auth (#594)
1 parent faa01c9 commit 236c3bf

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.2.14
2+
3+
* **Fix: IBM watsonx.data S3 bucket authentication fix**
4+
15
## 1.2.13
26

37
* **Feat: Make Bedrock embedding credentials optional and add IAM support**

test/unit/connectors/ibm_watsonx/test_ibm_watsonx_s3.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ def test_ibm_watsonx_connection_config_get_catalog_success(
243243
"s3.access-key-id": "test_access_key_id",
244244
"s3.secret-access-key": "test_secret_access_key",
245245
"s3.region": "test_region",
246+
"header.X-Iceberg-Access-Delegation": None,
246247
}
247248
)
248249

unstructured_ingest/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.2.13" # pragma: no cover
1+
__version__ = "1.2.14" # pragma: no cover

unstructured_ingest/processes/connectors/ibm_watsonx/ibm_watsonx_s3.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ def get_catalog_config(self) -> dict[str, Any]:
147147
"s3.access-key-id": self.access_config.get_secret_value().access_key_id,
148148
"s3.secret-access-key": self.access_config.get_secret_value().secret_access_key,
149149
"s3.region": self.object_storage_region,
150+
# By default this header is set to `vended-credentials`, and default bucket
151+
# configuration doesn't allow vending credentials. We need to set it to `None`
152+
# in order to use user-provided S3 credentials.
153+
"header.X-Iceberg-Access-Delegation": None,
150154
}
151155

152156
@requires_dependencies(["pyiceberg"], extras="ibm-watsonx-s3")

0 commit comments

Comments
 (0)