This is an archive of the discontinued LLVM Phabricator instance.

Add WorkerOwnerAuthz, WorkerEndpointMatcher, RolesFromWorkerOwner.
ClosedPublic

Authored by slydiman on Jun 22 2023, 8:30 AM.

Details

Reviewers
gkistanova
Summary

Add WorkerOwnerAuthz, WorkerEndpointMatcher, RolesFromWorkerOwner.

Diff Detail

Event Timeline

slydiman created this revision.Jun 22 2023, 8:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2023, 8:30 AM
slydiman requested review of this revision.Jun 22 2023, 8:30 AM
slydiman updated this revision to Diff 535392.EditedJun 28 2023, 7:30 AM

Updated the error message, removed the required role name (LLVM group name).

Added match_BuildRequestEndpoint_cancel().

The build request can be cancelled if the user is an owner of at least one worker associated with the builder.
Note Cancel whole queue on the page /#/builders will call /api/v2/buildrequests/<buildrequestid> for each build request and will stop if you have no rights for some builder. Use Cancel whole queue from the page /#/builders/<builderid> to be sure.
Note there is no any error message if you have no rights for Cancel whole queue. Probably we must create an issue for buildbot.

gkistanova accepted this revision.Jun 30 2023, 3:27 PM

Thanks, Dmitry!
LGTM.

This revision is now accepted and ready to land.Jun 30 2023, 3:27 PM