Woodpecker CI 3.21 tightens agent auth, adds read-only forge tokens and SBOMs
Woodpecker CI 3.21 reduces the privileges needed to clone repositories from Gitea and GitLab, hardens agent authentication, and ships release SBOMs for supply-chain transparency.
Summary
Woodpecker CI, the lightweight self-hosted CI/CD platform, has published version 3.21 with a security-focused release. Repository cloning from Gitea and GitLab now uses read-only deployment tokens, lowering the privileges required for pipeline access, while agent authentication moves to constant-time token comparisons and agents are confined to updating steps inside their assigned workflows. Webhook signature verification has been improved, authentication failures are logged in a Fail2Ban-compatible format, and administrators can restrict admin accounts to the primary Git forge.
On the pipeline side, the number of permitted values per matrix axis rises from 10 to 64, queue scheduling handles large concurrency-group backlogs faster, and task lease timeouts become configurable through the WOODPECKER_TASK_TIMEOUT environment variable. The Kubernetes backend gains better pod monitoring and workflow resource cleanup, the local backend adds initial C# script runner support, and forge integration improves reporting of canceled and skipped workflows, Forgejo draft pull request metadata, and GitHub pipeline configuration directory retrieval. Releases now also include a generated SBOM.
What changes in Woodpecker CI 3.21
- Read-only forge tokens: Cloning repositories from Gitea and GitLab now relies on read-only deployment tokens, so a compromised pipeline no longer needs write-capable credentials to fetch source.
- Agent hardening: Token checks use constant-time comparisons to avoid timing side channels, and agents can only update steps within the workflows assigned to them, limiting lateral movement inside the runner pool.
- Pipeline matrix expansion: The cap on values per matrix axis grows from 10 to 64, and queue scheduling is faster when draining large backlogs of concurrency groups; lease timeouts are tunable via WOODPECKER_TASK_TIMEOUT.
- Forge and supply chain: Canceled and skipped workflows are reported more accurately, Forgejo draft pull request metadata is supported, GitHub config directory retrieval is more efficient, and release artifacts now come with a generated SBOM.
Why it matters
Self-hosted CI is a high-value target because runners hold forge credentials and repository access, so read-only deployment tokens and scoped agent permissions directly shrink the blast radius of a compromised pipeline. The Fail2Ban-compatible logging and admin restriction to the primary forge make Woodpecker easier to operate safely for teams running Gitea, GitLab or Forgejo on their own infrastructure. The SBOM on releases gives downstream packagers and security teams a verifiable inventory of what ships in each version.
Original reference: linuxiac.com →