[GH-ISSUE #974] [Security] Hash users.server_admin.password in config #35130

Closed
opened 2026-06-18 19:59:30 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @dystopiandev on GitHub (Jun 26, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/974

users.server_admin.password is configured in plain text, but it would be better to have it as a hash. This would typically use bcrypt or some other algo if pangolin uses something different under the hood.

For backwards compatibility, maybe introduce users.server_admin.passwordHash? Also make this the default installer behavior, and document how to generate the hash (work factor, etc.) for manual installation.

Reason: Plain text passwords are readable by anyone who gains access to the config file. If the file is leaked or compromised, the attacker immediately knows the password. On the other hand, since bcrypt is a one-way hashing algo, the original password cannot be directly recovered from the hash.

Originally created by @dystopiandev on GitHub (Jun 26, 2025). Original GitHub issue: https://github.com/fosrl/pangolin/issues/974 `users.server_admin.password` is configured in plain text, but it would be better to have it as a hash. This would typically use bcrypt or some other algo if pangolin uses something different under the hood. For backwards compatibility, maybe introduce `users.server_admin.passwordHash`? Also make this the default installer behavior, and document how to generate the hash (work factor, etc.) for manual installation. Reason: Plain text passwords are readable by anyone who gains access to the config file. If the file is leaked or compromised, the attacker immediately knows the password. On the other hand, since bcrypt is a one-way hashing algo, the original password cannot be directly recovered from the hash.
Author
Owner

@oschwartz10612 commented on GitHub (Jun 27, 2025):

This will be resolved in the next release! Thanks for your issue!

<!-- gh-comment-id:3013028607 --> @oschwartz10612 commented on GitHub (Jun 27, 2025): This will be resolved in the next release! Thanks for your issue!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#35130