fix: Kuma import tokens/paused, Docker hardening, migrate-secrets idempotency #116
Reference in New Issue
Block a user
Delete Branch "fix/import-docker-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
Four fixes from the review-findings backlog.
Kuma import maps push tokens + paused state — push monitors now get a generated crypto/rand token (were imported with empty token → sat DOWN forever).
Active=falsenow setsPaused=true(paused Kuma monitors were coming in unpaused and alerting).Docker HEALTHCHECK —
wget -qO- http://localhost:8080/api/health || exit 1with 30s interval. Container orchestrators can detect unhealthy instances.migrate-secrets idempotent — encryptor set before loading alerts so already-encrypted settings are decrypted correctly on second run. Was failing with JSON unmarshal error.
docker-compose.yml container hardening —
read_only,cap_drop: [ALL],security_opt: [no-new-privileges:true],tmpfs: [/tmp].Also verified and checked off three items already resolved by PR #104: grype gate un-neutered,
latesttag only on tag push, CI coverage via branch protection.Test plan
go test -count=1 ./...— all passgolangci-lint— 0 issues