fix(security): phase 4 code quality and low-severity fixes #29
Reference in New Issue
Block a user
Delete Branch "security/phase-4-quality"
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
limitStr: Use[]runeto avoid splitting multi-byte characters in monitor name truncationurl.Valuesinstead of string concatenation in probe assignment fetchresp.Bodyon all response codes, not just 200UPTOP_SSH_HOST_KEYenv var (default.ssh/id_ed25519)/api/push,/api/health,/api/probe/assignments,/metrics) return 405 for wrong methodsNew environment variables
UPTOP_SSH_HOST_KEY.ssh/id_ed25519Test plan
go build ./...passesgo test -race -timeout 120s ./...— all passgolangci-lint run— 0 issuesSecurity audit status
This completes all 4 phases of the security remediation spec. 38 of 40 findings addressed: