Gaurav Dubey and Claude Opus 5.5
4d3e66e0ab
fix(hooks): redact joined-fragment secret values and make JWT scan linear
...
- Replace the secret=/api_key= value regex with a single-pass, quote-aware
scanner so the whole Bash word is redacted when quoted and unquoted
fragments are joined (e.g. --secret='prefix-'suffix), while a value inside
an enclosing quoted string stops at that string's closing quote.
- Searching for the keyword itself (grep -n "secret =" file,
rg 'api_key:' dir) no longer redacts the rest of the command.
- Use a lookbehind instead of \b before the JWT header so long dot-free
ey-ey-... runs are scanned in linear time instead of quadratic.
- Add regression tests for joined fragments, keyword searches, and the
ey- performance case.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-04 03:41:05 +00:00
..
2026-10-10 18:38:26 -04:00
2026-10-11 13:41:34 +08:00
2026-10-28 22:48:50 +05:00
2026-10-09 17:27:37 -04:00
2026-03-27 05:56:39 -04:00
2026-08-24 22:27:39 -03:00
2026-10-27 23:58:20 +05:00
2026-10-29 11:30:40 -07:00
2026-10-11 03:32:07 -04:00
2026-08-06 15:39:49 -04:00
2026-10-11 02:08:19 -04:00
2026-09-10 14:11:51 +03:00
2026-09-10 14:11:51 +03:00
2026-08-11 16:30:04 -04:00
2026-10-16 08:54:36 +00:00
2026-05-19 06:42:17 -04:00
2026-08-04 21:42:25 -04:00
2026-10-02 00:49:31 +07:00
2026-05-11 02:53:28 -04:00
2026-10-09 14:32:52 -04:00
2026-09-07 16:40:47 -04:00
2026-10-09 14:32:52 -04:00
2026-08-04 21:42:25 -04:00
2026-10-11 06:15:49 -04:00
2026-09-30 20:27:36 -04:00
2026-09-29 21:50:19 -04:00
2026-10-29 21:49:53 +05:00
2026-09-27 18:01:40 -04:00
2026-10-12 01:25:09 +08:00
2026-10-09 18:54:39 -04:00
2026-10-10 17:39:23 -04:00
2026-10-20 17:40:58 -04:00
2026-10-10 17:38:00 -04:00
2026-10-11 02:03:09 -04:00
2026-09-18 18:47:05 -04:00
2026-10-28 16:58:35 +08:00
2026-09-09 16:49:44 +08:00
2026-09-15 14:39:38 -04:00
2026-09-28 06:43:02 -04:00
2026-08-28 16:25:30 -04:00
2026-08-04 16:57:24 -04:00
2026-07-28 21:31:12 -04:00
2026-08-07 14:53:13 -04:00
2026-09-28 01:26:17 -04:00
2026-03-14 12:55:25 -07:00
2026-04-30 12:25:14 -04:00
2026-10-10 17:53:23 -04:00
2026-09-07 01:57:04 +08:00
2026-09-19 16:51:53 -04:00
2026-07-26 02:46:59 -07:00
2026-10-10 17:53:23 -04:00
2026-10-01 17:50:41 -05:00
2026-03-31 15:08:55 -04:00
2026-10-28 22:50:14 +05:00
2026-10-01 17:50:41 -05:00
2026-10-16 22:29:18 +05:30
2026-03-14 12:55:25 -07:00
2026-10-09 17:05:03 -04:00
2026-10-11 12:45:43 -04:00
2026-10-01 17:50:41 -05:00
2026-10-15 19:21:38 +05:00
2026-11-04 03:41:05 +00:00
2026-05-17 15:35:23 -04:00
2026-09-27 16:46:07 -04:00
2026-09-27 16:46:07 -04:00
2026-09-27 16:46:07 -04:00
2026-09-27 16:46:07 -04:00
2026-10-10 18:47:48 -04:00
2026-08-09 16:44:18 -04:00
2026-06-29 15:50:55 -07:00
2026-08-07 14:14:21 -04:00
2026-08-25 17:19:45 -04:00
2026-06-29 15:50:57 -07:00
2026-09-27 22:48:51 -04:00
2026-10-11 03:05:59 -04:00
2026-10-20 17:38:13 -04:00
2026-10-20 17:40:57 -04:00
2026-08-06 15:39:49 -04:00
2026-02-13 09:55:00 -08:00
2026-10-11 20:48:43 +08:00
2026-10-01 17:50:41 -05:00
2026-10-01 03:05:06 +08:00
2026-10-01 01:59:10 +08:00
2026-08-13 18:30:39 -04:00
2026-06-15 14:01:29 -04:00
2026-10-11 03:11:20 -04:00
2026-10-10 18:13:55 -04:00
2026-08-06 15:39:49 -04:00
2026-10-29 11:34:15 -07:00
2026-10-29 11:34:15 -07:00
2026-10-29 12:37:02 +08:00