From 96f01398618621ca90f29fea6d85be34475bb29f Mon Sep 17 00:00:00 2001 From: Victor Cavero Date: Mon, 7 Sep 2026 19:19:30 +0200 Subject: [PATCH] feat(rgpd): legales, cookies, baja de marketing, marcado AI Act y alertas sin PII Claude-Session: https://claude.ai/code/session_01UNZxBnD6dnMGEdbvBVwoS7 --- .env.example | 52 ++ cloud/__init__.py | 5 +- cloud/alerts.py | 14 + cloud/config.py | 10 + cloud/database.py | 17 + cloud/marketing.py | 106 +++++ cloud/models.py | 10 + cloud/videos.py | 24 +- dashboard/index.html | 84 ++-- dashboard/public/fonts.css | 143 ++++++ .../public/fonts/geist-400-latin-ext.woff2 | Bin 0 -> 16540 bytes dashboard/public/fonts/geist-400-latin.woff2 | Bin 0 -> 29288 bytes .../public/fonts/geist-500-latin-ext.woff2 | Bin 0 -> 16540 bytes dashboard/public/fonts/geist-500-latin.woff2 | Bin 0 -> 29288 bytes .../public/fonts/geist-600-latin-ext.woff2 | Bin 0 -> 16540 bytes dashboard/public/fonts/geist-600-latin.woff2 | Bin 0 -> 29288 bytes .../instrument-serif-400-latin-ext.woff2 | Bin 0 -> 7828 bytes .../fonts/instrument-serif-400-latin.woff2 | Bin 0 -> 15040 bytes .../fonts/jetbrains-mono-400-latin-ext.woff2 | Bin 0 -> 11596 bytes .../fonts/jetbrains-mono-400-latin.woff2 | Bin 0 -> 31340 bytes .../fonts/jetbrains-mono-500-latin-ext.woff2 | Bin 0 -> 11596 bytes .../fonts/jetbrains-mono-500-latin.woff2 | Bin 0 -> 31340 bytes .../fonts/noto-serif-700-latin-ext.woff2 | Bin 0 -> 65732 bytes .../public/fonts/noto-serif-700-latin.woff2 | Bin 0 -> 15252 bytes dashboard/public/op1.js | 1 + dashboard/seo/legal.js | 449 +++++++++++++----- dashboard/seo/render.js | 4 +- dashboard/src/Legal.jsx | 6 +- dashboard/src/components/CookieBanner.jsx | 131 +++++ dashboard/src/index.css | 3 +- dashboard/src/lib/analytics.js | 14 +- dashboard/src/lib/consent.js | 161 +++++++ dashboard/src/main.jsx | 7 + docs/compliance/retencion.md | 94 ++++ docs/compliance/subprocessors.md | 90 ++++ editor.py | 19 + media_auth.py | 189 ++++++++ ops/README.md | 91 ++++ screencast_layout.py | 18 + security_utils.py | 19 + tests/test_ai_disclosure.py | 76 +++ thumbnail.py | 64 ++- 42 files changed, 1739 insertions(+), 162 deletions(-) create mode 100644 cloud/marketing.py create mode 100644 dashboard/public/fonts.css create mode 100644 dashboard/public/fonts/geist-400-latin-ext.woff2 create mode 100644 dashboard/public/fonts/geist-400-latin.woff2 create mode 100644 dashboard/public/fonts/geist-500-latin-ext.woff2 create mode 100644 dashboard/public/fonts/geist-500-latin.woff2 create mode 100644 dashboard/public/fonts/geist-600-latin-ext.woff2 create mode 100644 dashboard/public/fonts/geist-600-latin.woff2 create mode 100644 dashboard/public/fonts/instrument-serif-400-latin-ext.woff2 create mode 100644 dashboard/public/fonts/instrument-serif-400-latin.woff2 create mode 100644 dashboard/public/fonts/jetbrains-mono-400-latin-ext.woff2 create mode 100644 dashboard/public/fonts/jetbrains-mono-400-latin.woff2 create mode 100644 dashboard/public/fonts/jetbrains-mono-500-latin-ext.woff2 create mode 100644 dashboard/public/fonts/jetbrains-mono-500-latin.woff2 create mode 100644 dashboard/public/fonts/noto-serif-700-latin-ext.woff2 create mode 100644 dashboard/public/fonts/noto-serif-700-latin.woff2 create mode 100644 dashboard/public/op1.js create mode 100644 dashboard/src/components/CookieBanner.jsx create mode 100644 dashboard/src/lib/consent.js create mode 100644 docs/compliance/retencion.md create mode 100644 docs/compliance/subprocessors.md create mode 100644 media_auth.py create mode 100644 ops/README.md create mode 100644 tests/test_ai_disclosure.py diff --git a/.env.example b/.env.example index 6443358..944af09 100644 --- a/.env.example +++ b/.env.example @@ -70,3 +70,55 @@ GEMINI_IMAGE_MODEL=gemini-3.1-flash-image # DataImpulse is removed from every chain until midnight and the jobs that # needed it fail with a clear error. 0 disables the cap. Default 500. # PAID_PROXY_DAILY_MB=500 + +# --------------------------------------------------------------------------- +# Privacy, retention and access control (GDPR remediation, 4-sep-2026) +# --------------------------------------------------------------------------- + +# Absolute base URL of the API as the internet reaches it. Already used for the +# absolute clip URLs in webhook payloads; now also required to build the +# unsubscribe link that goes in the out-of-minutes email. Without it that email +# falls back to "reply to unsubscribe". +# PUBLIC_API_URL=https://api.openshorts.app + +# /videos and /thumbnails are authenticated endpoints, not static mounts. +# MEDIA_TOKEN_TTL_SECONDS: life of the per-user token the dashboard appends to +#