gh-aw icon indicating copy to clipboard operation
gh-aw copied to clipboard

Self-hosted: AWF install requires Sigstore public-good verification with no checksum-only fallback

Open priyanka9990 opened this issue 2 weeks ago • 1 comments

Summary

gh-aw v1.2.2 installs the firewall with install_awf_binary.sh, and that script requires a live Sigstore public-good verification for every firewall release at v0.29.5 or newer. The default pin in v1.2.2 is v0.29.11, so a normal compile always takes this path. There is no frontmatter setting that keeps the checksum check and skips the Sigstore check.

On a network where a corporate proxy blocks the Sigstore hosts, the install fails before the agent starts. gh-aw v1.0.1 installed firewall v0.29.0 with a SHA256 checksum downloaded from GitHub and did not contact Sigstore. That install succeeds on the same machine.

Environment

  • gh-aw v1.2.2, stock compile, no hand-edited lock file
  • Self-hosted Linux runner, not ARC/DinD
  • runner.installation: rootless
  • sandbox.agent left at the compiler default (firewall v0.29.11)
  • Corporate proxy in front of the runner

What the installer does

In actions/setup/sh/install_awf_binary.sh (v1.2.2), attestation is turned on from firewall v0.29.5:

REQUIRE_ATTESTATION=false
if (( version > 0.29.4 )); then
  REQUIRE_ATTESTATION=true
fi

When that flag is set, the script verifies the release with the Sigstore public-good verifier after downloading checksums.txt from GitHub.

Steps to reproduce

  1. Compile a workflow with gh-aw v1.2.2 and do not pin sandbox.agent.version.
  2. Run it on a self-hosted runner whose network returns HTTP 403 for the Sigstore public-good hosts.
  3. Watch the "Install AWF binary" step.

Hosts that returned 403 here, with Server: Zscaler:

  • https://tuf-repo-cdn.sigstore.dev/targets/root.json
  • https://sigstore-tuf-root.storage.googleapis.com/
  • https://rekor.sigstore.dev/api/v1/log
  • https://fulcio.sigstore.dev/api/v1/rootCert

https://github.com/ returns 200 from the same machine, which is why the checksum file itself downloads.

Observed

install_awf_binary.sh v0.29.11 --rootless downloads checksums.txt, then fails:

Installing awf with checksum verification (version: v0.29.11, os: Linux, arch: x86_64)
Downloading checksums from 'https://github.com/github/gh-aw-firewall/releases/download/v0.29.11/checksums.txt'...
Error: failed to choose verifier based on provided bundle issuer: public good verifier is not available (initialization may have failed)

The agent and detection jobs both stop at "Install AWF binary".

Expected

One of:

  • A frontmatter switch for checksum-only verification when Sigstore is not reachable, using the digest already pinned by the compiler.
  • Documentation of the required hosts, plus an error that says the public-good trust root could not be fetched, instead of "verifier is not available".

Workaround we used

Pin the firewall below the attestation cutoff and supply the manifest digest, because v1.2.2 has no built-in pin for that older release:

sandbox:
  agent:
    id: awf
    version: v0.29.4
    checksums-sha256: <sha256 of that release's checksums.txt>

The install then runs install_awf_binary.sh v0.29.4 --checksums-sha256 <digest> --rootless and verifies only the checksum. This skips the firewall fixes after v0.29.4, so it is a downgrade, not a fix.

Without checksums-sha256, v0.29.4 is refused as well:

ERROR: No reviewed SHA256 pin for github/gh-aw-firewall v0.29.4 checksums.txt; refusing to install an unverified release.

Notes

  • This is separate from the shared /tmp/gh-aw cleanup in #75441. The install fails even when that directory is empty.
  • network: in the workflow frontmatter does not apply. The install step runs on the runner, before the firewall starts.

priyanka9990 avatar Nov 11 '26 16:11 priyanka9990

🔗 AWF tracking issue: github/gh-aw-firewall#11725

Generated by Firewall Issue Dispatcher · copilot · routed: haiku55 xhigh · ~2 AIC · ⊞ 3K · ◷

lpcox avatar Nov 17 '26 12:11 lpcox