GDPR: privacy policy link, customer data export/correct/erase, retention, no third parties on load #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "privacy-gdpr"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements the software side of the contract's data protection clause (§14): a privacy policy page and notice, admin tools to export, correct and erase customer data, and automatic retention. It also stops the public site sending visitors' IPs to third parties.
What changed
No third parties on page load
@fontsource/dm-sans,@fontsource/playfair-display) and no longer come from Google Fonts. Google Fonts sent every visitor's IP to Google; a German court fined a site for this in 2022.@stripe/stripe-js/pure, so it's fetched only when the customer presses Pay. The default import injected it on every page.Privacy policy and checkout
privacypage that describes what this software does with customer data. The studio fills in the[gaps]and is responsible for the content.Customers page (admin, new)
anonymisedAtis set. Amounts, services and dates stay for the accounts.Retention (
pocketbase/pb_hooks/privacy)1793000000_orders_anonymisemakesorders.emailoptional and addsorders.anonymisedAtand an email index. It's mirrored inpb_schema.json.Tested
On a local stack (PocketBase 0.23.12 + both apps rebuilt), with seeded customers:
Alice@Example.comandalice@example.commerge into one customer./privacy, and the notes hint is wired witharia-describedby./and/book. Before this change both loadedjs.stripe.com.svelte-check: 0 errors in both apps (warnings unchanged: 18 admin, 3 public). No console errors.Not tested: a real Stripe payment after the
pureimport switch. The test stack has no publishable key. The API is the same function, and it type-checks.Not in this PR (follow-ups)
🤖 Generated with Claude Code
https://claude.ai/code/session_01VaXE9U7AmW3dfD2w6cbLfk