Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-15772

[Go][Flight] Server Basic Auth Middleware/Interceptor wrongly base64 decode

    XMLWordPrintableJSON

Details

    Description

      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:

      pyarrow._flight.FlightUnauthenticatedError: gRPC returned unauthenticated error, with message: invalid basic auth encoding: illegal base64 data at input byte XX

      StdEncoding would successfully read the content if RawStdEncoding fails.

      Attachments

        Issue Links

          Activity

            People

              corentin_ Risselin Corentin
              corentin_ Risselin Corentin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m