PostHog Masking Lab
Sandbox for validating PostHog session-replay masking before recommending PostHog to the security team. Each field below is labeled with its expected behavior so a recorded session can be inspected against ground truth.
How to verify:
- Fill every field with recognizable test data (do NOT use real PII — use fake values you can grep for).
- Masking is configured in the SDK, not a dashboard toggle. This site runs a strict posture set in
src/components/posthog.astro:maskAllInputs: true+maskTextSelector: '*', so every input and all text is masked by default. - Click Submit (fires a
masking_lab_submittedevent), then open the session in PostHog → Session replay. - Confirm masked content renders as
•••/ blank,ph-no-maskelements render their literal values, andph-no-captureelements are replaced with a blank block.