Skip to content

fix(flight): return Unauthenticated for invalid unary auth tokens - #1070

Open
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/flight-unary-auth-status
Open

fix(flight): return Unauthenticated for invalid unary auth tokens#1070
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/flight-unary-auth-status

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Problem

The legacy Flight authentication interceptors reported the same invalid token differently: stream RPCs returned Unauthenticated, while unary RPCs returned PermissionDenied. Clients could not reliably distinguish invalid credentials from insufficient authorization.

Change

Return gRPC Unauthenticated from the unary interceptor when ServerAuthHandler.IsValid rejects a token, matching the stream interceptor.

Coverage

A focused interceptor test verifies the status code and confirms that the request handler is not invoked after authentication fails.

Validation

go test ./arrow/flight

@fallintoplace
fallintoplace requested a review from zeroshade as a code owner July 30, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant