From eb7034f3a050437d48256b0d4c1ec9f4d4b482b3 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 18 Apr 2018 11:52:29 +0200 Subject: [PATCH] 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. --- master.cfg | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/master.cfg b/master.cfg index 2344d30..e3a5e46 100644 --- a/master.cfg +++ b/master.cfg @@ -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"),