Skip to content

Conversation

olavloite
Copy link
Collaborator

Add a connection property for setting a gRPC interceptor provider to use for connections. This allows JDBC and PGAdapter users to set a gRPC interceptor that should be used for the underlying Spanner client.

This property is a guarded property, as it dynamically invokes the constructor of the class that is specified in the connection URL. A user must set the Java System property ENABLE_GRPC_INTERCEPTOR_PROVIDER=true when using this connection property. It should only be enabled in applications where an untrusted user cannot modify the connection URL that is being used, as that would allow an untrusted user to dynamically invoke code on the application host.

Add a connection property for setting a gRPC interceptor provider to use for connections.
This allows JDBC and PGAdapter users to set a gRPC interceptor that should be used for
the underlying Spanner client.

This property is a guarded property, as it dynamically invokes the constructor of the
class that is specified in the connection URL. A user must set the Java System property
ENABLE_GRPC_INTERCEPTOR_PROVIDER=true when using this connection property. It should
only be enabled in applications where an untrusted user cannot modify the connection URL
that is being used, as that would allow an untrusted user to dynamically invoke code on
the application host.
@olavloite olavloite requested review from a team as code owners October 8, 2025 08:52
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/java-spanner API. labels Oct 8, 2025
@olavloite olavloite requested a review from rahul2393 October 8, 2025 08:52
@olavloite olavloite merged commit deb8dff into main Oct 8, 2025
40 of 43 checks passed
@olavloite olavloite deleted the add-connection-property-for-grpc-interceptor-provider branch October 8, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/java-spanner API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants