Page MenuHomePhabricator

buildkitd: Require use of the blubber frontend when running on trusted runners.
Closed, ResolvedPublic

Description

In a call to buildctl you can specify the frontend which is used to generate the build graph. For example, to build with blubber-buildkit:

buildctl build  --frontend=gateway.v0 --opt source=docker-registry.wikimedia.org/repos/releng/blubber/buildkit:v0.16.0 ...

or to build with a Dockerfile:

# Two forms
buildctl build  --frontend=gateway.v0 --opt source=docker/dockerfile ...
# or
buildctl build  --frontend=dockerfile.v0  ...

For Gitlab CI jobs running on trusted runners, we want buildkitd to enforce use of the blubber frontend.

Details

TitleReferenceAuthorSource BranchDest Branch
buildkitd: Add ability to restrict frontends and gateway sourcesrepos/releng/buildkit!46dancywmf/v0.12-If6519d9b16f636d40b445e42c58d21b38d4b666ewmf/v0.12
Use kokkuri image v1.8.0repos/releng/kokkuri!81dancyuse-v1.8.0main
Remove build frontend restrictions from kokkurirepos/releng/kokkuri!80dancyreview/dancy/remove-frontend-restrictionsmain
use buildkit image tag wmf-v0.11-8repos/releng/gitlab-cloud-runner!241dancyreview/dancy/use-buildkit-wmf-v0.11-8main
buildkitd: Add ability to restrict frontends and gateway sourcesrepos/releng/buildkit!40dancyreview/dancy/restrictionswmf/v0.11
Customize query in GitLab

Event Timeline

thcipriani added a subscriber: demon.
dancy triaged this task as Medium priority.

Change 938931 had a related patch set uploaded (by Ahmon Dancy; author: Ahmon Dancy):

[operations/puppet@production] Use buildkit wmf-v0.11-8 on WMCS and trusted runners

https://gerrit.wikimedia.org/r/938931

Change 938939 had a related patch set uploaded (by Ahmon Dancy; author: Ahmon Dancy):

[operations/puppet@production] Restrict buildkitd frontend gateway and allowed sourced on trusted runners

https://gerrit.wikimedia.org/r/938939

Change 938931 merged by RLazarus:

[operations/puppet@production] Use buildkit wmf-v0.11-8 on WMCS and trusted runners

https://gerrit.wikimedia.org/r/938931

Change 938939 merged by RLazarus:

[operations/puppet@production] Restrict buildkitd frontend gateway and allowed sourced on trusted runners

https://gerrit.wikimedia.org/r/938939

buildkitd frontend enforcement has been deployed to trusted runners and tested.

Change 939730 had a related patch set uploaded (by Ahmon Dancy; author: Ahmon Dancy):

[operations/puppet@production] Fix buildkitd.toml.erb

https://gerrit.wikimedia.org/r/939730

Change 939730 merged by EoghanGaffney:

[operations/puppet@production] Fix buildkitd.toml.erb

https://gerrit.wikimedia.org/r/939730