From 3486aaf64171e5dc186d46dadc9b3f96616e2a8a Mon Sep 17 00:00:00 2001 From: zemion Date: Mon, 6 Jul 2026 14:43:01 +0200 Subject: [PATCH] Sync Repo-docs-13-security-privacy from project files --- Repo-docs-13-security-privacy.-.md | 61 ++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Repo-docs-13-security-privacy.-.md diff --git a/Repo-docs-13-security-privacy.-.md b/Repo-docs-13-security-privacy.-.md new file mode 100644 index 0000000..984b069 --- /dev/null +++ b/Repo-docs-13-security-privacy.-.md @@ -0,0 +1,61 @@ + + +> Mirrored from `/mnt/DATA/git/pikebacker/docs/13_security_privacy.md`. +> Origin: `repository`. +> Active tasks and changing state belong in Gitea issues; this wiki page is durable project context. + +--- +# Security and Privacy + +## Sensitive data + +The app may process: + +- location history, +- planned travel dates, +- sleep locations, +- emergency contacts, +- account identity, +- API tokens, +- community reports, +- booking/deep-link actions. + +## Privacy requirements + +- Default trips to private. +- Let users delete trips and reports where legally possible. +- Do not share exact sleep plans publicly by default. +- Minimize continuous location collection. +- Allow offline use without constant tracking. +- Separate analytics from precise route history. +- Hash/anonymize telemetry where possible. + +## Security requirements + +- Store secrets in environment variables or secret manager. +- Use short-lived signed URLs for offline-pack downloads. +- Validate GPX uploads. +- Sanitize user-generated content. +- Rate-limit report submission. +- Protect against route/POI scraping if commercial data is included. +- Keep provider API keys server-side. + +## Compliance notes + +For EU users, assume GDPR obligations: + +- explicit consent for location tracking, +- data export/deletion, +- purpose limitation, +- retention policy, +- processor agreements for analytics/cloud vendors. + +## Safety disclaimers + +Show concise warnings: + +- route data may be wrong, +- access rules can change, +- weather forecasts are uncertain, +- users must obey signs and local laws, +- remote riding requires judgment and preparation.