fix(security): phase 2 high-severity hardening #27
Reference in New Issue
Block a user
Delete Branch "security/phase-2-hardening"
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?
Summary
Authorization: Bearer <token>is now primary auth for push heartbeats. Query string?token=still works but logs a deprecation warning.X-Gotify-Keyheader (Gotify's preferred method)/metricsauth: Gated behind cluster secret when set.UPTOP_METRICS_PUBLIC=trueto opt out./api/backup/exportredacts passwords/tokens by default. Append?redact_secrets=falsefor full export.rewritePlaceholdersnow handles 100+ SQL parameters correctly viastrconv.ItoaAddSiteReturningIDrace fix: UsesLastInsertId()(SQLite) /INSERT RETURNING(Postgres) instead of insert-then-query-by-nameNew environment variables
UPTOP_METRICS_PUBLICfalse/metricswithout auth when no cluster secret is setTest plan
go build ./...passesgo test -race -timeout 120s ./...— all passgolangci-lint run— 0 issues