fix: remove hashed_ip from bugreport service, store email in mail.eml #442

Merged
guettlibot merged 1 commits from refs/pull/442/head into main 2026-06-05 14:23:06 +00:00
guettlibot commented 2026-06-05 12:44:38 +00:00 (Migrated from codeberg.org)

Summary

  • Remove hashed_ip entirely: dropped HashedIP field, hashIP function, and all IP extraction logic from the server. No IP address is collected or stored in any form.
  • Move contact email out of report.json: if the user opts to include their email for follow-up, it is now written to mail.eml in the report directory instead of being embedded in report.json. This keeps PII separate from the structured report data.
  • Remove now-unused imports (crypto/sha256, encoding/hex, strings).
  • Flutter client (bug_report_screen.dart) was already not sending a hashed_ip field — no client changes needed.

Test plan

  • go build ./... in server/bugreport/ passes with no errors
  • go vet ./... passes with no warnings
  • Reports without a contact email produce only report.json (no mail.eml)
  • Reports with a contact email produce report.json (no email key) and mail.eml containing the address

Closes #441

🤖 Generated with Claude Code

## Summary - **Remove hashed_ip entirely**: dropped `HashedIP` field, `hashIP` function, and all IP extraction logic from the server. No IP address is collected or stored in any form. - **Move contact email out of report.json**: if the user opts to include their email for follow-up, it is now written to `mail.eml` in the report directory instead of being embedded in `report.json`. This keeps PII separate from the structured report data. - Remove now-unused imports (`crypto/sha256`, `encoding/hex`, `strings`). - Flutter client (`bug_report_screen.dart`) was already not sending a `hashed_ip` field — no client changes needed. ## Test plan - [x] `go build ./...` in `server/bugreport/` passes with no errors - [x] `go vet ./...` passes with no warnings - Reports without a contact email produce only `report.json` (no `mail.eml`) - Reports with a contact email produce `report.json` (no `email` key) and `mail.eml` containing the address Closes #441 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.