feat: signed, verifiable PDF reports

Đang mở
#95 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
backend, full-stack, security

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
TypeScript
Star
1
Fork
0
Merge trung bình
15 ngày 20 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ajithakdev/meterx

Tất cả issue của ajithakdev/meterx

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.