Reputation: 3057
I have a buildbot working and have added basic authentication following "Setting Authorized Web Users" from the manual http://docs.buildbot.net/current/tutorial/tour.html. I was hoping to restrict people who could trigger a new build.
But now the web interface shows no builds at all without login. How can I make the builds public?
My current config looks like this, minus the line giving the password details.
c['www']['authz'] = util.Authz(
allowRules = [
util.AnyControlEndpointMatcher(role="admins")
],
roleMatchers = [
util.RolesFromUsername(roles=['admins'], usernames=['xxx'])
]
)
Upvotes: 3
Views: 204
Reputation: 3057
I have crated a solution based on this message to the mailing list.
https://lists.buildbot.net/pipermail/users/2017-February/001066.html
##util.AnyControlEndpointMatcher(role="admins")
util.StopBuildEndpointMatcher(role="admins"),
util.ForceBuildEndpointMatcher(role="admins"),
util.RebuildBuildEndpointMatcher(role="admins")
This seems to run counter to the documentation which says a call to AnyControlEndpointMatcher
should be added and the simple example. So still confused.
Upvotes: 1
Reputation: 1242
You need to configure authentication and authorization.
Probably the simple example config is enough for your simple example http://docs.buildbot.net/latest/manual/cfg-www.html#example-configs
Upvotes: 2