Willie
40697e03f3
fix(oplog): keep source credentials out of the operation log ( #881 )
...
An install source typed as a URL can carry a token in its userinfo or
query, and operations.log stored it as typed, so anyone reading the log
or the dashboard's log view could see the credential (#878 ).
Redact in oplog.Write, which every CLI and dashboard writer goes through:
the source, oldSource and newSource args lose their userinfo, query and
fragment, and the message loses the same parts where an error echoes
them. The redaction reuses update's redactRepoURL, moved to
install.RedactRepoURL. It now also covers git+https:// and ssh://
passwords, and a source typed without a scheme such as
user:token@host/owner/repo, which install clones over HTTPS.
logInstallOp logged args[0] as the source, which is a flag when one comes
first (install --into team <url> logged "--into"), so the message was
never redacted. It now logs the parsed source.
Fixes #878
2026-11-13 14:50:31 +08:00
..
2026-10-13 10:37:41 +08:00
2026-10-03 23:19:34 +08:00
2026-11-11 23:50:01 +08:00
2026-11-04 22:15:55 +08:00
2026-10-08 16:41:09 +08:00
2026-10-03 21:43:35 +08:00
2026-10-08 16:41:09 +08:00
2026-04-08 21:31:41 +08:00
2026-10-08 16:41:09 +08:00
2026-11-12 11:15:44 +08:00
2026-11-06 13:56:53 +08:00
2026-11-06 14:55:35 +08:00
2026-10-03 21:43:35 +08:00
2026-02-25 07:02:54 +08:00
2026-11-06 14:08:22 +08:00
2026-11-02 15:13:44 +08:00
2026-10-03 21:43:35 +08:00
2026-10-13 22:42:05 +08:00
2026-02-21 06:07:35 +08:00
2026-10-08 16:41:09 +08:00
2026-02-26 22:27:23 +08:00
2026-11-12 00:35:40 +08:00
2026-02-16 00:08:59 +08:00
2026-10-08 16:41:09 +08:00
2026-10-03 21:43:35 +08:00
2026-11-12 11:15:44 +08:00
2026-10-08 16:41:09 +08:00
2026-02-25 07:02:54 +08:00
2026-10-10 00:13:29 +08:00
2026-10-05 15:27:42 +08:00
2026-11-12 10:40:15 +08:00
2026-10-29 16:47:38 +08:00
2026-11-12 10:40:15 +08:00
2026-10-08 16:41:09 +08:00
2026-10-10 00:00:23 +08:00
2026-05-30 19:23:12 +08:00
2026-09-28 15:27:02 +08:00
2026-10-08 16:41:09 +08:00
2026-10-08 16:01:01 +08:00
2026-10-04 14:45:38 +08:00
2026-10-08 16:19:32 +08:00
2026-10-08 16:41:09 +08:00
2026-10-24 17:58:31 +08:00
2026-10-04 03:09:17 +08:00
2026-04-08 17:43:46 +08:00
2026-10-26 01:38:04 +08:00
2026-10-05 20:36:39 +08:00
2026-10-03 21:43:35 +08:00
2026-10-08 16:41:09 +08:00
2026-10-08 16:41:09 +08:00
2026-10-08 16:41:09 +08:00
2026-10-08 16:41:09 +08:00
2026-06-01 14:42:24 +08:00
2026-11-10 00:42:57 +08:00
2026-10-08 16:41:09 +08:00
2026-10-08 16:41:09 +08:00
2026-10-08 16:41:09 +08:00
2026-10-08 16:41:09 +08:00
2026-10-08 16:41:09 +08:00
2026-10-08 16:41:09 +08:00
2026-02-18 22:23:50 +08:00
2026-04-08 14:28:57 +08:00
2026-10-23 20:04:45 +08:00
2026-10-23 20:04:45 +08:00
2026-10-09 00:59:11 +08:00
2026-11-11 00:00:28 +08:00
2026-11-11 22:42:03 +08:00
2026-09-21 02:26:55 +08:00
2026-10-08 16:41:09 +08:00
2026-02-25 07:02:54 +08:00
2026-11-10 20:24:44 +08:00
2026-10-10 01:06:23 +08:00
2026-09-28 22:12:09 +08:00
2026-11-10 20:24:44 +08:00
2026-10-24 18:00:12 +08:00
2026-10-03 21:43:35 +08:00
2026-10-08 16:41:09 +08:00
2026-09-21 04:31:22 +08:00
2026-10-25 22:55:36 +08:00
2026-02-25 07:02:54 +08:00
2026-11-13 14:50:31 +08:00
2026-10-13 23:22:57 +08:00
2026-11-10 15:19:11 +08:00
2026-10-05 20:36:39 +08:00
2026-10-01 02:24:24 +08:00
2026-10-31 04:24:16 +08:00
2026-10-03 21:43:35 +08:00
2026-11-10 15:19:11 +08:00
2026-09-19 03:14:03 +08:00
2026-10-08 16:41:09 +08:00
2026-10-09 23:59:47 +08:00
2026-10-11 01:04:53 +08:00
2026-02-24 01:47:38 +08:00
2026-10-03 21:43:35 +08:00
2026-10-28 21:06:52 +08:00
2026-10-31 04:23:20 +08:00
2026-11-06 23:49:30 +08:00
2026-11-06 23:49:30 +08:00
2026-11-06 23:49:30 +08:00
2026-10-26 01:38:04 +08:00
2026-09-21 01:52:34 +08:00
2026-10-08 16:41:09 +08:00
2026-10-03 21:43:35 +08:00
2026-11-11 21:08:47 +08:00
2026-03-26 22:44:44 +08:00
2026-03-02 02:23:50 +08:00
2026-09-28 22:08:16 +08:00
2026-04-13 16:00:18 +08:00
2026-04-23 16:46:53 +08:00
2026-10-08 16:41:09 +08:00
2026-10-04 15:15:43 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 15:40:19 +08:00
2026-10-08 16:41:09 +08:00
2026-03-19 04:16:36 +08:00
2026-10-03 21:43:35 +08:00
2026-10-08 16:41:09 +08:00
2026-10-24 17:58:31 +08:00
2026-10-05 15:48:45 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 15:40:18 +08:00
2026-09-21 02:55:18 +08:00
2026-10-08 16:41:09 +08:00
2026-10-09 23:59:47 +08:00
2026-10-09 00:28:34 +08:00
2026-10-08 16:41:09 +08:00
2026-10-12 13:59:59 +08:00
2026-10-29 16:47:38 +08:00
2026-02-20 13:45:52 +08:00
2026-10-08 16:41:09 +08:00
2026-10-03 21:43:35 +08:00
2026-10-09 23:59:47 +08:00
2026-10-24 17:58:31 +08:00
2026-10-10 00:00:23 +08:00
2026-10-08 16:41:09 +08:00
2026-09-28 13:56:59 +08:00
2026-06-11 15:32:28 +08:00
2026-10-31 17:25:04 +08:00
2026-03-04 12:16:32 +08:00
2026-02-16 00:08:59 +08:00
2026-09-22 19:08:28 +08:00
2026-10-05 23:46:02 +08:00
2026-11-10 20:24:44 +08:00
2026-11-11 22:42:03 +08:00
2026-10-08 16:41:09 +08:00
2026-10-03 21:43:35 +08:00
2026-02-21 06:07:35 +08:00
2026-10-14 23:36:56 +08:00
2026-10-14 23:15:01 +08:00
2026-10-05 15:42:01 +08:00
2026-10-24 17:32:34 +08:00
2026-11-10 00:42:57 +08:00
2026-11-11 23:34:43 +08:00
2026-10-08 16:41:09 +08:00
2026-10-07 23:58:43 +08:00
2026-11-05 14:31:23 +08:00
2026-11-11 11:59:57 +08:00
2026-10-03 21:43:35 +08:00
2026-10-29 16:47:38 +08:00
2026-10-03 21:43:35 +08:00
2026-09-05 12:07:00 +08:00
2026-10-03 21:43:35 +08:00