-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[security] Allow to config web server's cipher and protocols #13354
[security] Allow to config web server's cipher and protocols #13354
Conversation
226d92c
to
462aafe
Compare
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.
Could you please add a test to cover this?
5dbef5a
to
07df6e3
Compare
Yes, add tests to test ciphers and protocols on jetty server. |
8fe8031
to
f64ec8e
Compare
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.
Overall it looks good to me
I left some comments about the tests
...ava/org/apache/pulsar/common/util/keystoretls/JettySslContextFactoryWithAutoRefreshTest.java
Outdated
Show resolved
Hide resolved
...ava/org/apache/pulsar/common/util/keystoretls/JettySslContextFactoryWithAutoRefreshTest.java
Outdated
Show resolved
Hide resolved
...ava/org/apache/pulsar/common/util/keystoretls/JettySslContextFactoryWithAutoRefreshTest.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.
LGTM
...ava/org/apache/pulsar/common/util/keystoretls/JettySslContextFactoryWithAutoRefreshTest.java
Outdated
Show resolved
Hide resolved
...ava/org/apache/pulsar/common/util/keystoretls/JettySslContextFactoryWithAutoRefreshTest.java
Outdated
Show resolved
Hide resolved
@codelipenghui @lhotari @michaeljmarshall @merlimat @315157973 @hangc0276 PTAL, thanks |
9ee178f
to
c8163cd
Compare
@eolivelli PTAL, again, thanks |
...ava/org/apache/pulsar/common/util/keystoretls/JettySslContextFactoryWithAutoRefreshTest.java
Show resolved
Hide resolved
/pulsarbot run-failure-checks |
@eolivelli PTAL, again, thanks |
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
It looks like our tests are all based on JDK 11 currently so that this test failure was not detected. And I found some other PRs that rely on this PR. |
It looks like it's because the JKS files are generated by a higher version JDK. IMO, committing binaries files are terrible to maintain for developers. It's necessary to describe how to generate this files if we need to do so. Or should we add the steps to CI instead of uploading these binaries? |
@BewareMyPower what's your java8 version, I remember it needs higher java8 version. |
1.8.0_261 |
It's right. I switched to 1.8.0_332 and it works now. |
I agree. We could require adding a README.md in the same directory as the file with instructions on how to re-build the binaries. This will help PR reviewers and make maintenance easier (especially for things like certs that have expiration dates in the near future). |
Yeah, there was once a similar issue (#9607) that broke the whole CI. |
@michaeljmarshall @BewareMyPower Thanks for your advice, I will follow up on this. |
Hi @Shoothzj |
@mattisonchao I am afraid I don't have time this week. But don't worry, @Lico-Tom will help open a new PR |
…pache#13354)" This reverts commit 3c0f869.
@Shoothzj It looks like cherry-picked pull request a118ab9 already cover this change in branch-2.9. Could you have time to help check it? |
@mattisonchao Yes, It's already covered this change. |
@mattisonchao @Shoothzj Does it mean there is no need to cherry-pick this PR? If yes, I think it would be better to remove all |
I removed these labels after confirming it from @mattisonchao. |
Motivation
For the security, people want to config the support
ciphers
andprotocols
Modifications
ciphers
andprotocols
ciphers
andprotocols
are null, same as before.Documentation
Check the box below and label this PR (if you have committer privilege).
Need to update docs?
doc
this PR contains config file change. IMHO, the doc will be auto generated.