Carlo Mazzaferro created ARROW-10460: ----------------------------------------
Summary: FlightRPC authentication mechanism changed and is undocumented, breaking current working code Key: ARROW-10460 URL: https://issues.apache.org/jira/browse/ARROW-10460 Project: Apache Arrow Issue Type: Bug Components: FlightRPC, Python Affects Versions: 2.0.0 Environment: MacOS Catalina, python 3.7.4 Reporter: Carlo Mazzaferro Fix For: 1.0.1 Authentication with FlightClient changed from version 1.0.1 to 2.0.0 and is undocumented. ``` >>> from pyarrow import __version__ >>> print(__version__ '1.0.1' >>> from handlers import ApiKeyClientAuthHandler # custom handler >>> from pyarrow.flight import ( ... FlightClient) >>> client = FlightClient(location="grpc+tcp://xxxxxxxxxx.com") >>> client.authenticate(ApiKeyClientAuthHandler(api_key="xxxxx")) ``` And the exact same code in 2.0.0 breaks ``` ``` >>> from pyarrow import __version__ >>> print(__version__) '2.0.0' >>> from handlers import ApiKeyClientAuthHandler # custom handler >>> from pyarrow.flight import ( ... FlightClient) >>> client = FlightClient(location="grpc+tcp://xxxxxxxxxx.com") >>> client.authenticate(ApiKeyClientAuthHandler(api_key="xxxxx")) ``` What happened? -- This message was sent by Atlassian Jira (v8.3.4#803005)