-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
netty: Per-rpc call option authority verification against peer cert subject names #11724
base: master
Are you sure you want to change the base?
Conversation
I don't know what this error is about: java/netty/src/main/java/io/grpc/netty/ProtocolNegotiators.java:621:18: 'public' modifier out of order with the JLS suggestions. [ModifierOrder] |
JLS == Java Language Specification The relevant part of the style guide: |
…ler instead of the Protocol negotiator.
…et the attribute for the hostname verifier.
# Conflicts: # examples/example-tls/src/main/java/io/grpc/examples/helloworldtls/HelloWorldClientTls.java
…oritychecktls # Conflicts: # core/src/main/java/io/grpc/internal/CertificateUtils.java # okhttp/src/main/java/io/grpc/okhttp/OkHttpChannelBuilder.java
netty/src/main/java/io/grpc/netty/GrpcHttp2OutboundHeaders.java
Outdated
Show resolved
Hide resolved
netty/src/main/java/io/grpc/netty/GrpcHttp2OutboundHeaders.java
Outdated
Show resolved
Hide resolved
netty/src/main/java/io/grpc/netty/GrpcHttp2OutboundHeaders.java
Outdated
Show resolved
Hide resolved
netty/src/main/java/io/grpc/netty/GrpcHttp2OutboundHeaders.java
Outdated
Show resolved
Hide resolved
I'm now only doing the authority verification if the transport authority is different from the one in the headers.
As a subsequent work I assume. After the changes to disallow authority override without having a verifier in the attributes, the |
netty/src/main/java/io/grpc/netty/GrpcHttp2OutboundHeaders.java
Outdated
Show resolved
Hide resolved
netty/src/main/java/io/grpc/netty/GrpcHttp2OutboundHeaders.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before we merge, let's run some tests inside Google to make sure this doesn't break anything. (Since the risk is high, it is better to run them before merging to avoid needing to revert the PR.) I'll start them today.
netty/src/main/java/io/grpc/netty/GrpcHttp2OutboundHeaders.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test run inside Google looked good
No description provided.