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

Add external sasl with with key/cert (tested on freenode) #1062

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Francesco149
Copy link

NOTE: this requires matrix-org/node-irc#48 to be merged to build correctly (it references that commit in the package-lock)

this allows authenticating through sasl external on services like freenode by specifying cert and key and setting saslMode to EXTERNAL. tested on freenode from my ec2 instance

see the node-irc pull for more info

this also gets around the issue of having a hardcoded bot name since the external auth on freenode doesn't care if your nickname matches

Copy link
Contributor

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One concern, but otherwise this is remarkably clean and good. I wish we had gotten to it sooner!

Oh and this needs a changelog file, as described in CONTRIBUTING.md

src/irc/ConnectionInstance.ts Show resolved Hide resolved
@Francesco149
Copy link
Author

i added the check and rebased to develop. not tested but only the 3 line check for the password and the node-irc commit hash have changed

@Francesco149
Copy link
Author

rebased again, tested on freenode and can confirm it works great

Copy link
Contributor

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks fine, but CI needs fixing (check the tests and linting). You'll also need to sign off as per https://github.com/matrix-org/matrix-appservice-irc/blob/develop/CONTRIBUTING.md#making-pull-requests

@Half-Shot Half-Shot requested a review from a team as a code owner June 9, 2023 14:38
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