Skip to content

Syncing latest changes from upstream master for blackbox_exporter - #4

Open
df-build-team wants to merge 119 commits into
masterfrom
sync_us--master
Open

df-build-team wants to merge 119 commits into
masterfrom
sync_us--master

Conversation

@df-build-team

Copy link
Copy Markdown

PR containing the latest commits from upstream master branch

Aprazor and others added 2 commits March 22, 2026 18:29
Two fixes in ProbeGRPC:
1. When grpc.NewClient returns an error, execution continued into
   a nil conn, causing a panic. Add 'return false' after the error.
2. client.Check used context.Background() instead of the probe ctx,
   bypassing the scrape timeout. Use ctx to honor the deadline.

Signed-off-by: Aprazors <Aprazors@gmail.com>
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
@df-build-team
df-build-team requested a review from a team May 27, 2026 08:03
SuperQ and others added 5 commits May 27, 2026 10:25
* Update Go to 1.26.x.
* Bump Go modules.

Signed-off-by: SuperQ <superq@gmail.com>
…ometheus#1577)

Bumps [github.com/prometheus/exporter-toolkit](https://github.com/prometheus/exporter-toolkit) from 0.15.1 to 0.16.0.
- [Release notes](https://github.com/prometheus/exporter-toolkit/releases)
- [Commits](prometheus/exporter-toolkit@v0.15.1...v0.16.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/exporter-toolkit
  dependency-version: 0.16.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.79.3 to 1.81.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](grpc/grpc-go@v1.79.3...v1.81.1)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-version: 1.80.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [github.com/google/cel-go](https://github.com/google/cel-go) from 0.27.0 to 0.28.0.
- [Release notes](https://github.com/google/cel-go/releases)
- [Commits](google/cel-go@v0.27.0...v0.28.0)

---
updated-dependencies:
- dependency-name: github.com/google/cel-go
  dependency-version: 0.28.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: prombot <prometheus-team@googlegroups.com>
Replace PROMBOT_GITHUB_TOKEN secret with the built-in github.token and
add the required permissions block (contents: write) to the job.

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
…token-migrate

ci: migrate publish_release job to github.token
- Drop standalone checkout steps before promci composite actions (build,
  publish_main, publish_release) since promci v0.8.2 handles checkout
  internally
- Bump promci actions to v0.8.2
  (d9d4f5688814f0b77bf003d07fb8c00507390634)
- Add packages: write permission to publish_default and publish_release
- Add ghcr_io_password: ${{ github.token }} to publish_main and
  publish_release steps

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
@df-build-team
df-build-team requested a review from a team May 30, 2026 08:08
@openshift-ci openshift-ci Bot removed the lgtm label May 30, 2026
Signed-off-by: prombot <prometheus-team@googlegroups.com>
@openshift-ci openshift-ci Bot added the lgtm label Jun 1, 2026
@openshift-ci

openshift-ci Bot commented Jun 1, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: df-build-team, yati1998

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@df-build-team
df-build-team requested a review from a team June 1, 2026 08:09
@openshift-ci openshift-ci Bot removed the lgtm label Jun 1, 2026
@openshift-ci

openshift-ci Bot commented Jun 1, 2026

Copy link
Copy Markdown

New changes are detected. LGTM label has been removed.

roidelapluie and others added 2 commits June 1, 2026 11:40
…token-migrate

ci: migrate to promci v0.8.2 and push images to GHCR
Bumps [github.com/quic-go/quic-go](https://github.com/quic-go/quic-go) from 0.59.0 to 0.59.1.
- [Release notes](https://github.com/quic-go/quic-go/releases)
- [Commits](quic-go/quic-go@v0.59.0...v0.59.1)

---
updated-dependencies:
- dependency-name: github.com/quic-go/quic-go
  dependency-version: 0.59.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot Bot and others added 30 commits October 14, 2026 15:00
Bumps the prometheus group with 2 updates: [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) and [github.com/prometheus/common](https://github.com/prometheus/common).


Updates `github.com/prometheus/client_golang` from 1.24.1 to 1.25.0
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/v1.25.0/CHANGELOG.md)
- [Commits](prometheus/client_golang@v1.24.1...v1.25.0)

Updates `github.com/prometheus/common` from 0.72.0 to 0.72.1
- [Release notes](https://github.com/prometheus/common/releases)
- [Changelog](https://github.com/prometheus/common/blob/main/CHANGELOG.md)
- [Commits](prometheus/common@v0.72.0...v0.72.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-version: 1.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: prometheus
- dependency-name: github.com/prometheus/common
  dependency-version: 0.72.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: prometheus
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [github.com/andybalholm/brotli](https://github.com/andybalholm/brotli) from 1.2.5 to 1.2.6.
- [Commits](andybalholm/brotli@v1.2.5...v1.2.6)

---
updated-dependencies:
- dependency-name: github.com/andybalholm/brotli
  dependency-version: 1.2.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Release v0.29.1

Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>

* CHANGELOG: mark dependency updates as bugfixes

Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>

---------

Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>
…us#1719)

* docs: add CONTRIBUTING.md and AGENTS.md

Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>

* README: list the container image registries

Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>

* README: add a security section

Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>

* CHANGELOG: add [SECURITY] to the unreleased template

Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>

---------

Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>
* docs: add RELEASE.md

Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>

* docs: drop past releases table from RELEASE.md

Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>

---------

Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>
Signed-off-by: prombot <prometheus-team@googlegroups.com>
Bumps [github.com/quic-go/quic-go](https://github.com/quic-go/quic-go) from 0.63.0 to 0.64.0.
- [Release notes](https://github.com/quic-go/quic-go/releases)
- [Commits](quic-go/quic-go@v0.63.0...v0.64.0)

---
updated-dependencies:
- dependency-name: github.com/quic-go/quic-go
  dependency-version: 0.64.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [github.com/andybalholm/brotli](https://github.com/andybalholm/brotli) from 1.2.6 to 1.2.7.
- [Commits](andybalholm/brotli@v1.2.6...v1.2.7)

---
updated-dependencies:
- dependency-name: github.com/andybalholm/brotli
  dependency-version: 1.2.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [github.com/quic-go/quic-go](https://github.com/quic-go/quic-go) from 0.64.0 to 0.64.1.
- [Release notes](https://github.com/quic-go/quic-go/releases)
- [Commits](quic-go/quic-go@v0.64.0...v0.64.1)

---
updated-dependencies:
- dependency-name: github.com/quic-go/quic-go
  dependency-version: 0.64.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [go.yaml.in/yaml/v3](https://github.com/yaml/go-yaml) from 3.0.5 to 3.0.6.
- [Commits](yaml/go-yaml@v3.0.5...v3.0.6)

---
updated-dependencies:
- dependency-name: go.yaml.in/yaml/v3
  dependency-version: 3.0.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
<!-- org-infra-maintainers -->
Source: fc9efc2ddcb3d8eb88e31982cfb974bdb50300f5

Signed-off-by: prometheus-org-infra[bot] <314372684+prometheus-org-infra[bot]@users.noreply.github.com>
Signed-off-by: prombot <prometheus-team@googlegroups.com>
http.NewRequest only sets ContentLength for in-memory bodies, so a body
read from body_file was sent with Transfer-Encoding: chunked, and servers
that require a length (e.g. older lighttpd) answered 411. Use the file's
size, and an empty body for an empty file.

Fixes prometheus#1375

Signed-off-by: cristianchiriac <80774326+cristianchiriac@users.noreply.github.com>
prometheus#1737)

* prober: buffer debug logs per request for debug=true

A debug=true probe now returns debug lines when --log.prober is higher.
Stderr and normal scrapes keep the --log.prober level.

Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>

* README: document the debug=true log level

Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>

---------

Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>
Signed-off-by: prombot <prometheus-team@googlegroups.com>
* prober: do not decode valid target URLs a second time

Since prometheus#1525 the handler runs url.QueryUnescape on every target, after
r.URL.Query() has already decoded it once. Escapes that belong to a
valid URL are rewritten before the probe runs: %2F becomes /, %26
becomes &, + becomes a space and %25 becomes %, so the exporter probes
a different URL than the one configured.

Only decode again when the target is not already a URL with a host.
The double-encoded host:port and fully encoded URL cases from prometheus#1520
are still decoded.

TestURLDecoding now checks the request URI the server receives, with
three cases for escapes in a valid URL.

Signed-off-by: Azan Hyder <azanhyder49@gmail.com>

* prober: test the empty-host decode branch in TestURLDecoding

Assisted-by: Claude Code
Signed-off-by: Rani.Halabi <rani.halabi@unity3d.com>

---------

Signed-off-by: Azan Hyder <azanhyder49@gmail.com>
Signed-off-by: Rani.Halabi <rani.halabi@unity3d.com>
Co-authored-by: Azan Hyder <azanhyder49@gmail.com>
gorilla/websocket v1.5.3 uses a weak random number generator for the mask key. The advisory fixed version is a pseudo-version, because the latest tag is still v1.5.3.

Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>
* main: drain in-flight requests on SIGTERM

On SIGINT or SIGTERM main returned straight away without calling
srv.Shutdown, so any /probe request still running (up to the scrape or
module timeout) was cut off and Prometheus recorded a failed scrape.

Call srv.Shutdown with a 30s bound, which matches the default Kubernetes
termination grace period, and fall back to srv.Close if it expires. The
exit status stays 0. Ignore http.ErrServerClosed from the serve
goroutine, since it is the expected result of Shutdown and not a
startup error. Stop signal delivery after the first signal so a second
one kills the process without waiting.

Assisted-by: Claude Code (Claude Opus 5.5)
Signed-off-by: drfaust92 <ilia.lazebnik@gmail.com>

* main: log which signal triggered the shutdown

Assisted-by: Claude Code (Claude Opus 5.5)
Signed-off-by: drfaust92 <ilia.lazebnik@gmail.com>

* Drop shutdown_test.go

now done as an e2e test in prometheus#1738

Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>

---------

Signed-off-by: drfaust92 <ilia.lazebnik@gmail.com>
Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>
Co-authored-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>
Bumps the prometheus group with 2 updates: [github.com/prometheus/common](https://github.com/prometheus/common) and [github.com/prometheus/exporter-toolkit](https://github.com/prometheus/exporter-toolkit).


Updates `github.com/prometheus/common` from 0.72.1 to 0.74.0
- [Release notes](https://github.com/prometheus/common/releases)
- [Changelog](https://github.com/prometheus/common/blob/main/CHANGELOG.md)
- [Commits](prometheus/common@v0.72.1...v0.74.0)

Updates `github.com/prometheus/exporter-toolkit` from 0.20.0 to 0.21.0
- [Release notes](https://github.com/prometheus/exporter-toolkit/releases)
- [Commits](prometheus/exporter-toolkit@v0.20.0...v0.21.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/common
  dependency-version: 0.74.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: prometheus
- dependency-name: github.com/prometheus/exporter-toolkit
  dependency-version: 0.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: prometheus
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…rometheus#1748)

Bumps [github.com/quic-go/quic-go](https://github.com/quic-go/quic-go) from 0.64.1 to 0.66.0.
- [Release notes](https://github.com/quic-go/quic-go/releases)
- [Commits](quic-go/quic-go@v0.64.1...v0.66.0)

---
updated-dependencies:
- dependency-name: github.com/quic-go/quic-go
  dependency-version: 0.66.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…rometheus#1750)

Bumps [github.com/andybalholm/brotli](https://github.com/andybalholm/brotli) from 1.2.7 to 1.3.0.
- [Commits](andybalholm/brotli@v1.2.7...v1.3.0)

---
updated-dependencies:
- dependency-name: github.com/andybalholm/brotli
  dependency-version: 1.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps the golang-org-x group with 1 update in the / directory: [golang.org/x/net](https://github.com/golang/net).


Updates `golang.org/x/net` from 0.62.0 to 0.63.0
- [Commits](golang/net@v0.62.0...v0.63.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.63.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: golang-org-x
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
)

* prober/icmp: use math/rand/v2 for ICMP IDs and sequence

getRandomICMPID allocated and time-seeded a fresh *math/rand.Rand on
every probe (rand.New(rand.NewSource(time.Now().UnixNano()))). Under a
coarse clock, probes fired close together could seed similar generators
and produce correlated IDs — undercutting the "avoid clashes" intent —
and the per-probe allocation is needless.

Use the top-level math/rand/v2 functions instead: they are automatically
seeded, goroutine-safe and allocation-free. No behavior change beyond
better-distributed IDs.

Add table-driven tests for the ICMP sequence counter (increment and
uint16 wraparound) and for the random ID range and variety.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: randomizedcoder <dave.seddon.ca@gmail.com>

* prober/icmp: drop redundant randomness tests

Remove tests for unchanged sequence handling and standard library random-number properties, as requested in review. Removing the file also resolves its license-header comment.

Signed-off-by: randomizedcoder <dave.seddon.ca@gmail.com>

---------

Signed-off-by: randomizedcoder <dave.seddon.ca@gmail.com>
Signed-off-by: prombot <prometheus-team@googlegroups.com>
* feat: add key_exchange info metric

Signed-off-by: Nathan Williams <nath.e.will@gmail.com>

* fix: legacy_RSA instead of none for 0 value

Signed-off-by: Nathan Williams <nath.e.will@gmail.com>

* prober: fix license header and key exchange test expectation

Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>

---------

Signed-off-by: Nathan Williams <nath.e.will@gmail.com>
Signed-off-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>
Co-authored-by: Nathan Williams <nath.e.will@gmail.com>
Co-authored-by: Suraj Nath <9503187+electron0zero@users.noreply.github.com>
Assisted-by: opencode (gpt-6.1-terra)
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
Assisted-by: opencode (gpt-6.1-terra)
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
…-master

Signed-off-by: ODF CI Bot <df-jira-bot@redhat.com>
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.