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

User without READ cannot logout from CLI with remoting

    XMLWordPrintable

Details

    Description

      If you have a security realm that allow user without READ to connect, the CLI will not accept a Logout command from that user.

      $ java -jar /Users/<user>/Projects/jenkins/test/target/junit<random>/jenkins-cli.jar -s http://localhost:<port>/jenkins/ -noKeyAuth -auth user:user logout
      ERROR: user is missing the Overall/Read permission
      

      It seems this line is the culprit.

      PS: that auth method is currently deprecated if I recall correctly.

      Attachments

        Issue Links

          Activity

            oleg_nenashev Oleg Nenashev added a comment -

            The entire Remoting CLI is deprecated. It still makes sense to fix it if this is a quick win, but it's not mandatory

            oleg_nenashev Oleg Nenashev added a comment - The entire Remoting CLI is deprecated. It still makes sense to fix it if this is a quick win, but it's not mandatory
            oleg_nenashev Oleg Nenashev added a comment -

            It has been released in 2.113. Looks like LTS candidate

            oleg_nenashev Oleg Nenashev added a comment - It has been released in 2.113. Looks like LTS candidate

            Code changed in jenkins
            User: Wadeck Follonier
            Path:
            core/src/main/java/hudson/cli/CLICommand.java
            test/src/test/java/hudson/cli/CLIActionTest.java
            http://jenkins-ci.org/commit/jenkins/8a2f9865e8dfc4b25de603b693dcc09a99be85af
            Log:
            JENKINS-50324 User without READ cannot logout - or even ask who they are

            (cherry picked from commit b5ed977bbca76f0ff1cd09ea9767d876e98aa64e)

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Wadeck Follonier Path: core/src/main/java/hudson/cli/CLICommand.java test/src/test/java/hudson/cli/CLIActionTest.java http://jenkins-ci.org/commit/jenkins/8a2f9865e8dfc4b25de603b693dcc09a99be85af Log: JENKINS-50324 User without READ cannot logout - or even ask who they are (cherry picked from commit b5ed977bbca76f0ff1cd09ea9767d876e98aa64e)

            People

              wfollonier Wadeck Follonier
              wfollonier Wadeck Follonier
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: