docs(protect-edge): tarball download + auto-inject mode - #57
Merged
Conversation
✅ Deploy Preview for peaceful-pothos-9e62ce ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Companion to prosopo/Protect#515. Documents the two deployment paths customers can pick from: 1. Auto-inject (recommended, DataDome-style): set SITE_KEY in wrangler.toml → worker HTMLRewrites every allowed HTML response and appends the bundle <script> tags into <head>. Customer never touches HTML. 2. Manual snippet: leave SITE_KEY out, paste the two-tag block into your header/footer template yourself. Same shape as today. Also swaps the "What you get" section from the old customer-specific zip handoff to the public tarball URL (packages.prosopo.io/cloud/Prosopo-Cloudflare-latest.tgz). Part 2 renumbered — new 2a for auto-inject, 2b for manual snippet, 2c for form-submit gating (unchanged), 2d for verify (unchanged). Adds a CSP note for the auto-inject path. CLIENT_JWT + PROTECT_URL are called out as required in both modes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
forgetso
force-pushed
the
docs/protect-edge-tarball-and-inject
branch
from
August 21, 2026 22:27
adf8015 to
d2625c5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Companion to https://github.com/prosopo/Protect/pull/515 which adds:
SITE_KEYwrangler var → worker auto-injects the client bundle via HTMLRewriternpm run pack→ producesProsopo-Cloudflare-<version>.tgzpublished atpackages.prosopo.io/cloud/This PR documents both:
https://js.protect.prosopo.ioinscript-srcandhttps://protect.<domain>inconnect-src.CLIENT_JWT + PROTECT_URL are called out as required in both modes so no one drops CLIENT_JWT thinking auto-inject replaces it.
Test plan
npm run devinpackages/docsto spot-check the rendered page (blocker: docs branch merge order — this PR renumbers 2b→2c and 2c→2d, so any cross-links pointing at those anchors need updating).fr/de/es/it/pt-brafter English lands.🤖 Generated with Claude Code