Class AiRedactor
java.lang.Object
com.kingsrook.qqq.backend.core.actions.ai.output.AiRedactor
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.
-
Field Details
-
KIND_PRIVATE_KEY
- See Also:
-
KIND_JWT
- See Also:
-
KIND_API_KEY
- See Also:
-
KIND_AWS_KEY
- See Also:
-
KIND_AWS_SECRET
- See Also:
-
KIND_SSN
- See Also:
-
KIND_CARD_NUMBER
- See Also:
-
KIND_CUSTOM
- See Also:
-
-
Constructor Details
-
AiRedactor
Constructor
-
-
Method Details
-
redact
-
replacement
-