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
The adls.sas-token key:value being emitted is adls.sas-token.{account_host}:{sas-token} which works in Spark client but not other clients like PyIceberg #1146.
Traceback (most recent call last):
File "/Users/tbenroeck/Documents/code/polaris_testing/.venv/lib/python3.12/site-packages/pyiceberg/catalog/rest.py", line 375, in _fetch_access_token
response.raise_for_status()
File "/Users/tbenroeck/Documents/code/polaris_testing/.venv/lib/python3.12/site-packages/requests/models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://tv23016.west-us-2.azure.snowflakecomputing.com/polaris/api/catalog/v1/oauth/tokens
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/tbenroeck/Documents/code/polaris_testing/simple_polaris.py", line 21, in<module>
catalog = load_catalog(
^^^^^^^^^^^^^
File "/Users/tbenroeck/Documents/code/polaris_testing/.venv/lib/python3.12/site-packages/pyiceberg/catalog/__init__.py", line 261, in load_catalog
return AVAILABLE_CATALOGS[catalog_type](name, cast(Dict[str, str], conf))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/tbenroeck/Documents/code/polaris_testing/.venv/lib/python3.12/site-packages/pyiceberg/catalog/__init__.py", line 136, in load_rest
return RestCatalog(name, **conf)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/tbenroeck/Documents/code/polaris_testing/.venv/lib/python3.12/site-packages/pyiceberg/catalog/rest.py", line 263, in __init__
self._fetch_config()
File "/Users/tbenroeck/Documents/code/polaris_testing/.venv/lib/python3.12/site-packages/pyiceberg/catalog/rest.py", line 386, in _fetch_config
with self._create_session() as session:
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/tbenroeck/Documents/code/polaris_testing/.venv/lib/python3.12/site-packages/pyiceberg/catalog/rest.py", line 280, in _create_session
self._refresh_token(session, self.properties.get(TOKEN))
File "/Users/tbenroeck/Documents/code/polaris_testing/.venv/lib/python3.12/site-packages/pyiceberg/catalog/rest.py", line 546, in _refresh_token
self.properties[TOKEN] = self._fetch_access_token(session, self.properties[CREDENTIAL])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/tbenroeck/Documents/code/polaris_testing/.venv/lib/python3.12/site-packages/pyiceberg/catalog/rest.py", line 377, in _fetch_access_token
self._handle_non_200_response(exc, {400: OAuthError, 401: OAuthError})
File "/Users/tbenroeck/Documents/code/polaris_testing/.venv/lib/python3.12/site-packages/pyiceberg/catalog/rest.py", line 471, in _handle_non_200_response
raise exception(response) from exc
pyiceberg.exceptions.OAuthError: unauthorized_client: The client is not authorized
Actual Behavior
No response
Expected Behavior
No response
Additional context
I created a custom FileIO fix as a temporary workaround
Is this a possible security vulnerability?
Describe the bug
The adls.sas-token key:value being emitted is adls.sas-token.{account_host}:{sas-token} which works in Spark client but not other clients like PyIceberg #1146.
To support more clients Polaris should also set:
To Reproduce
Actual Behavior
No response
Expected Behavior
No response
Additional context
I created a custom FileIO fix as a temporary workaround
System information
No response
The text was updated successfully, but these errors were encountered: