Skip to content

Commit 9b58f5e

Browse files
committed
Send X-Iceberg-Access-Delegation header to signal support for vended credentials/remote signing
Clients can optionally send this header to signal which delegated access pattern it can support. At this point the iceberg-python client can support `vended-credentials` and `remote-signing`, thus we can always send this header. Addtional details about this header can be found in the REST OpenAPI spec: https://github.com/apache/iceberg/blob/main/open-api/rest-catalog-open-api.yaml#L1459-L1483
1 parent e9e265a commit 9b58f5e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyiceberg/catalog/rest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ def _create_session(self) -> Session:
237237
session.headers["Content-type"] = "application/json"
238238
session.headers["X-Client-Version"] = ICEBERG_REST_SPEC_VERSION
239239
session.headers["User-Agent"] = f"PyIceberg/{__version__}"
240+
session.headers["X-Iceberg-Access-Delegation"] = "vended-credentials,remote-signing"
240241

241242
# Configure SigV4 Request Signing
242243
if str(self.properties.get(SIGV4, False)).lower() == "true":

0 commit comments

Comments
 (0)