Repository navigation
[docs] Add install.sh and make it the primary install method - #1403
Merged
Merged
Conversation
manugarg
force-pushed
the
install-script
branch
from
August 2, 2026 00:06
601ef55 to
87335b4
Compare
Adds docs/static/install.sh, served at https://cloudprober.org/install.sh. It detects the platform, downloads the release tarball, verifies its SHA-256 checksum, and installs the binary. Getting Started now leads with the one-liner; 'go install' moves into the other-methods table, since it requires a Go toolchain that most first-time users won't have.
manugarg
force-pushed
the
install-script
branch
from
August 2, 2026 00:22
87335b4 to
66e1d67
Compare
The tip archives are renamed copies of versioned ones, so their inner directory tracks the build version, not $VERSION. Locate the binary by glob instead, which works for both tagged releases and tip.
Every release now ships a checksums file, so a missing one is a real problem rather than an expected gap. Refuse to install instead of warning and continuing. Same for a missing sha256sum/shasum: if we can't verify, we don't install.
- Check tar up front alongside curl, so a minimal image fails with a clear message before downloading rather than a raw 'tar: not found' after. - Copy to a temp file in the install dir and rename into place. A plain cp onto a running cloudprober fails with ETXTBSY, and an interrupted one would leave a half-written binary.
manugarg
commented
Aug 2, 2026
$archive embeds $version, which comes from the environment, so a basic-regex grep could match the wrong line (or several). Compare the filename field exactly with awk instead.
- Resolve sha256sum/shasum up front alongside curl and tar, so a machine without either fails before downloading rather than after. - Clean up on INT/TERM/HUP too. dash doesn't run the EXIT trap when the shell dies from a signal, so Ctrl-C leaked the temp dir. - Don't dereference an unset HOME under 'set -u'; fail with our own message pointing at INSTALL_DIR.
social4hyq
pushed a commit
to social4hyq/homebrew-core
that referenced
this pull request
Sep 20, 2026
cloudprober 0.14.5 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`.<details> <summary>release notes</summary> <pre>A small, mostly housekeeping release: Cloudprober now builds with Go 1.26.6 (clearing CVE-2026-39821 from container scans), authoritative DNS servers get first-class probing support, and installing Cloudprober is down to a single command. ## 🔒 Security & Toolchain - **Go 1.26.6** — Cloudprober now builds with Go 1.26.6, which addresses [CVE-2026-39821](https://nvd.nist.gov/vuln/detail/CVE-2026-39821). Most deployments were never exposed (the issue needs an attacker-controlled hostname to be parsed), but the published binaries and images now come back clean from container scanners ([#1426](cloudprober/cloudprober#1426), [#1427](cloudprober/cloudprober#1427)). - **Note for library users:** `go.mod` now declares `go 1.26.6` (was `1.25.12`), so importing Cloudprober as a Go module requires a 1.26.6+ toolchain. Binary and container users are unaffected. - **install.sh hardening** — All downloads in the installer now pin `--proto =https --proto-redir =https`, so a redirect can't silently drop the transfer to plain HTTP ([#1405](cloudprober/cloudprober#1405)). - **Dependency bumps** — Docs-site dependencies updated for Dependabot alerts: postcss, fast-uri, js-yaml, brace-expansion, linkify-it ([#1393](cloudprober/cloudprober#1393), [#1408](cloudprober/cloudprober#1408), [#1422](cloudprober/cloudprober#1422)). ## 🌐 DNS: Probing Authoritative Servers Two changes that together make Cloudprober a proper fit for monitoring authoritative nameservers, rather than just resolvers ([#1193](cloudprober/cloudprober#1193)): - **`recursion_desired` option** — The DNS probe now lets you control the RD flag on outgoing queries. It defaults to `true`, so existing configs behave exactly as before; set it to `false` to query an authoritative server the way a real resolver would ([#1395](cloudprober/cloudprober#1395)). - **New `dns_validator`** — Validate the response itself, starting with an `authoritative` criterion that asserts the AA flag matches what you expect ([#1396](cloudprober/cloudprober#1396)): ``` validator { name: "authoritative" dns_validator { authoritative: true } } ``` The DNS probe now hands the full `*dns.Msg` to validators via `Input.Response`, the same way the HTTP probe passes HTTP responses. `Input.ResponseBody` still carries just the answer section, so existing regex validators are unaffected. ## 📦 Installation - **One-line installer** — `curl -sSL https://cloudprober.org/install.sh | sh` is now the primary install method. It detects your platform, resolves the latest version from the `/releases/latest` redirect (no GitHub API rate limits), verifies the SHA-256 checksum, and installs to `/usr/local/bin` or `~/.local/bin`. `VERSION` and `INSTALL_DIR` override the defaults ([#1403](cloudprober/cloudprober#1403)). - **tar.gz archives and checksums** — Releases now ship `.tar.gz` archives for Linux and macOS alongside the existing zips (Windows stays zip-only), plus a `cloudprober-<version>-checksums.txt` with SHA-256 sums for every archive ([#1402](cloudprober/cloudprober#1402)). ## 🐛 Bug Fixes - **Browser probe: S3 artifact storage with IRSA** — A partial AWS SDK for Go v2 upgrade left the STS client incompatible with the newer SDK core's retry middleware, so the startup `HeadBucket` check failed with `failed to refresh cached credentials … not found: Retry` whenever credentials came from IAM Roles for Service Accounts. The full AWS SDK v2 module family (core, config, credentials, IMDS, CloudWatch, S3, STS, SSO) is now on mutually compatible versions. Thanks @aholden85! ([#1416](cloudprober/cloudprober#1416), [#1417](cloudprober/cloudprober#1417)) - **Probestatus: status page start time** — The prober start time was embedded in the page using Go's default `time.Time` format, which `new Date()` can't parse. That threw a `RangeError` out of the document-ready handler and took the rest of the page's setup down with it. It's now emitted as RFC3339. Thanks @erik-bessegato! ([#1412](cloudprober/cloudprober#1412)) - **Probestatus: deferred chart load** — The status page called c3's `chart.load()` with no arguments, which throws on every page load. Fixed, so the charts render as intended. Thanks @erik-bessegato! ([#1413](cloudprober/cloudprober#1413)) - **Example config validation** — `tools/test_example_configs.sh` globbed `examples/**/*.cfg` without enabling `globstar`, so bash quietly matched only one level deep and seven nested example configs were never validated by CI. With globstar on, one of them turned out to be broken: `examples/targets/file/cloudprober.cfg` used `//` comments, which textproto rejects. Both fixed ([#1421](cloudprober/cloudprober#1421)). ## 📚 Docs - New dual-stack (IPv4 + IPv6) probing example ([#1420](cloudprober/cloudprober#1420)). - New FAQ entry on using a custom CA with BROWSER probes (`ERR_CERT_AUTHORITY_INVALID`) ([#1418](cloudprober/cloudprober#1418)). - CONTRIBUTING now asks for a linked issue and a real use case with pull requests ([#1415](cloudprober/cloudprober#1415)). - README updated with a Live Demo link, and blog/Slack shortlinks added ([#1398](cloudprober/cloudprober#1398)). ## 🎉 New Contributors Welcome to @aholden85 and @erik-bessegato, both first-time contributors in this release! **Full Changelog:** https://github.com/cloudprober/cloudprober/compare/v0.14.4...v0.14.5</pre> <p>View the full release notes at <a href="https://github.com/cloudprober/cloudprober/releases/tag/v0.14.5">https://github.com/cloudprober/cloudprober/releases/tag/v0.14.5</a>.</p> </details> <hr> See merge request: Harmonybrew/homebrew-core!17779
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1402.
Summary
docs/static/install.sh, served athttps://cloudprober.org/install.sh. Detects platform, resolves the latest version from the/releases/latestredirect (no GitHub API rate limit), downloads the tarball, verifies its SHA-256, installs to/usr/local/binor~/.local/bin.VERSIONandINSTALL_DIRoverride the defaults.go installmoves into the other-methods table.Test plan
--version./releases/latestredirect resolves tov0.14.4.sh -nclean; confirmeddocs/staticis mounted to the site root indocs/config/_default/module.toml.