New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIXED JENKINS-33599] write file with admin password for installer #2142
Conversation
…ile-for-security-token
Note that we already go much beyond what normal webapps do, which is to show the initial configuration dialog unauthenticated to anyone with access.
In fact it's desirable not to have them to keep things more POJO
and its dataflow analysis warning
@reviewbybees in particular @daniel-beck |
This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation. |
... so that the nature of this file is little more clearer
<j:if test="${error}"> | ||
<div class="alert alert-danger"> | ||
<strong>${%ERROR:} </strong> | ||
${%There is a problem with the security token, please check the logs for the correct token} | ||
${%The password entered is incorrect, please check the file for the correct password} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given how often the wording of these messages change, maybe it makes sense to move them into the .properties file?
👍 |
[FIXED JENKINS-33599] write file with admin password for installer
This takes over PR #2138.
To make finding the initial admin password easier, write it to a file and display the location of the file so the user knows exactly where to look. Also removed tracking in the user object, as this was just so the token was available across restarts (previously using a custom
UserProperty
).This addresses: https://issues.jenkins-ci.org/browse/JENKINS-33599
In addition to initial PR #2138, the following has been added to address the comments:
$JENKINS_HOME/secrets
where other files of this nature are in.