fix(deps): update module github.com/prometheus/client_golang to v1.24.1 - #4081
fix(deps): update module github.com/prometheus/client_golang to v1.24.1#4081renovate[bot] wants to merge 1 commit into
Conversation
ℹ️ Artifact update noticeFile name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
There was a problem hiding this comment.
Stale comment
Security review
Outcome: No medium, high, or critical vulnerabilities identified in this PR.
This Renovate dependency bump updates
github.com/prometheus/client_golangv1.23.2 → v1.24.0 (plus transitiveprometheus/common,prometheus/procfs,go.yaml.in/yaml/v2, andgoogle.golang.org/protobuf). Onlygo.mod/go.sumchanged.Usage reviewed: Semaphore exposes metrics only through
pkg/metrics/metrics.goviapromhttp.HandlerForwith a dedicated registry and static metric names/labels. The/api/metricsroute is restricted toGET/HEADand protected bymetricsAuthMiddleware(HTTP Basic Auth with constant-time credential comparison).Dependency changes: v1.24.0 security-relevant fixes (snappy decoded-size limits, remote-write buffer pooling, collector panic recovery) apply to code paths this project does not use (
exp/api/remote,api/prometheus/v1client). No new attacker-controlled inputs reach prometheus sinks. Task status label values are bounded enums, not free-form user input.No prior automation findings required re-reporting.
Sent by Cursor Automation: Find vulnerabilities
8928129 to
7f2c376
Compare
There was a problem hiding this comment.
Security review
Outcome: No medium, high, or critical vulnerabilities identified in this PR.
This Renovate dependency bump updates github.com/prometheus/client_golang v1.23.2 → v1.24.1 (plus transitive prometheus/common, prometheus/procfs, go.yaml.in/yaml/v2, and google.golang.org/protobuf). Only go.mod / go.sum changed.
Usage reviewed: Semaphore exposes metrics only through pkg/metrics/metrics.go via promhttp.HandlerFor with a dedicated registry and static metric names/labels. The /api/metrics route is restricted to GET/HEAD and protected by metricsAuthMiddleware (HTTP Basic Auth with constant-time credential comparison).
Dependency changes: v1.24.x security-relevant fixes (snappy decoded-size limits, remote-write header/buffer hardening, collector panic recovery, nil-URL panic fix in promhttp) apply to code paths this project does not use (exp/api/remote, api/prometheus/v1 client) or are hardening-only. The new optional name[] metrics filter is behind the same authenticated endpoint and does not expand unauthenticated exposure. Task status label values are bounded enums, not free-form user input.
No prior automation findings required re-reporting.
Sent by Cursor Automation: Find vulnerabilities


This PR contains the following updates:
v1.23.2→v1.24.1Release Notes
prometheus/client_golang (github.com/prometheus/client_golang)
v1.24.1Compare Source
v1.24.0: - 2026-07-20Compare Source
Changes
model.NameValidationSchemeglobal. Default behavior is unchanged; code that setNameValidationScheme = LegacyValidationno longer gets legacy enforcement at metric, label, and push-grouping construction. #2051matches[]parameter) inRulesmethod (Rules(ctx context.Context, matches []string) (RulesResult, error)). #1843LabelNamesmethod to returnmodel.LabelNamesinstead of[]stringfor consistency across the API. #1850Storeinterface, renameHandlertoWriteHandler, and encapsulate write response handling. #1855/sched/goroutines-created:goroutines,/sched/goroutines/not-in-go:goroutines,/sched/goroutines/runnable:goroutines,/sched/goroutines/running:goroutines,/sched/goroutines/waiting:goroutines,/sched/threads/total:threads). #1942WithUnit(unit string)option and explicit OpenMetrics unit support inCounterOpts,GaugeOpts,SummaryOpts, andHistogramOpts. #1392Err()method onDesc. #1902HandlerOpts.CoalesceGatherto deduplicate concurrentGathercalls so overlapping scrapes share one collection cycle, preventing goroutine pile-up when the scrape rate outpaces collection time. #1969promhttppackage now support metrics filtering by providing one or morename[]query parameters. The default behavior when none are provided remains the same, returning all metrics. #1925/format_query) andFormatQuery(ctx context.Context, query string) (string, error)method. #1846, #1856/status/tsdb/blocksendpoint viaTSDBBlocks(ctx context.Context) ([]TSDBBlock, error)method. #1896BackoffConfigto allow customization when usingWithAPIBackoff. #1895RetryCallBackto allow custom logging or handling on retry attempts in the remote write client. #1888, #1890http.DefaultTransportwhen constructing default HTTP clients to prevent accidental mutations of shared global transport state. #1885Gather()and return an error instead of crashing the process. #1961cpu-secondsunit suffix handling for metricgo_cpu_classes_gc_mark_assist_cpu_seconds. #1991InstrumentHandlerDurationandInstrumentHandlerCounterno longer panic when given an observer/counter that does not implementExemplarObserver/ExemplarAdder(e.g. aSummaryVec). The exemplar is dropped and the value is recorded via the plainObserve/Addpath, matching the safe-cast already used byTimer.ObserveDurationWithExemplar. #2005GETrequests whenPOSTrequests return403 Forbiddenor method not allowed. #2030httpClient.Do. #1971All commits
/status/tsdb/blocksendpoint by @tjhop in #1896/metricshandler output filtering vianame[]query param by @colega in #1925New Contributors
Full Changelog: prometheus/client_golang@v1.23.2...v1.24.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.