-
Bug
-
Resolution: Won't Fix
-
Critical
Hi,
If a user has a very old passwordhash defined in users/foo_xx/config.xml the new LTS release may lock the user out of jenkins.
This happened with my admin user (setup arund 2012).I spent > 1 day figuring this out and ruling out a security incident and would greatly appreciate that this was mentioned in the releasnotes of 2.277. I upgraded from 2.268.
- is duplicated by
-
JENKINS-64573 Cannot login in after 2.264
-
- Closed
-
- links to
[JENKINS-65107] The new LTS release may lock out old users
Labels | New: regression |
Priority | Original: Minor [ 4 ] | New: Critical [ 2 ] |
I can't duplicate the problem that you've described. Maybe there are details missing from your description?
Steps I used while failing to duplicate the problem:
$ wget https://fallback.get.jenkins.io/war/2.105/jenkins.war
$ mv jenkins.war jenkins-2.105.war && JENKINS_HOME=$(pwd) java -jar jenkins-2.105.war
$ wget https://get.jenkins.io/war-stable/2.277.1/jenkins.war
$ mv jenkins.war jenkins-2.277.1.war && JENKINS_HOME=$(pwd) java -jar jenkins-2.277.1.war
The passwordHash written by Jenkins 2.105 looks like this:
<passwordHash>#jbcrypt:$2a$10$oaFBLELplTbFIOw7khYbjusCMnXOnaP7vhNpEpBxW7PVeQRwbQvKW</passwordHash>
The passwordHash written by Jenkins 2.277.1 looks like this (in a file with a version 10 XML tag inside):
<passwordHash>#jbcrypt:$2a$10$oaFBLELplTbFIOw7khYbjusCMnXOnaP7vhNpEpBxW7PVeQRwbQvKW</passwordHash>
Maybe the password hash from much earlier than 2.105?
Did you follow the instructions in the Jenkins 2.277.1 upgrade guide by updating your authentication plugins before the upgrade to 2.277.1?