• Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • ircbot-plugin
    • None
    • Hudson 1.350

      The IRC plugin provides a IRC bot so that users in the channel can trigger actions in Hudson. This is a nice feature, but currently there is no way to restrict the usage of these commands to a specific group of users. So any user in the channel can trigger jobs, stop them, etc.

      It would be nice if the plugin allowed specifying nicknames which have access to use these commands. The bot could ignore the rest of requests. And ideally it should check if the user is identified to services.

          [JENKINS-5931] Restrict IRC bot commands to specific users

          jpabloae created issue -

          kutzi added a comment -

          Reasonable request, but sounds a little bit like overkill to me. Next someone requests to allow some commands for some users and some other commands for some other users.
          What about a dedicated chatroom for privileged users? Would that suffice for you?

          Anyway, I wouldn't implement this anytime soon - mainly because I don't use the IRC plugin myself, so I don't have any motivation to.
          So, if you want this feature, the best way for you would be to create a patch.

          kutzi added a comment - Reasonable request, but sounds a little bit like overkill to me. Next someone requests to allow some commands for some users and some other commands for some other users. What about a dedicated chatroom for privileged users? Would that suffice for you? Anyway, I wouldn't implement this anytime soon - mainly because I don't use the IRC plugin myself, so I don't have any motivation to. So, if you want this feature, the best way for you would be to create a patch.

          jpabloae added a comment -

          What about a dedicated chatroom for privileged users? Would that suffice for you?

          Yes, I think it's a reasonable approach.

          So, if you want this feature, the best way for you would be to create a patch.

          Fair enough, I'll see what I can do.

          Thanks!

          jpabloae added a comment - What about a dedicated chatroom for privileged users? Would that suffice for you? Yes, I think it's a reasonable approach. So, if you want this feature, the best way for you would be to create a patch. Fair enough, I'll see what I can do. Thanks!
          kutzi made changes -
          Assignee Original: kutzi [ kutzi ]
          kutzi made changes -
          Link New: This issue is related to JENKINS-10827 [ JENKINS-10827 ]
          kutzi made changes -
          Link New: This issue is related to JENKINS-11606 [ JENKINS-11606 ]

          kutzi added a comment -

          Please note that because of JENKINS-11606 you can disable commands for a chatroom altogether.
          Maybe that is already enough for your use case.

          kutzi added a comment - Please note that because of JENKINS-11606 you can disable commands for a chatroom altogether. Maybe that is already enough for your use case.

          jpabloae added a comment -

          Nice! This definitely solves the problem in my case.

          Thank you.

          jpabloae added a comment - Nice! This definitely solves the problem in my case. Thank you.
          kutzi made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Askeing added a comment - - edited

          Today I found there still have some problems.
          If we send "/msg irc-bot irc-bot: help" to ircbot, the ircbot will allow the command.
          The "Command prefix" setting doesn't work in these case.

          Jenkins ver. 1.480.3
          IRC Plugin ver. 2.22

          Askeing added a comment - - edited Today I found there still have some problems. If we send "/msg irc-bot irc-bot: help" to ircbot, the ircbot will allow the command. The "Command prefix" setting doesn't work in these case. Jenkins ver. 1.480.3 IRC Plugin ver. 2.22

            Unassigned Unassigned
            jpabloae jpabloae
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: