Update docs and config after hosted-service takedown #3

closed cmc opened this on 2026-10-31 21:16 UTC

Discussion

cmc 2026-10-31 21:16 UTC

The hosted service was taken down on 2026-10-31. Deleted: the gh-attest Worker, D1 gh-attest-db-eu, R2 gh-attest-exports-eu (eu), queue generate-export. The GitHub App is now private and uninstalled from audit-labs and zerolabsco. Production D1 held no rows (0 installations, snapshots, exports) despite both org installs, so the deployment never recorded anything.

To update:

  • README.md: drop the hosted-App framing and the Endpoints table as a description of a running service; reframe as self-hosted. Deployment section must cover creating D1, R2 and the queue from scratch.
  • wrangler.jsonc: database_id 70e8b4b2-... points at a deleted database; the R2 bucket and queue bindings point at deleted resources.
  • SECURITY.md: "a hosted GitHub App ... the currently deployed one" is no longer true.
  • PRIVACY.md: describes data handling for a hosted service that no longer exists.
  • audit-labs.dev gh-attest/index.html ("Install the GitHub App on your org") links to an app that is now private. Separate repo.
  • GitHub App registration: delete it, or rotate the private key and client secret (both were Worker secrets) and clear the webhook URL.
  • Before any redeploy: find out why installs and snapshots were never written.

referenced in commit d9a3b474b6 by cmc: Document gh-attest as self-hosted after the hosted takedown

2026-11-01 03:21 UTC
cmc 2026-11-01 03:23 UTC

Done:

  • README.md, SECURITY.md, PRIVACY.md and wrangler.jsonc updated for self-hosting in !3 (d9a3b47). The Deployment section now creates D1, R2 and the queue under eu and lists the GitHub App settings. PRIVACY.md describes what a deployment stores in its operator's account.
  • audit-labs.dev gh-attest/ page and homepage card updated in audit-labs/audit-labs.dev!1, deployed to the pages branch.
  • Why nothing was recorded: an installations row is only written by a webhook that passes HMAC verification, and the hourly poll only visits recorded installations; it never lists /app/installations. Zero rows means no delivery ever verified: webhook URL elsewhere, webhook inactive, or a secret mismatch (each a silent 401). Documented in the README. Having the poll discover installations would close the gap; not done, since nothing is deployed.

Remaining: delete the GitHub App registration (owned by ccleberg), or rotate its private key and client secret and clear its webhook URL.

cmc 2026-11-01 03:50 UTC

GitHub App registration kept, set to private, with no installations. Its private key and client secret were only stored as Worker secrets, which were deleted with the Worker, and its webhook URL points at the deleted Worker. Closing.