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

Finding security token from console log can be very hard

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • core

      The new security setup wizard in alpha-3 requies that the new user provides a security token that's printed to console to proceed, but knowing where it goes really isn't easy. You see some beginning of it in this Wiki page, but this is still far from complete.

      For example, on Windows %JENKINS_HOME% is something the user can override during the setup, which I think defaults to either c:\jenkins or %APPDATA%\jenkins that I can't remember. The latter location would be different depending on Windows versions. And if you are a kind of guy who just clicks Next, Next, and Next, you probably don't know where it is.

      On OS X, we support two ways of installing it, and they put things to different locations. I don't know exactly where so I couldn't add it to the page.

      Then there's a whole can of worm about running Jenkins on a servlet container, which can do any number of things depending on how you installed the said servlet container.

      I think this is too much hassle, especially given that I cannot think of any other tools that do this much. For example, Atlassian tools show the setup wizard to anyone accessing it.

      I suggest we consider alternative ways of authenticating the user:

      • Create a random file name under $JENKINS_HOME and ask the user to touch that file by showing the path.
      • Instead of printing it out to stdout, create a file under $JENKINS_HOME and ask the user to paste in its content.

      Both of these remove any ambiguity and sufficiently authenticate the user.

      Daniel raised that this approach reveals the location of $JENKINS_HOME but I don't consider that a vulnerability by itself. This only happens briefly during the setup anyway.

          [JENKINS-33599] Finding security token from console log can be very hard

          Kohsuke Kawaguchi created issue -
          Kohsuke Kawaguchi made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: core [ 21434 ]
          Key Original: WEBSITE-136 New: JENKINS-33599
          Workflow Original: WEBSITE: Software Development Workflow [ 169555 ] New: JNJira [ 169555 ]
          Project Original: Jenkins Website [ 10401 ] New: Jenkins [ 10172 ]
          Status Original: To Do [ 10003 ] New: Open [ 1 ]
          Keith Zantow made changes -
          Assignee New: Keith Zantow [ kzantow ]
          Keith Zantow made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Keith Zantow made changes -
          Remote Link New: This issue links to "PR 2138 (Web Link)" [ 14086 ]
          Kohsuke Kawaguchi made changes -
          Labels Original: 2.0 New: 2.0 2.0-planned
          Kohsuke Kawaguchi made changes -
          Assignee Original: Keith Zantow [ kzantow ] New: Kohsuke Kawaguchi [ kohsuke ]
          Kohsuke Kawaguchi made changes -
          Remote Link New: This issue links to "PR 2142 (Web Link)" [ 14093 ]
          Kohsuke Kawaguchi made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 169556 ] New: JNJira + In-Review [ 198633 ]

            kohsuke Kohsuke Kawaguchi
            kohsuke Kohsuke Kawaguchi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: