Skip to content

infra(ci): allowlist the S3 build-cache secrets (#3061 regression) - #3116

Merged
zackees merged 2 commits into
masterfrom
infra/3115-s3-cache-secrets-allowlist
Oct 31, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/3115-s3-cache-secrets-allowlist

Conversation

@zackees

@zackees zackees commented Oct 31, 2026

Copy link
Copy Markdown
Member

What

#3061 enabled the setup-soldr S3 remote build cache and gave 11 zackees/setup-soldr steps in .github/workflows/build-project.yaml an env: with SOLDR_S3_CACHE_ACCESS_KEY / SOLDR_S3_CACHE_SECRET_KEY from repository secrets, without recording either name in ci.toml's [allow].secrets. ci-lint's SEC-001 therefore reported all 22 references as violations on master, not as an approved baseline.

Fixes #3115. Refs #3061.

Change

  • ci.toml: SOLDR_S3_CACHE_ACCESS_KEY and SOLDR_S3_CACHE_SECRET_KEY join [allow].secrets (the repository's record of which repository secrets its workflows may read). Removing them instead would remove the remote cache, and forks already run without it.
  • ci/test_ci_toml.py: AllowSecretsTest pins the intent offline — both names are in the allowlist, and every zackees/setup-soldr step in build-project.yaml that sets one sets both (a half-configured cache is a silent cache miss, not a failure).

RED

257dbde46 — on master, uv run python -m unittest ci.test_ci_toml.AllowSecretsTest:

FAIL: test_s3_cache_secrets_are_allowlisted (secret='SOLDR_S3_CACHE_ACCESS_KEY')
FAIL: test_s3_cache_secrets_are_allowlisted (secret='SOLDR_S3_CACHE_SECRET_KEY')
Ran 2 tests ... FAILED (failures=2)

GREEN

ff0ce34e7.

ci-lint precheck (uvx --from git+https://github.com/zackees/ci.yml@a1917ce76598904ce515cd7eec83450c317ea6f2 ci-lint precheck):

violations approved needs_review
master 1d07cff8a 26 366 2
this branch 4 364 2

The 22 SEC-001 violations are gone; the four left are the documented structural floor (CACHE-004, GEN-004, SEC-003, WF-003). Approved fell by exactly two, which is release-rust.yaml:244-245 — the same S3 pair there, now inside the allowlist; that file's SEC-001 exception still covers its other findings, so it stays.

  • uv run ci/local_gate.py --only self-test → == self-test: ok (all ci/test_*.py).
  • uv run ruff check ci/test_ci_toml.py → clean.

No local gate stamp: this touches no Rust, C, CMake or build input, so PR CI's Fast Gate + Format / checks are the whole gate.

Notes

  • docs/features.md: no line — CI contract only, nothing a user sees.

@zackees

zackees commented Oct 31, 2026

Copy link
Copy Markdown
Member Author

Handed off to the coordinator. CI on ff0ce34e7 is green: Fast Gate ⚡, Format 🔍 / checks, CI Mode, Event Data, Validate Data, CI Gate ✅; every build lane skips because this changes no Rust, C, CMake or build input. No local gate stamp for the same reason. Auto-merge is on.

Merged via the queue into master with commit b60d442 Oct 31, 2026
36 checks passed
@zackees
zackees deleted the infra/3115-s3-cache-secrets-allowlist branch October 31, 2026 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

infra: ci.toml does not allowlist the S3 build-cache secrets, so #3061 added 22 SEC-001 violations

1 participant