Skip to content

binder: SecurityPolicy *failure* (not auth rejection) should be described to peers in a uniform opaque way #12873

@jdcormie

Description

@jdcormie

What environment/version of gRPC-Java are you using?

HEAD, any platform

Steps to reproduce the bug

Configure a binder grpc server with an AsyncSecurityPolicy whose checkAuthorizationAsync() method returns futures that take ~1 second to fail with new IOException("ouch"). Make two calls to this server, one after the other on the same Channel.

What did you expect to see?

Both calls should fail with INTERNAL / "Authorization future failed" (or similar description)

What did you see instead?

The first call will fail as expected, taking the !isDone() code path in BinderTransportSecurity's ServerAuthInterceptor. Subsequent calls will take the Futures.getDone() path, be handled here and fail with code INTERNAL and description "ouch"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions