Files
ECC/tests
Karim Masmoudi b979d08863 fix(continuous-learning-v2): redact bare sk- keys and JWTs in observations
observe.sh only redacted Anthropic and OpenAI keys when a keyword such as
api_key or token sat in front of them, so `echo <key> > key.txt` and file
content holding a key were written to observations.jsonl in plain text.
JWTs had the same gap.

Add value-shaped branches to _SECRET_VALUE_RE in both the observation and
parse-error paths: sk-ant-, sk-proj-, sk-svcacct-, sk-admin- and sk-or-
keys, legacy alphanumeric sk- keys, and eyJ JWTs. Quantifiers are bounded
and the branch only starts at a token boundary, so the matcher stays linear.

Refs #3846
2026-11-03 21:01:05 +01:00
..
2026-04-12 12:34:45 +05:30