Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add security warning to TrustStrategy implementations documentation #490

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

Merged
merged 2 commits into from
Oct 3, 2023
Merged

Add security warning to TrustStrategy implementations documentation #490

merged 2 commits into from
Oct 3, 2023

Conversation

Marcono1234
Copy link
Contributor

Tries to improve the documentation of TrustAllStrategy and TrustSelfSignedStrategy by mentioning their security implications and suggesting more secure alternatives.

For TrustSelfSignedStrategy it also documents what exactly the strategy does. Otherwise without looking at the implementation details users might erroneously think it is always necessary to use TrustSelfSignedStrategy when using self-signed certificates (even if they are also in the truststore), which is not the case.

Any feedback is appreciated!

@ok2c
Copy link
Member

ok2c commented Oct 2, 2023

@Marcono1234 I also propose TrustSelfSignedStrategy be deprecated in favor of SSLContextBuilder. The class is basically useless.

@Marcono1234
Copy link
Contributor Author

I also propose TrustSelfSignedStrategy be deprecated in favor of SSLContextBuilder. The class is basically useless.

Should I include this in this PR or create a separate one?

Also, should these changes be backported to 4.x; and in that case should I do that or do you want to do this afterwards?

@ok2c
Copy link
Member

ok2c commented Oct 2, 2023

@Marcono1234 Just deprecate TrustSelfSignedStrategyin the same PR.
I would not bother with a backport of the changes to 4.x but I will merge them if you raise a PR for the 4.x line.

@Marcono1234
Copy link
Contributor Author

Have pushed the changes, I hope that is what you had in mind.

@ok2c ok2c merged commit 9c83250 into apache:master Oct 3, 2023
@Marcono1234 Marcono1234 deleted the security-javadoc branch October 5, 2023 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.