Skip to content
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

TrustEveryoneFactory in chat? #2161

Open
micheljung opened this issue Feb 25, 2021 · 6 comments
Open

TrustEveryoneFactory in chat? #2161

micheljung opened this issue Feb 25, 2021 · 6 comments

Comments

@micheljung
Copy link
Member

Just hopping in every now and then to see what you guys are doing :-)

For instance, why would we disable SSL verification and not even comment it in the code?

public class TrustEveryoneFactory extends TrustManagerFactory {

I'm pretty sure this isn't a smart move ;)

@Sheikah45
Copy link
Member

This was introduced in the change from PircBotX to KittehIRC and was used to replicate the configuration int PircBotx as seen here

.setSocketFactory(new UtilSSLSocketFactory().trustAllCertificates())

The purpose being to maintain the current functionality in the change over as kitteh connects over SSL by default.

@Sheikah45
Copy link
Member

I believe the trust all certificates was originally used due to certificate issues with the irc server but am not certain and this change mainly was focused on converting the service to similar functionality. However the service can be changed but would require input from Brutus or if you know as from my investigation the SSL was disabled since PircBotX was first implemented.

@Brutus5000
Copy link
Member

Since our reverse proxy supports raw TCP streams we could use TLS if we want to

@micheljung
Copy link
Member Author

micheljung commented Feb 25, 2021

With the chat sending passwords over the wire, (secure) TLS would surely be preferred. Oh, wait, we don't need to because we sha256(md5(md5(password))) right? ;D

@Sheikah45
Copy link
Member

yeah we currently still do perform that hashing acrobatics which would be nice to simplify

@Sheikah45
Copy link
Member

i just need to know from Brutus how the irc has its TLS configured

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants