Repository navigation
ci: allow apt HTTPS SRV lookups and sigstore TUF in harden-runner - #2727
Open
stevebeattie wants to merge 1 commit into
Open
stevebeattie wants to merge 1 commit into
stevebeattie wants to merge 1 commit into
Conversation
Follow-up to chainguard-dev#2715. The HTTPS apt fallbacks now work, but before connecting to them apt's https method does an SRV lookup for _https._tcp.<host>, which harden-runner drops and reports as an anomalous call. The jobs still pass (apt falls back to A records), but the StepSecurity Harden-Runner summary check stays red on every PR where the Azure mirror flakes. Allow the SRV names for both fallback hosts in test-packages and build-packages, matching the existing _https._tcp.esm/motd.ubuntu.com entries. Also allow tuf-repo-cdn.sigstore.dev:443 in wolfi-presubmit's build-packages. wolfi-dev/os 208e4a2c1f (2026-10-24) added upstream-tests/go-test to gitsign.yaml, so the gitsign leg now runs gitsign's Go test suite, which fetches the sigstore TUF trust root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
stevebeattie
force-pushed
the
harden-runner/allow-apt-srv-and-sigstore-tuf
branch
from
October 29, 2026 04:40
f78a6b5 to
f5aca0a
Compare
Member
Author
|
Force pushed to correct the gitsign signature. |
stevebeattie
enabled auto-merge (squash)
October 29, 2026 04:42
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.
Summary
Follow-up to #2715. Since it merged, the apt jobs pass, but the StepSecurity Harden-Runner summary check is still red on most PRs because of two kinds of blocked DNS lookup.
1. apt SRV lookups for the HTTPS fallback mirrors
#2715 allowed
archive.ubuntu.com:443andsecurity.ubuntu.com:443, the HTTPS fallbacks in the runner image's/etc/apt/apt-mirrors.txt. The fallback works: on #2715's own CI, the Azure mirror failed mid-install and apt downloadedqemu-system-x86fromhttps://archive.ubuntu.cominstead (job log).Before connecting, apt's https method looks up an SRV record for
_https._tcp.<host>. harden-runner drops that lookup and flags it. apt carries on with a normal DNS lookup, so nothing fails, but the alert appears whenever the Azure mirror flakes: on #2715, #2716, #2718, #2719 and #2722. The original failing trace on #2714 shows the same dropped lookup for_https._tcp.security.ubuntu.com.This adds both SRV names, matching the existing
_https._tcp.esm.ubuntu.comand_https._tcp.motd.ubuntu.comentries.2.
tuf-repo-cdn.sigstore.devin wolfi-presubmitwolfi-dev/os@208e4a2c1f (2026-10-24, "ci: run upstream go tests for 9 packages") added
upstream-tests/go-testtogitsign.yaml. TheBuild packages (qemu, gitsign)leg ofwolfi-presubmitbuilds wolfi-dev/os at HEAD, so it now runs gitsign's own Go test suite, and that suite fetches the sigstore TUF trust root. The timing matches: runs before 10-24 (#2718, #2719) don't show this lookup, and runs after it do (#2662, #2716, #2722, #2723). The tests currently pass with it blocked.Approved endpoints
_https._tcp.archive.ubuntu.com:443test-packages,build-packages_https._tcp.security.ubuntu.com:443test-packages,build-packagestuf-repo-cdn.sigstore.dev:443build-packages(wolfi-presubmit)Normalization notes
Entries are inserted in the existing alphabetical order. No existing entries were changed or removed.
Links
_https._tcp.archive.ubuntu.com); refactor(license): use the shared chainguard.dev/license module #2662, feat: add opt-in structured execution reports for build and test pipelines #2716, build(deps): bump the gomod group across 1 directory with 4 updates #2722, build(deps): bump the actions group across 1 directory with 3 updates #2723 (tuf-repo-cdn.sigstore.dev)🤖 Generated with Claude Code