Skip to content

fix(security): bump deps + Go 1.25 to clear dms binary CVEs - #13

Closed
just1900 wants to merge 1 commit into
pingcap:masterfrom
just1900:just1900/o11y-deadmanswatch-security-fix
Closed

fix(security): bump deps + Go 1.25 to clear dms binary CVEs#13
just1900 wants to merge 1 commit into
pingcap:masterfrom
just1900:just1900/o11y-deadmanswatch-security-fix

Conversation

@just1900

@just1900 just1900 commented Aug 3, 2026

Copy link
Copy Markdown

Rebuilds the dead-man's-switch (dms) binary trivy-clean.

Bumps (all in go.mod):

  • github.com/prometheus/alertmanager 0.21.0 -> 0.33.1
  • github.com/prometheus/client_golang 1.7.1 -> 1.24.1
  • google.golang.org/protobuf 1.23.0 -> 1.36.11
  • golang.org/x/sys -> latest
  • go directive -> 1.25; pin builder golang:1.25-alpine (Go 1.25.12 stdlib)

Verified with trivy (--severity CRITICAL,HIGH,MEDIUM): 0/0/0 for the dms binary (scratch runtime, no OS packages).

Image pushed to prod ECR: 557537366020.dkr.ecr.us-west-2.amazonaws.com/deadmanswatch:v1.0.2-3b4b56a.

Part of the O11y first-party image security remediation.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

- prometheus/alertmanager 0.21.0->0.33.1, client_golang 1.7.1->1.24.1
- google.golang.org/protobuf 1.23.0->1.36.11, golang.org/x/sys latest
- go directive ->1.25, pin builder golang:1.25-alpine (Go 1.25.12 stdlib)
Verified trivy-clean (0 CRITICAL/HIGH/MEDIUM) for the dms binary (scratch base).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 3, 2026 10:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project’s Go toolchain and Go module dependencies to remediate CVEs in the built dms binary and align the build container with the targeted Go release.

Changes:

  • Updated go.mod to Go 1.25 and bumped Prometheus/Protobuf-related dependencies.
  • Regenerated go.sum to match the new module graph.
  • Updated the builder base image to golang:1.25-alpine.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
go.mod Bumps Go version directive and key dependencies (Prometheus, protobuf, yaml) and records indirect deps.
go.sum Refreshes dependency checksums after the module upgrades/tidy.
build/Dockerfile Pins the builder image to Go 1.25 (Alpine) for the rebuild.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread go.mod
module github.com/pingcap/dead-mans-switch

go 1.14
go 1.25.0
Comment thread build/Dockerfile
@@ -1,4 +1,4 @@
FROM golang:alpine as builder
FROM golang:1.25-alpine as builder
@just1900 just1900 closed this by deleting the head repository Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants