Class AiRedactor

java.lang.Object
com.kingsrook.qqq.backend.core.actions.ai.output.AiRedactor

public class AiRedactor extends Object
Replaces secrets and PII in values sent to a model with [REDACTED:kind]: private keys, JWTs, API keys (sk-...), AWS access keys and (labelled) secret keys, US social security numbers, payment card numbers (Luhn-valid, 13-19 digits) and any custom patterns (kind "custom"). Runs on every string value before truncation, so a long secret is never left half-redacted by a cut.