Repository navigation
Description
Problem
Several controls need the notion of "this action comes from a trusted source", but today each one has its own config and its own list. The trust definition is duplicated and inconsistent:
actionsMustBePinnedByCommitShahas its owntrustedOwnerslistgithubActionMustComeFromAuthorizedSourceshastrustedGithubActions+trustGithubOfficialActions+trustSameOrgActions+minimumStarsactionsMustNotBeArchivedhas no trust notion at all, it flags any archived action the same way. Feedback from Spinnaker: an archived action from a trusted source (old gradle actions, the Release GHA removed by GitHub) is not the same risk as an archived random fork, and sometimes the archived official action is still the best option available since all the alternatives are untrusted
So a user who wants to declare "I trust the gradle org" has to do it in several places, and some controls ignore it anyway. On top of that, feedback from CDEvents: GitHub already has a repo/org level "allowed actions" setting, and maintaining the same list a second time in .plumber.yaml is counterproductive. We committed publicly to read it automatically (cdevents/sdk-go#148).
Proposal
One global trusted actions list, defined once and consumed by all controls that need it.
Sources of the list, merged:
- Plumber's curated default publishers (shipped in chore(defaultconfig): curate the shipped default + add extension capability #365, with the
includePlumberDefaultsunion behavior) including other criteria (ex: number of stars) - user additions in
.plumber.yaml(one place, not per control) - the repo/org GitHub allowed-actions setting, read automatically via the API when available (closes the promise made in Add Plumber security scan and harden workflow actions cdevents/sdk-go#148)
Consumers:
githubActionMustComeFromAuthorizedSources: uses the global list directlyactionsMustBePinnedByCommitSha: trusted source lowers or exempts, replaces the separatetrustedOwners. But we should allow the user to not make exception for trusted list.actionsMustNotBeArchived: archived + trusted source = lower severity than archived unknown fork- any future control needing a trust notion plugs into the same list
Per-control overrides stay possible for edge cases, but the default is the shared list.
Migration
Existing per-control lists must keep working (backward compat like the extends work in #365). The generated config should only expose the global list.
References
- Spinnaker feedback, CDF Slack thread Jul 28 (archived + trusted case, pinning trust case)
- Add Plumber security scan and harden workflow actions cdevents/sdk-go#148 review comments (allowed-actions duplication)
- chore(defaultconfig): curate the shipped default + add extension capability #365 curated default list and
includePlumberDefaults
Activity
[-]Global trusted actions list shared by all controls[/-][+]Add a global trusted actions list shared by all controls[/+]