netty: Per-rpc call option authority verification against peer cert subject names#11724
netty: Per-rpc call option authority verification against peer cert subject names#11724kannanjgithub merged 81 commits intogrpc:masterfrom
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
ejona86
left a comment
There was a problem hiding this comment.
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
ejona86
left a comment
There was a problem hiding this comment.
Test run inside Google looked good
…grpc#11724) Per-rpc verification of authority specified via call options or set by the LB API against peer cert's subject names.
No description provided.