Remove the unauthenticated webhook and the SQLite migration script #14
Reference in New Issue
Block a user
Delete Branch "cleanup-after-teams"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Both existed to carry an upgrade across, and both upgrades are done. Refs #4, #2.
The unauthenticated webhook
POST /api/alertmanager/webhooktook no credential at all — anything able to reach the port could open an incident for anybody. v0.12.0 kept it, deprecated, so the teams release didn't stop delivery while the Alertmanager config was edited, and logged a line per payload asking to be moved.The cluster's Alertmanager now posts on an integration key. Verified in terdut's own log: a POST to
/api/integrations/…/alertmanagerevery two minutes, all 200, and no deprecation line since the rollout. So the door gets shut rather than left ajar until somebody remembers. A sender still posting there gets the JSON 404 every unknown/apipath gets.The tests move with it, which they should have done anyway. The harness now mints an integration key for the default team and posts on that, so they exercise the path production uses rather than one only they still used.
The migration script
scripts/sqlite-to-postgres.gowas written to be temporary, was the last thing needingmodernc.org/sqlite, and this install migrated on 2026-09-20.go mod tidydrops the driver and its transitive dependencies with it — the module graph is now just chi, pgx, pgerrcode and x/crypto.Anyone still on v0.10.x can take the script out of the
v0.12.0tag, which the README now says:Verified
make fmt lint test helm-lintgreen with-raceagainst Postgres 17, andgovulncheckclean on the smaller graph.Note for whoever releases this
This is breaking for any sender still on the old path. Nothing in this cluster is — that's what made it removable — but the tag body should say so plainly, and an install upgrading from v0.11.x must move its senders onto keys before taking v0.13.0 rather than after.
https://claude.ai/code/session_01RHPj4ggeFdEjKKfm4SHbD7