0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-10-10 08:40:59 +02:00
Giteabot 6de2151607
Fixing issue #35530: Password Leak in Log Messages (#35584) (#35609)
Backport #35584 by @shashank-netapp

# Summary
The Gitea codebase was logging `Elasticsearch` and `Meilisearch`
connection strings directly to log files without sanitizing them. Since
connection strings often contain credentials in the format
`protocol://username:password@host:port`, this resulted in passwords
being exposed in plain text in log output.

Fix:
- wrapped all instances of setting.Indexer.RepoConnStr and
setting.Indexer.IssueConnStr with the `util.SanitizeCredentialURLs()`
function before logging them.

Fixes: #35530

Co-authored-by: shashank-netapp <108022276+shashank-netapp@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2025-10-09 11:00:40 +02:00
..
2025-09-13 18:01:00 +00:00
2025-08-27 11:00:01 +00:00
2025-08-27 11:00:01 +00:00
2025-06-24 15:49:31 +00:00
2025-07-30 07:08:59 +00:00