Skip to content

Privacy page: verified hosting region and processors - #755

Merged
unjica merged 3 commits into
developfrom
codex/privacy-hosting
Oct 11, 2026
Merged

unjica merged 3 commits into
developfrom
codex/privacy-hosting

Conversation

@unjica

@unjica unjica commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

The privacy page currently leaves the Hosted Cloud infrastructure unnamed and combines PostgreSQL with object storage without explaining their roles. This change names the API/database location confirmed by the owner and separates primary storage from R2 avatars and third-party processing.

Updates /privacy and /docs/hosted-cloud with Railway EU West (Amsterdam, Netherlands), PostgreSQL accounts/telemetry/source maps (TEXT), Cloudflare CDN/edge and avatar-only R2 with EEUR location hint, and processor roles. Marks Stripe production activation and Google Analytics live activation as unverified; notes configured Resend email, enabled Sentry and disabled production AI brief worker. Keeps existing controller/processor roles, retention windows, and f21e053's Sentry filters and EU ingest disclosure. Processor details remain visible on small screens.

Base: develop. Branch: codex/privacy-hosting. No merge, deploy, publish or production data changes.

Evidence

  • Railway API, PostgreSQL and volume EU West (Amsterdam, Netherlands): owner-confirmed 2026-10-05. Provider also referenced in apps/dashboard/lib/hosted-cloud.ts:3 and docs/RAILWAY.md.
  • PostgreSQL stores accounts and telemetry: apps/api/prisma/schema.prisma:8 (PostgreSQL datasource), :59 (User), :468 (Event), :520 (ErrorOccurrence), :544 (Session); ingest writes in apps/api/src/routes/ingest.ts:163, :225, :312.
  • Source maps are PostgreSQL TEXT: apps/api/prisma/schema.prisma:610, especially :619; persistence in apps/api/src/lib/source-map-upload.ts:155, :197.
  • R2 avatar-only object storage: apps/api/src/lib/avatar-storage.ts:37 (R2 env), :56 (Cloudflare endpoint), :121 (avatar key), :134 (write); avatar upload call in apps/api/src/routes/auth.ts:550. Repository search found no other R2 consumers. Bucket name and EEUR hint: owner-confirmed 2026-10-05; jurisdiction remains unverified.
  • Cloudflare CDN/edge: supplied audit's verified public response headers, 2026-10-05, and docs/CLOUDFLARE-CRAWLERS.md. Edge headers were not used to infer database region.
  • Stripe billing: apps/api/src/routes/billing.ts:18 checks STRIPE_SECRET_KEY and creates a Stripe client; live activation not independently verified and explicitly qualified.
  • Resend email: apps/api/src/lib/email.ts:78, :103, :117 send email to Resend when configured. Supplied audit's 2026-10-05 production health probe reported email: configured; roles are retained from existing disclosure.
  • Sentry enabled: owner-confirmed 2026-10-05. Config/filter evidence: apps/api/src/lib/observability.ts:22 and apps/dashboard/lib/sentry.ts:57. Existing EU ingest paragraph from f21e053 is preserved, with no new Sentry residency claim. Organization region remains unverified.
  • AI brief worker not enabled in production: owner-confirmed 2026-10-05. apps/api/src/lib/brief-client.ts:79 returns unconfigured without TELEMETRY_AI_BRIEF_URL.
  • Google Analytics additional conditional service: apps/dashboard/lib/google-analytics.ts:12 chooses measurement ID from env or production hostname; apps/dashboard/app/layout.tsx:86, :102 mount it; apps/dashboard/app/components/analytics/GoogleAnalytics.tsx:28, :59, :65 gate loading on consent and route. Live activation is explicitly unverified.
  • Customer-configured alert webhooks: apps/api/src/lib/alert-webhook-dispatch.ts:814 describes customer-selected destinations; these are customer-directed egress, not independently identified Hosted Cloud operators.

Validation

  • pnpm install --frozen-lockfile: passed; lockfile unchanged.
  • pnpm lint: passed, 0 errors/warnings; repeated after final edit, passed.
  • pnpm build: passed for all workspaces; dashboard generated 56 static pages. Final pnpm --filter dashboard build after final wording passed, including prebuild lint and Next type validation.
  • pnpm test: passed, 1,411 passed / 128 skipped / 0 failed. API 1,044 passed + 128 skipped (131 files passed, 18 skipped); dashboard 227 passed (41 files); core 67 (9 files); vite plugin 14 (1 file); node 27 (2 files); next 15 (1 file); publish guards 17 (10 suites). No tests weakened or changed.
  • Database integration: 128 tests skipped by their existing env guard. Attempted an isolated local PostgreSQL cluster under /tmp; initdb failed with shmget: Operation not permitted. Docker daemon was unavailable. No production database was contacted. CI must run the DB-enabled suite.
  • pnpm --filter api exec tsc -p tsconfig.build.json --noEmit: passed.
  • pnpm --filter api exec tsc --noEmit: failed with 106 existing diagnostics in 24 untouched test files. pnpm --filter dashboard exec tsc --noEmit: failed with 6 existing diagnostics in 2 untouched test files (lib/google-analytics.test.ts readonly NODE_ENV; lib/marketing-seo-head.test.ts ES2018 regex flag vs ES2017 target). Every diagnostic source file was compared byte-for-byte with origin/develop and is unchanged; no diagnostic refers to the changed pages. Build uses the repository's existing production type-check path; no config changed.
  • Rendered output inspection: /privacy generated HTML contains all 11 checked disclosures; /docs/hosted-cloud contains all 4 checked hosting disclosures.
  • git diff --check: passed. Full diff against origin/develop self-reviewed; only the two requested pages remain modified. Removed the build-generated API-version path-only change.
  • Existing build advisories: Sentry navigation hook, missing Sentry auth token for source-map upload, outdated Browserslist data. No configuration changed.
  • GitHub CI: not started, because sandbox staging failed and no commit/branch push/PR was created. No CI result is claimed.

Still unverified

  • R2 EU jurisdiction setting (EEUR is a location hint only).
  • Railway backup/snapshot region.
  • Sentry organization data region, server-side scrubbing and IP settings; live verification of the filters after deployment.
  • Stripe and Resend data regions and international transfer mechanism.
  • Legal entity name, registered address and registration details.
  • DPA document and request process.
  • Security annex / technical and organisational measures (TOMs).
  • Subprocessor change notifications.
  • Stripe production activation (code confirms conditional integration, not live configuration).
  • Google Analytics live activation, data regions and transfer mechanism (code confirms hostname/configuration and consent gating).

@unjica
unjica merged commit 697341a into develop Oct 11, 2026
7 checks passed
@unjica unjica mentioned this pull request Oct 11, 2026
2 tasks
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.

1 participant