feat: signed, verifiable PDF reports

Abierto
#95 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

Start by tracing the browser extension's test summary and PDF export, then inspect the server routes and Cloudflare Worker traffic handling. The issue proposes a /sign endpoint, traffic validation, Ed25519 signing, and client-side verification, but leaves the test-to-traffic binding and self-hosted key behavior unresolved. Done means reports can be verified against signed figures while meeting the stated Cloudflare free plan constraint.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement security

The PDF report shows a Report ID on every page. It is a SHA-256 fingerprint of the results, so an edited copy no longer matches a fresh export of the same tests. It is not proof, though: the results are measured in the browser and anyone with the code can compute an ID for made-up numbers.

A signed report would let someone who receives a PDF check that the numbers came from a real MeterX test against the MeterX server and were not changed afterwards.

Possible approach:

  1. During a test the worker already sees the download and upload traffic. At the end, the extension sends its summary (speeds, ping, time, test ID) to a new POST /sign endpoint.
  2. The worker checks the summary against what it observed for that test (bytes served and received, timing), within a tolerance, and signs it with a key stored as a Worker secret (Ed25519 through WebCrypto).
  3. The extension stores the signature with the result, and the PDF prints a short verification code plus a link such as meterx.ajithakdev.com/verify#<code>.
  4. The verify page checks the signature with the public key, client side, and shows the signed figures next to what the PDF claims.

Open questions:

  • How to tie a summary to the traffic the worker saw without storing anything. A short-lived signed token issued at test start, checked at /sign, might be enough.
  • Self-hosted servers would need their own key, or their reports stay unsigned.
  • It has to stay inside the Cloudflare free plan: no KV or Durable Objects writes per test unless they fit the free limits.
Lenguaje dominante
TypeScript
Estrellas
1
Forks
0
Merge medio
15 d 20 h
PR fusionados (30 d)
3

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ajithakdev/meterx

Todos los issues de ajithakdev/meterx

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.