Skip to content

feat: Add secure event transform docs#14397

Open
benjackwhite wants to merge 13 commits intomasterfrom
claude/secure-events-docs-Kg0SQ
Open

feat: Add secure event transform docs#14397
benjackwhite wants to merge 13 commits intomasterfrom
claude/secure-events-docs-Kg0SQ

Conversation

@benjackwhite
Copy link
Contributor

Changes

Document the new secure event validation transformation from PR #42818. Includes installation steps, client-side implementation examples, secret rotation guide, enforcing secure mode warning, and FAQs.

Checklist

  • Words are spelled using American English
  • PostHog product names are in title case. It's "Product Analytics" not "Product analytics". If talking about a category of product, use sentence case e.g. "There are a lot of product analytics tools, but PostHog's Product Analytics is the best"
  • Titles are in sentence case
  • Feature names are in sentence case. It's "Click here to create a trend insight" not "... create a Trend Insight" and so on.
  • Use relative URLs for internal links
  • If I moved a page, I added a redirect in vercel.json
  • Remove this template if you're not going to fill it out!

Article checklist

  • I've added (at least) 3-5 internal links to this new article
  • I've added keywords for this page to the rank tracker in Ahrefs
  • I've checked the preview build of the article
  • The date on the article is today's date
  • I've added this to the relevant "Tutorials and guides" docs page (if applicable)

Document the new secure event validation transformation from PR #42818.
Includes installation steps, client-side implementation examples,
secret rotation guide, and FAQs.
- Add templateId to frontmatter
- Wrap Configuration/FAQ/snippets in HideOnCDPIndex
- Add standard PostHogMaintained and FeedbackQuestions snippets
- Remove showTitle that was causing sidebar issues
- Add Installation section for consistency
Emphasize that enforce mode should only be enabled after validating
that all events have correct verification hashes, as it will drop
any events without valid hashes.
Document the new secure event validation transformation from PR #42818.
Includes installation steps, client-side implementation examples,
secret rotation guide, enforcing secure mode warning, and FAQs.
@vercel
Copy link

vercel bot commented Jan 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
posthog Ready Ready Preview Jan 15, 2026 3:20pm

Base automatically changed from claude/write-pr-docs-Kg0SQ to master January 15, 2026 12:30
- Add info callout explaining this approach only works for logged-in users
- Update enforce mode warning to explicitly mention anonymous users will be dropped
- Clarify that anonymous users cannot be securely validated
…d flow

- Use MultiLanguage component for Node.js/Python examples
- Clarify hash must be generated server-side and passed to frontend
- Add separate section showing how to use the hash with JS SDK in browser
- Emphasize never exposing the shared secret in client-side code
The transformation uses $distinct_id_hash as the property name, not
$verification_hash. Updated all references and code examples.
- Clarify the hash must be included with every event
- Use register() to set as super property instead of passing via identify()
- Link to super properties documentation
- Move register() before identify() so hash is set before any events fire
- Add new section for backend SDK usage showing how to include the hash
  directly as a property with each capture call
@benjackwhite benjackwhite requested a review from a team January 16, 2026 09:43
@benjackwhite benjackwhite marked this pull request as ready for review January 16, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants