FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: add connection property for gRPC interceptor provider by olavloite · Pull Request #4149 · googleapis/java-spanner · GitHub

This repository was archived by the owner on Apr 7, 2026. It is now read-only.
/ java-spanner Public archive

feat: add connection property for gRPC interceptor provider - #4149

Merged
olavloite merged 2 commits into
mainfrom
add-connection-property-for-grpc-interceptor-provider
Oct 8, 2025
Merged

feat: add connection property for gRPC interceptor provider#4149
olavloite merged 2 commits into
mainfrom
add-connection-property-for-grpc-interceptor-provider

Conversation

Copy link
Copy Markdown
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 requested review from a team October 8, 2025 08:52
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 requested a review from rahul2393 October 8, 2025 08:52
olavloite merged commit deb8dff into main Oct 8, 2025
40 of 43 checks passed
olavloite deleted the add-connection-property-for-grpc-interceptor-provider branch October 8, 2025 15:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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


Back | FazBrowse Home | New Git URL