Repository navigation
chore(ci): enforce secure runners and dependency scanning - #7653
Conversation
…ows-rollout * origin/main: feat(consensus): ensure certificate tip epoch matches height index (#7671) fix(ci): restore Docker PR build notifications (#7667) fix(consensus): enforce network identity baked into binary/chainspec (#7630) fix(xtask): simplify DKG outcome arguments (#7381) feat(ci): trigger Docker image builds from PR comments (#7655) feat(bench): emit compact workload category metadata (#7663) feat: allow expiring nonce discriminators (#7474) perf(consensus): avoid rehashing locally built proposals (#7650) # Conflicts: # .github/workflows/docker-profiling.yml # .github/workflows/docker.yml
|
No dependency changes detected. Learn more about Socket for GitHub. 👍 No dependency changes detected in pull request |
Bump Socket Firewall to [Aegis 20260917T074427Z-cc48075c9387](https://github.com/tempoxyz/aegis/releases/tag/20260917T074427Z-cc48075c9387), which retries Socket HTTP 429 responses using Retry-After or backoff within the 90-second lookup deadline. Update the release tag, source commit, artifact names, tests, and documentation; report an explicit error for Intel macOS because this release only publishes ARM64 macOS artifacts. Validation: all 17 Socket Firewall/STS helper tests pass, git diff --check passes, and all five supported platform artifacts pass checksum and Sigstore provenance verification against the pinned source commit and release workflow. This is the first of three sequential gh-actions PRs for [Tempo #7653](tempoxyz/tempo#7653). Follow-ups will repin secure-runner and then shared workflows to merged main commits. The existing integration workflow still exercises its previously pinned secure-runner; installation through the new pin remains to be validated during the follow-ups. Prompted by: @grandizzy Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
Pin Secure Runner's Socket Firewall action to the merged main commit from [#185](#185), selecting Aegis `20260917T074427Z-cc48075c9387` with Socket HTTP 429 retries. Update the pin assertion accordingly; this inherits the release's ARM64-only macOS support. Validation: 20 Secure Runner, Socket Firewall, and Socket STS helper tests pass; git diff --check passes; the target commit is verified as an ancestor of origin/main. Live installation through this new Secure Runner pin remains to be validated when the shared workflows are repinned. PR 2 of 3 for [Tempo #7653](tempoxyz/tempo#7653). After merge, PR 3 will update shared workflows to the merged Secure Runner commit. Prompted by: @grandizzy Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
Update all 28 Secure Runner pins across shared workflows and this repository's CI to the main commit merged in [#186](#186), and update the workflow pin assertions. These jobs now select Aegis `20260917T074427Z-cc48075c9387` with Socket HTTP 429 retries; the release supports macOS ARM64 only. Validation: 51 relevant helper/coverage tests, actionlint syntax/expression checks, and git diff --check pass. Ensure Secure Runner reports no violations across 36 jobs; the pinned commit is verified on origin/main. The PR's Linux/macOS/Windows Aegis integration jobs will exercise the new installation chain; live results are pending. PR 3 of 3 for [Tempo #7653](tempoxyz/tempo#7653). After merge, Tempo can update its direct action and shared workflow pins to the merged commit. Prompted by: @grandizzy Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
Use the merged gh-actions rollout for native Socket retry handling and restore direct Cargo commands. Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>
Restore the original 1.2.0 version and checksum without the Socket cooldown workaround. Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>
Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>
Pin to gh-actions main commit ca2b15de1d1f6edd2276736187d7e4c2d898972c to use the latest stable Aegis release with checksum and provenance verification. Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>
Run the existing locked dependency fetch directly now that Secure Runner uses the updated Aegis release. Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>
|
cyclops audit fast |
There was a problem hiding this comment.
Approving on behalf of @sds, who approved this pull request (head 02f5dc705a2a) using the Voight-Kampff Chrome extension.
|
+1 |
There was a problem hiding this comment.
Approving on behalf of @grandizzy, who approved this pull request (head 02f5dc705a2a) with a +1 comment via Voight-Kampff.
GitHub branch protection considers pull request reviews, not +1 comments. Voight-Kampff is recording this approval on the reviewer's behalf so branch protection requirements are met.
tempoxyz-bot
left a comment
There was a problem hiding this comment.
👁️ Cyclops Review
This PR broadly hardens CI by adding the Tempo Secure Runner/Aegis step and OIDC permissions across workflow jobs, plus a new dependency scan workflow. One high-impact release-integrity issue remains and is called out inline.
Reviewer Callouts
- ⚡ OIDC on
pull_request_targetreusable workflow:.github/workflows/pr-audit.yml:27-28now grantsid-token: writeto a job reachable frompull_request_targetand delegates to a pinned workflow intempoxyz/gh-actions. Confirm the callee never checks out or executes untrusted PR head code while an OIDC token can be minted. - ⚡ Reproducible-build environment drift:
.github/workflows/reproducible-build.yml:35-36now runs the Secure Runner inside the deterministic build job. Confirm Aegis installation/proxy/CA changes do not alter the expected reproducible hash. - ⚡ New dependency scan callee:
.github/workflows/dependency-scan.yml:9-13uses the safepull_requesttrigger, but delegates totempoxyz/gh-actions/.github/workflows/dependency-scan.yml@25cce154...; that reusable workflow should be reviewed in thegh-actionsrepo because this PR grants it OIDC.
|
|
||
| steps: | ||
| - name: Secure runner | ||
| uses: tempoxyz/gh-actions/actions/secure-runner@ca2b15de1d1f6edd2276736187d7e4c2d898972c |
There was a problem hiding this comment.
🚨 [POTENTIAL-VULNERABILITY] Pinned Secure Runner executes a mutable Aegis release as root
The newly added secure-runner@ca2b15de... step is SHA-pinned in Tempo, but that pinned action invokes socket-firewall@2ce15102..., whose downloader queries tempoxyz/aegis/releases/latest on every run and installs the selected native package as root/administrator. In this release job it runs before checkout/build, GPG signing, and attestation, so a compromised or mistakenly published future Aegis release can change executable CI code without any Tempo PR or pin update and tamper with signed/published artifacts or capture later step-scoped secrets.
Recommended Fix:
Pin the exact reviewed Aegis release tag/source commit and, preferably, each platform asset digest inside socket-firewall or pass those pins from Tempo. Verify provenance against those fixed identities and only update them through a reviewed gh-actions change plus an explicit Tempo pin update; do not resolve /releases/latest in signing, publishing, or deployment workflows.
Enable Aegis-backed secure runners across CI, enforce first-step runner coverage, and pin shared workflows including dependency scanning. Set
CARGO_HTTP_TIMEOUTto 180 seconds so Cargo can wait for Aegis's bounded Socket lookup instead of timing out early.