Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33667

Support SASL authentication in IRC

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: ircbot-plugin
    • Labels:
      None
    • Environment:
      jenkins 1.653 ircbot 2.27
    • Similar Issues:

      Description

      Freenode IRC (chat.freenode.net) blacklists many IPs (e.g. a lot of AWS hosts) and requires them to use SASL to authenticate.

      The latest version of pircbotx supports SASL, so the ircbot plugin could be upgraded to this version and expose an option to use SASL.
      https://github.com/TheLQ/pircbotx/wiki/Documentation#sasl-authentication

      This is the jenkins log with the current plugin, it fails with "Notice – You need to identify via SASL to use this server":

      Mar 18, 2016 8:06:26 PM hudson.plugins.ircbot.v2.IRCConnection connect
      INFO: Connecting to chat.freenode.net:7000 as leeeeroy using charset UTF-8
      Mar 18, 2016 8:06:26 PM org.pircbotx.PircBotX connect
      INFO: Connected to server.
      Mar 18, 2016 8:06:26 PM org.pircbotx.output.OutputRaw rawLineNow
      INFO: NICK leeeeroy
      Mar 18, 2016 8:06:26 PM org.pircbotx.output.OutputRaw rawLineNow
      INFO: USER PircBotx 8 * :PircBotX 2.0.1, a fork of PircBot, the Java IRC bot - p
      ircbotx.googlecode.com
      Mar 18, 2016 8:06:26 PM org.pircbotx.InputParser handleLine
      INFO: :weber.freenode.net NOTICE * :*** Looking up your hostname...
      Mar 18, 2016 8:06:26 PM hudson.plugins.ircbot.v2.PircListener onNotice
      INFO: Notice from weber.freenode.net: '*** Looking up your hostname...'
      Mar 18, 2016 8:06:26 PM org.pircbotx.InputParser handleLine
      INFO: :weber.freenode.net NOTICE * :*** Checking Ident
      Mar 18, 2016 8:06:26 PM hudson.plugins.ircbot.v2.PircListener onNotice
      INFO: Notice from weber.freenode.net: '*** Checking Ident'
      Mar 18, 2016 8:06:26 PM org.pircbotx.InputParser handleLine
      INFO: :weber.freenode.net NOTICE * :*** Found your hostname
      Mar 18, 2016 8:06:26 PM hudson.plugins.ircbot.v2.PircListener onNotice
      INFO: Notice from weber.freenode.net: '*** Found your hostname'
      Mar 18, 2016 8:06:36 PM org.pircbotx.InputParser handleLine
      INFO: :weber.freenode.net NOTICE * :*** No Ident response
      Mar 18, 2016 8:06:36 PM hudson.plugins.ircbot.v2.PircListener onNotice
      INFO: Notice from weber.freenode.net: '*** No Ident response'
      Mar 18, 2016 8:06:36 PM org.pircbotx.InputParser handleLine
      INFO: :weber.freenode.net NOTICE leeeeroy :*** Notice -- You need to identify via SASL to use this server
      Mar 18, 2016 8:06:36 PM hudson.plugins.ircbot.v2.PircListener onNotice
      INFO: Notice from weber.freenode.net: '*** Notice -- You need to identify via SASL to use this server'
      Mar 18, 2016 8:06:36 PM org.pircbotx.InputParser handleLine
      INFO: ERROR :Closing Link: ec2-XX-XXX-XXX-XXX.us-west-2.compute.amazonaws.com (SASL access only)
      Mar 18, 2016 8:06:37 PM org.pircbotx.dcc.DccHandler close
      INFO: Terminating all transfers waiting to be accepted
      Mar 18, 2016 8:06:37 PM org.pircbotx.PircBotX startLineProcessing
      INFO: Shutdown has been called, closing InputParser
      

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Drew DeVault
          Path:
          src/main/java/hudson/plugins/ircbot/IrcPublisher.java
          src/main/java/hudson/plugins/ircbot/v2/IRCConnection.java
          src/main/resources/hudson/plugins/ircbot/IrcPublisher/global.jelly
          http://jenkins-ci.org/commit/ircbot-plugin/ceb74d78feb78176d7087493047682ae00fc209a
          Log:
          Add support for SASL authentication

          [FIXED JENKINS-33667]

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Drew DeVault Path: src/main/java/hudson/plugins/ircbot/IrcPublisher.java src/main/java/hudson/plugins/ircbot/v2/IRCConnection.java src/main/resources/hudson/plugins/ircbot/IrcPublisher/global.jelly http://jenkins-ci.org/commit/ircbot-plugin/ceb74d78feb78176d7087493047682ae00fc209a Log: Add support for SASL authentication [FIXED JENKINS-33667]

            People

            Assignee:
            sircmpwn Drew DeVault
            Reporter:
            rectalogic Andrew Wason
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: