[
https://issues.apache.org/jira/browse/ARROW-15772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Li reassigned ARROW-15772:
--------------------------------
Assignee: Risselin Corentin
> [Go][Flight] Server Basic Auth Middleware/Interceptor wrongly base64 decode
> ---------------------------------------------------------------------------
>
> Key: ARROW-15772
> URL: https://issues.apache.org/jira/browse/ARROW-15772
> Project: Apache Arrow
> Issue Type: Bug
> Components: Go
> Affects Versions: 6.0.1, 7.0.0
> Reporter: Risselin Corentin
> Assignee: Risselin Corentin
> Priority: Major
> Labels: easyfix, pull-request-available
> Fix For: 8.0.0
>
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> Currently the implementation of the Auth interceptors uses
> `base64.RawStdEncoding.DecodeString` to decode the content of the hanshake.
> In Go RawStdEncoding will not uses padding (with '='), trying to authenticate
> from pyarrow (with `client.authenticate_basic_token(user, password)`) will
> result in an error like:
> {quote}{{pyarrow._flight.FlightUnauthenticatedError: gRPC returned
> unauthenticated error, with message: invalid basic auth encoding: illegal
> base64 data at input byte XX}}
> {quote}
> StdEncoding would successfully read the content if RawStdEncoding fails.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)