[P9] Add WOODPECKER_PLUGINS_PRIVILEGED for buildx and trivy #99
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Woodpecker v3.x changed the default privilege model:
woodpeckerci/plugin-docker-buildx(and likelyplugin-trivy) are no longer privileged by default. All image build and scan steps fail with a privilege error.Affected pipelines
deploy.yml— 5 buildx + 4 trivy stepsinfra-ci.yml— 5 buildx steps (dry_run)rebuild-all.yml— 5 buildx + 3 trivy stepsFix
Add
WOODPECKER_PLUGINS_PRIVILEGEDto the woodpecker-server environment incompose.yml:This is a server-side setting — the server must whitelist plugins that are allowed to run privileged. The agent already runs with
privileged: true.Acceptance criteria
WOODPECKER_PLUGINS_PRIVILEGEDadded to woodpecker-server envdocker compose up -d woodpecker-serverrestarts cleanlyrebuild-all.ymlmanually and confirm all buildx steps pass