justinmclean opened a new issue, #4211:
URL: https://github.com/apache/iggy/issues/4211

   ### Description
   
   When no root credentials are set, the server generates a root password on 
first start and logs it once:
   
   ```
   Generated root user password: <password>
   ```
   
   If the operator misses that line, there's no way to read the password again. 
The only recovery is to start over with an empty data directory, and only the 
README says so. The log message should say it.
   
   Split out of #4209.
   
   ### Affected area / component
   
   Iggy server
   
   ### Proposed solution
   
   In `create_root_credentials()` in `core/server/src/boot/credentials.rs`, 
extend the `warn!` that logs the generated password. Say that it is shown only 
once, and how to reset it on a single-node server, for example:
   
   ```
   Generated root user password: <password>. It is shown only once. To reset 
it, stop the server and delete the data directory, or start the server with 
--fresh. Both delete all stored data.
   ```
   
   Done looks like:
   
   - The message says the password is shown once and how to reset it.
   - `cargo test -p server` passes. Check the tests at the end of 
`credentials.rs` still pass, and update any that match the old message.
   
   ### Alternatives considered
   
   Log the reset hint as a separate line. One message is easier to spot and 
keeps the hint next to the password.
   
   ### Contribution
   
   - [ ] I'm willing to submit a pull request to implement this feature
   
   ### Good first issue
   
   - [x] I think this could be a good first issue for a new contributor
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to