Skip to content

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

Closed

Description

@zackees

What

#3061 (merged 2026-10-30, cfcc6ae7b) 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.

Neither name is in ci.toml's [allow].secrets, so ci-lint's SEC-001 reports every one of those references as a VIOLATION (not an approved exception). The profile is OIDC-only and ci.toml records the secrets this repository may use; the S3 keys were added to the workflow but not to that list.

Evidence

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

ci-lint precheck: 26 violation(s), 366 approved exception(s), 2 needs_review, in 34.84s

The 22 new violations are all one class, 11 pairs:

[SEC-001] VIOLATION .github/workflows/build-project.yaml:436
    what:  references secrets.SOLDR_S3_CACHE_ACCESS_KEY
    fix:   remove the dependency on secrets.SOLDR_S3_CACHE_ACCESS_KEY; this profile is OIDC-only ...

(before #3061 the same command reported 5 violations / 416 approved; the header has been 4 violation(s) plus the documented structural floor when the allowlist matches the workflows)

Why the allowlist, not removing the secrets

The remote cache is deliberate: it needs a bucket and credentials, setup-soldr takes them from those two env vars, and forks simply run without them. Removing them would remove the cache. [allow].secrets is where this repository records exactly which repository secrets its workflows may read (it already carries 34 names, including the release/signing keys), so the honest fix is to record these two there too.

Fix

  • ci.toml: add SOLDR_S3_CACHE_ACCESS_KEY and SOLDR_S3_CACHE_SECRET_KEY to [allow].secrets.
  • ci/test_ci_toml.py: a stdlib test that fails while either name is missing from the allowlist and asserts that every zackees/setup-soldr step in .github/workflows/build-project.yaml that sets one of them sets both (a half-configured cache is the failure mode that shows up as a silent cache miss).
  • Header after: SEC-001's 22 violations clear, nothing else moves.

Refs #3061.

Activity

  1. added
    infra
    on Oct 31, 2026
  2. zackees commented on Oct 31, 2026

    @zackees
    MemberAuthor

    Claiming: investigation

    Plan (one PR):

    1. RED: ci/test_ci_toml.py case that fails while SOLDR_S3_CACHE_ACCESS_KEY / SOLDR_S3_CACHE_SECRET_KEY are absent from [allow].secrets, and that every zackees/setup-soldr step in build-project.yaml setting one sets both.
    2. GREEN: add both names to ci.toml [allow].secrets; the 22 SEC-001 violations clear (26 -> 4, approved unchanged).
    3. Evidence: ci-lint precheck before/after headers plus ci/local_gate.py --only self-test.

    First PR within the hour.

  3. zackees commented on Oct 31, 2026

    @zackees
    MemberAuthor

    /ready

  4. added
    needs-investigation
    on Oct 31, 2026
  5. added
    ready
    and removed
    needs-investigation
    on Oct 31, 2026
  6. zackees commented on Oct 31, 2026

    @zackees
    MemberAuthor

    Claiming: ci.toml S3-cache secrets allowlist

    PR opened: #3116 (draft until CI is green).

    • RED 257dbde46: AllowSecretsTest fails on master for both SOLDR_S3_CACHE_* names.
    • GREEN ff0ce34e7: both names in [allow].secrets; precheck 26 -> 4 violations, approved 366 -> 364 (the two release-rust.yaml:244-245 S3 references now pass the allowlist).
    • ci/local_gate.py --only self-test ok, ruff check clean.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

infraready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions