Skip to content

fix(deps): bump the toolchain to go1.26.6, clearing seven stdlib advisories - #431

Merged
scttfrdmn merged 1 commit into
mainfrom
fix/toolchain-1266
Aug 14, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
fix/toolchain-1266

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

Security Scan went from green to red on every branch with no commit touching Go code. go1.26.6 shipped, the advisory database learned about its fixes, and go.mod's toolchain still named 1.26.5.

Seven standard-library advisories, all reachable from this code:

Advisory Package Fix Reached via
GO-2026-6218 net/url quadratic complexity in resolvePath
GO-2026-6091 html/template JavaScript regexp context tracking
GO-2026-6090 crypto/tls post-handshake message limit
GO-2026-6089 net/http ReadHeaderTimeout on the h2c check
GO-2026-6088 encoding/xml recursion depth guard s3.Backend.CopyObject
GO-2026-5972 encoding/asn1 recursion depth guard PredictiveCache.Close
GO-2026-5026 x/net/idna ASCII-only Punycode labels testaws, the S3 client

None is a defect in this code; all were being shipped by it. This is the procedure the comment above the directive already describes — "bump it when a patch release carries a fix worth having, which for a filesystem handling other people's data is most of them" — and the 19-advisory state that comment was written about is what happens when it does not get followed.

Verification

  • govulncheck ./... on 1.26.6 — No vulnerabilities found.
  • go build ./... && gofmt -l . && go vet ./... — clean

One-line diff. Worth stating plainly: a security gate that turns red on its own, with no change to the code, is the gate working. The alternative is release binaries built by a compiler with seven known advisories and nothing saying so.

…sories

`Security Scan` went from green to red on every branch with no commit touching Go
code: go1.26.6 shipped, the advisory database learned about its fixes, and
go.mod's `toolchain` still named 1.26.5. govulncheck reported seven standard
library advisories, all reachable from this code —

  GO-2026-6218  net/url        quadratic complexity in resolvePath
  GO-2026-6091  html/template  JavaScript regexp context tracking
  GO-2026-6090  crypto/tls     post-handshake message limit
  GO-2026-6089  net/http       ReadHeaderTimeout on the h2c check
  GO-2026-6088  encoding/xml   recursion depth guard      (via CopyObject)
  GO-2026-5972  encoding/asn1  recursion depth guard      (via PredictiveCache.Close)
  GO-2026-5026  x/net/idna     ASCII-only Punycode labels (via testaws, the S3 client)

— and none a defect in it. This is exactly the procedure the comment above the
directive describes: bump it when a patch release carries a fix worth having,
which for a filesystem handling other people's data is most of them.

`govulncheck ./...` reports no vulnerabilities on 1.26.6. Worth recording that a
security gate turning red with no code change is the gate working, not breaking —
the alternative is shipping release binaries built by a compiler with seven known
advisories, which is what the 19-advisory state described in go.mod's comment was.
@scttfrdmn
scttfrdmn merged commit fb0ecbc into main Aug 14, 2026
79 of 80 checks passed
@scttfrdmn
scttfrdmn deleted the fix/toolchain-1266 branch August 14, 2026 03:29
scttfrdmn added a commit that referenced this pull request Aug 14, 2026
…433)

* ci: stop install-script from throwing away the output it asserts on

The success branch captured the install output in a command substitution without
`|| true`, so under `set -e` a failing install killed the step at the assignment
and `echo "$out"` never ran. The log then held only bash's

  /opt/ofs/bin/objectfs: No such file or directory
  Process completed with exit code 127

and none of the three ::error:: messages below it — messages written specifically
for the runs where they would now never be printed. The refusal branch above already
has `|| true` for exactly this reason.

Found while diagnosing a transient rockylinux:9 failure on #431 whose only diff was
a toolchain line. The same job passed on main and on #430 at the same time, and the
rerun was green, so the failure was a flake — but the flake's cause is unrecoverable
because the step discarded the evidence. A job whose assertions can only be read
when they pass reports the same non-answer this job exists to reject.

The idempotency step below has the same shape and does not need the same fix: its
substitution ends in `[ ... ] && echo SAME || echo DIFFERENT`, which exits 0
regardless.

* docs(install): objectfs.io is served now, and that is not why the repo host is absent

install.sh's header said "Both objectfs.io and packages.objectfs.io resolve to
registrar parking IPs", which stopped being true when #429 put the landing page and
the docs on Pages. The conclusion is unchanged and the reason it is unchanged is the
part worth writing down: Porkbun answers a wildcard, so packages.objectfs.io resolves
exactly like every other name under the domain and completes no TLS handshake.
Resolution was never the evidence — which is the same argument the landing-page
domain test exists to make.
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.

1 participant