Skip to content

chore(ci): enforce secure runners and dependency scanning - #7653

Merged
grandizzy merged 26 commits into
mainfrom
codex/security-workflows-rollout
Sep 18, 2026
Merged

grandizzy merged 26 commits into
mainfrom
codex/security-workflows-rollout

Conversation

@sds

@sds sds commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

Enable Aegis-backed secure runners across CI, enforce first-step runner coverage, and pin shared workflows including dependency scanning. Set CARGO_HTTP_TIMEOUT to 180 seconds so Cargo can wait for Aegis's bounded Socket lookup instead of timing out early.

@sds sds changed the title chore(ci): enforce secure runners and dependency review chore(ci): enforce secure runners and dependency scanning Sep 16, 2026
sds added 3 commits September 16, 2026 18:02
…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
@socket-security

socket-security Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

No dependency changes detected. Learn more about Socket for GitHub.

👍 No dependency changes detected in pull request

@sds
sds requested a review from 0xKitsune as a code owner September 17, 2026 01:35
grandizzy added a commit to tempoxyz/gh-actions that referenced this pull request Sep 17, 2026
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>
grandizzy added a commit to tempoxyz/gh-actions that referenced this pull request Sep 17, 2026
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>
grandizzy added a commit to tempoxyz/gh-actions that referenced this pull request Sep 17, 2026
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>
grandizzy and others added 4 commits September 17, 2026 10:17
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>
@grandizzy
grandizzy marked this pull request as draft September 17, 2026 11:55
grandizzy and others added 7 commits September 17, 2026 14:48
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>
@grandizzy

Copy link
Copy Markdown
Contributor

cyclops audit fast

@grandizzy
grandizzy marked this pull request as ready for review September 18, 2026 08:29

@tempo-voight-kampff tempo-voight-kampff Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving on behalf of @sds, who approved this pull request (head 02f5dc705a2a) using the Voight-Kampff Chrome extension.

@grandizzy

Copy link
Copy Markdown
Contributor

+1

@tempo-voight-kampff tempo-voight-kampff Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 tempoxyz-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👁️ 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_target reusable workflow: .github/workflows/pr-audit.yml:27-28 now grants id-token: write to a job reachable from pull_request_target and delegates to a pinned workflow in tempoxyz/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-36 now 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-13 uses the safe pull_request trigger, but delegates to tempoxyz/gh-actions/.github/workflows/dependency-scan.yml@25cce154...; that reusable workflow should be reviewed in the gh-actions repo because this PR grants it OIDC.


steps:
- name: Secure runner
uses: tempoxyz/gh-actions/actions/secure-runner@ca2b15de1d1f6edd2276736187d7e4c2d898972c

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 [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.

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.

3 participants