diff options
-rw-r--r-- | buildbot/master-lonelyslave.cfg | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/buildbot/master-lonelyslave.cfg b/buildbot/master-lonelyslave.cfg index f15e33d..47fe3b4 100644 --- a/buildbot/master-lonelyslave.cfg +++ b/buildbot/master-lonelyslave.cfg @@ -152,9 +152,21 @@ c['status'] = [] from buildbot.plugins import util c['www'] = dict(port=8010, - plugins=dict(waterfall_view={}, - console_view={}), - auth=util.UserPasswordAuth({"marcello": "taler"})) + plugins=dict(waterfall_view={}, console_view={})) + +authz = util.Authz( + allowRules=[ + util.StopBuildEndpointMatcher(role="admins"), + util.ForceBuildEndpointMatcher(role="admins"), + util.RebuildBuildEndpointMatcher(role="admins") + ], + roleMatchers=[ + util.RolesFromUsername(roles=["admins"], usernames=["marcello"]) + ] +) + +c['www']['auth'] = util.UserPasswordAuth({"marcello": "taler"})) +c['www']['authz'] = authz ####### PROJECT IDENTITY c['title'] = "Taler" |