Files
ECC/tests
Karim Masmoudi b56f5e77b0 fix(continuous-learning-v2): redact sk- keys and JWTs cut by capture truncation
Observations are cut to 5000 chars (2000 in the parse-error fallback)
before scrubbing. A JWT cut inside its payload lost its second dot and a
key cut short of 20 body chars missed the length floor, so the remaining
header, claims or key prefix were persisted. Accept a match that runs to
the end of the capture, the same way the PEM and DSN branches do.

Tests cover both cuts in string output, structured output and the
parse-error fallback, and compare the JWT and Bash cases against their
exact expected values.
2026-11-03 21:26:05 +01:00
..
2026-04-12 12:34:45 +05:30