-
Notifications
You must be signed in to change notification settings - Fork 910
Enable client TLS auth for Netty #1390
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
Conversation
7b4d85f
to
0e435fd
Compare
BTW the JDK11 failure in Travis
appears to caused by this open bug in SpotBugs: spotbugs/spotbugs#756 It's complaining about this bit: Lines 50 to 53 in 93269d4
|
...-nio-client/src/main/java/software/amazon/awssdk/http/nio/netty/NettyNioAsyncHttpClient.java
Outdated
Show resolved
Hide resolved
...src/main/java/software/amazon/awssdk/http/nio/netty/internal/StaticKeyManagerFactorySpi.java
Outdated
Show resolved
Hide resolved
...src/main/java/software/amazon/awssdk/http/nio/netty/internal/StaticKeyManagerFactorySpi.java
Show resolved
Hide resolved
...y-nio-client/src/test/java/software/amazon/awssdk/http/nio/netty/NettyClientTlsAuthTest.java
Outdated
Show resolved
Hide resolved
...test/java/software/amazon/awssdk/http/nio/netty/internal/StaticKeyManagerFactorySpiTest.java
Show resolved
Hide resolved
...src/main/java/software/amazon/awssdk/http/nio/netty/internal/StaticKeyManagerFactorySpi.java
Show resolved
Hide resolved
...nt/src/main/java/software/amazon/awssdk/http/nio/netty/internal/StaticKeyManagerFactory.java
Show resolved
Hide resolved
...t/src/main/java/software/amazon/awssdk/http/nio/netty/internal/AwaitCloseChannelPoolMap.java
Outdated
Show resolved
Hide resolved
...-nio-client/src/main/java/software/amazon/awssdk/http/nio/netty/NettyNioAsyncHttpClient.java
Show resolved
Hide resolved
...-nio-client/src/main/java/software/amazon/awssdk/http/nio/netty/NettyNioAsyncHttpClient.java
Outdated
Show resolved
Hide resolved
...-nio-client/src/main/java/software/amazon/awssdk/http/nio/netty/NettyNioAsyncHttpClient.java
Outdated
Show resolved
Hide resolved
...t/src/main/java/software/amazon/awssdk/http/nio/netty/internal/AwaitCloseChannelPoolMap.java
Outdated
Show resolved
Hide resolved
...nt/src/main/java/software/amazon/awssdk/http/nio/netty/internal/StaticKeyManagerFactory.java
Outdated
Show resolved
Hide resolved
fe3a5fe
to
47e73f3
Compare
...clients/apache-client/src/main/java/software/amazon/awssdk/http/apache/ApacheHttpClient.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #1390 +/- ##
============================================
+ Coverage 71.13% 71.19% +0.05%
- Complexity 650 654 +4
============================================
Files 839 843 +4
Lines 26538 26608 +70
Branches 2091 2097 +6
============================================
+ Hits 18879 18943 +64
- Misses 6795 6804 +9
+ Partials 864 861 -3
Continue to review full report at Codecov.
|
keyManagers = keyManagersProvider.keyManagers(); | ||
TlsKeyManagersProvider provider = standardOptions.get(TLS_KEY_MANAGERS_PROVIDER); | ||
if (provider == null) { | ||
provider = SystemPropertyTlsKeyManagersProvider.create(); | ||
} |
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.
Is this still needed now that we have mergeDefaults?
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.
lgtm, other than the one small comment
d944cbd
to
c984051
Compare
This commit enables customers to configure a TlsKeyManagersProvider on the Netty client which will be used to authenticate the client during client TLS authentication.
c984051
to
d101175
Compare
Description
This commit enables customers to configure a TlsKeyManagersProvider on the Netty
client which will be used to authenticate the client during client TLS
authentication.
Motivation and Context
Part of new feature, see #858.
Testing
New unit tests.
Screenshots (if appropriate)
Types of changes
Checklist
mvn install
succeedsLicense