platform: option to keep request URLs, logs and exceptions out of platform and project Worker telemetry

Ouverte
#667 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
18/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
typescript

Piste de recherche

The telemetry settings live in packages/platform/src/worker-config.ts (platform Worker observability), platform/packages/api/src/deploy/upload-worker.ts (project Workers logs and tail consumer), and platform/packages/tail/src/index.ts (the Analytics Engine write of logs, exceptions and URL). Read the install/upgrade manifest path before changing anything. Done means the flag shape is agreed first, then a minimal mode drops those fields while keeping outcome, status and deployment id, with tests. The open questions need a maintainer decision before coding.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

Motivation

Some operators run a Void platform for apps whose request URLs, console output or exception messages can carry personal data, such as query strings with email addresses or one-time links. Their data-minimisation rules require these values to stay out of Cloudflare Workers Logs and the platform's Analytics Engine datasets. Today every platform and project Worker always records them, and an operator has no setting to turn this off.

Where it is recorded (v1.5.0)

This data stays inside the installation's own Cloudflare account. The project log endpoints are scoped per project. This is a request for a privacy setting, not a report of a leak.

Proposal (opt-in, default unchanged)

Add an installation-level setting that is stored in the deployment manifest and applied on install and upgrade. In its minimal mode it would:

  • disable Workers Logs (or only invocation logs) on platform Workers and on newly uploaded project Workers;
  • keep the tail data point, but write empty values (or a path with the query string removed) in place of logs, exceptions and url. Outcome, method, status and deployment id would still be recorded, so error rates and status filtering keep working.
Trade-off

In minimal mode, project owners and administrators would lose data in these views:

The request-metering dataset that dispatch writes does not store URLs, so usage and quotas would be unaffected. The UI should probably say "not recorded on this platform" rather than show an empty list.

Questions
  1. Flag shape: which would you prefer?
    • an install/upgrade flag (for example --telemetry full|minimal) persisted in the manifest
    • an environment variable read at deploy time
    • separate switches for Workers Logs and for the tail fields
  2. Scope: for the URL field, would you prefer dropping it entirely or keeping the path without the query string?
  3. Per project: should project owners be able to opt in to full logs on a platform that defaults to minimal, or should this stay platform-wide only?
  4. Is this something you would accept as a PR once the shape is agreed?

Prepared with Claude Code on behalf of @iPLAYCAFE-dev; reviewed by the maintainer of this account.

Langage dominant
TypeScript
Étoiles
627
Forks
66
Merge moyen
14 h 56 min
PR mergées (30 j)
170

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de voidzero-dev/void

Toutes les issues de voidzero-dev/void

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.