CHECKLY_SECRET_* prefix and the runtime will detect and scrub those values from all check results.
How it works
Assign values toprocess.env.CHECKLY_SECRET_* in your check code:
- Check logs
- Trace files
- Report trees
Screenshots and videos are not scrubbed. If a secret value is visible on the page, it is also visible in screenshots and videos of that run.
Supported patterns
Limitations
- Check types: Only works in Browser and Multistep checks
- Value format: Must be a string (empty strings,
null,undefined, numbers, objects, and arrays are ignored) - Size limit: Values cannot exceed 128KB (~128,000 characters)
- Pattern-based detection: Scrubbing works by detecting code and output structures. Complex or unconventional Playwright usage may fall outside of this detection. Follow the documented patterns for reliable scrubbing.
Example usage
Runtime compatibility
This feature is available from runtime2024.09 onwards. For private locations running older agent versions, contact support for access.