shashank-netapp
03fce8f3d0
Fixing issue #35530 : Password Leak in Log Messages ( #35584 )
...
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: Lunny Xiao <xiaolunwen@gmail.com>
2025-10-07 09:26:47 -07:00
..
2025-09-24 09:45:38 -07:00
2025-08-28 03:52:43 +00:00
2025-01-09 09:21:47 +08:00
2025-09-28 08:03:36 +00:00
2025-10-04 01:21:26 +08:00
2025-09-13 10:34:43 -04:00
2025-04-01 09:42:10 +00:00
2025-07-03 03:02:38 +00:00
2025-06-27 21:48:03 +08:00
2025-04-09 16:34:38 +00:00
2025-06-18 01:48:09 +00:00
2025-06-27 07:59:55 +02:00
2024-11-11 04:07:54 +08:00
2025-09-04 09:54:58 -07:00
2025-09-01 19:40:12 +00:00
2025-01-09 09:21:47 +08:00
2025-01-09 09:21:47 +08:00
2025-07-01 06:55:36 +08:00
2024-02-16 15:18:30 +00:00
2025-10-07 17:06:51 +08:00
2025-10-07 17:06:51 +08:00
2025-09-13 18:01:00 +00:00
2025-09-06 16:52:41 +00:00
2025-08-27 11:00:01 +00:00
2025-08-18 15:17:19 +00:00
2023-01-29 09:49:51 -06:00
2025-03-31 01:53:48 -04:00
2025-06-18 01:48:09 +00:00
2025-06-27 23:12:25 +08:00
2025-06-18 01:48:09 +00:00
2025-08-27 11:00:01 +00:00
2025-10-07 09:26:47 -07:00
2025-06-18 01:48:09 +00:00
2025-09-28 22:30:28 +08:00
2025-06-18 01:48:09 +00:00
2025-09-28 22:30:28 +08:00
2025-06-24 15:49:31 +00:00
2025-10-04 01:21:26 +08:00
2025-09-13 10:34:43 -04:00
2022-11-27 18:20:29 +00:00
2025-08-28 03:52:43 +00:00
2025-07-17 14:01:11 +00:00
2025-01-09 09:21:47 +08:00
2025-09-28 08:03:36 +00:00
2025-06-12 03:59:33 +00:00
2025-09-28 08:03:36 +00:00
2025-03-23 19:52:43 +00:00
2022-11-27 18:20:29 +00:00
2025-05-09 16:17:08 +00:00
2025-02-20 09:57:40 +00:00
2025-09-13 18:01:00 +00:00
2025-04-01 10:14:01 +00:00
2025-06-18 19:30:40 +00:00
2025-09-13 10:34:43 -04:00
2022-11-27 18:20:29 +00:00
2025-03-31 01:53:48 -04:00
2025-03-31 01:53:48 -04:00
2025-10-07 17:06:51 +08:00
2025-06-18 01:48:09 +00:00
2025-02-21 00:05:40 +08:00
2025-09-28 12:24:19 +00:00
2025-10-04 01:21:26 +08:00
2022-12-30 23:31:00 +08:00
2025-06-09 19:51:02 +00:00
2025-07-17 19:09:54 +08:00
2025-10-06 21:23:14 -07:00
2024-12-24 01:54:19 +00:00
2025-08-28 03:52:43 +00:00
2025-01-21 18:57:07 +00:00
2025-10-04 01:21:26 +08:00
2025-09-01 18:47:04 +00:00
2025-06-07 11:25:08 +03:00
2025-06-18 01:48:09 +00:00
2025-06-12 03:59:33 +00:00
2025-10-04 01:21:26 +08:00
2023-02-05 15:29:03 +08:00
2025-09-13 10:34:43 -04:00
2025-04-01 10:14:01 +00:00
2022-11-27 18:20:29 +00:00
2025-01-09 09:21:47 +08:00
2025-10-07 17:06:51 +08:00
2025-09-13 18:01:00 +00:00
2025-08-27 20:13:31 -07:00
2025-06-20 20:14:00 +08:00
2025-06-12 03:59:33 +00:00