Tweaks to policy manager

Explicitly disable scheduler enable/disable and do not forbid
rest of the actions. This way we work around weird issue with
us not being able to cancel queue of tasks.
This commit is contained in:
2018-04-18 11:52:29 +02:00
parent 0af67dd72c
commit eb7034f3a0

View File

@@ -374,9 +374,12 @@ authz = util.Authz(
# Defaulting old config, everyone can stop build.
util.StopBuildEndpointMatcher(role="stranger"),
util.ForceBuildEndpointMatcher(role="stranger"),
util.RebuildBuildEndpointMatcher(role="stranger"),
util.EnableSchedulerEndpointMatcher(role="admins"),
# if future Buildbot implement new control, we are safe with this last rule
util.AnyControlEndpointMatcher(role="admins")
# NOTE: This prevents us from cancelling queue, so disabled for now.
# util.AnyControlEndpointMatcher(role="admins")
],
roleMatchers=[
RolesFromOwner(role="owner"),