[users at bb.net] ControlEndPoint configuration

Pierre Tardy tardyp at gmail.com
Mon Oct 21 07:51:14 UTC 2019


Hi Honas,

Authz do not prevent any UI to be shown. The rebuild button will always be
shown, but you will get an authorization error.

Regards
Pierre


Le mer. 16 oct. 2019 à 22:21, honas grael <honasgraeymael at gmail.com> a
écrit :

> Hello, looking at the docs I have in my master.cf
>
> from buildbot.plugins import *authz = util.Authz(
>   allowRules=[
>     util.AnyControlEndpointMatcher(role="admins"),
>   ],
>   roleMatchers=[
>     util.RolesFromEmails(admins=["joe"])
>   ])auth=util.UserPasswordAuth({'joe': 'mypass'})c['www']['auth'] = authc['www']['authz'] = authz
>
>
>
> When I look at the web UI the "REBUILD" button is still visible & accessible even when I am not logged in
>
> I thought these entries would make the status/progress of builds visible to anyone (anonymous users) but all control buttons such as "rebuild"
>
> , Force etc not visible. I was expecting that only when logged in as joe the buttons to be visible.
>
>
> I would like to have everything read only to all users, but control of any kind available only to the user joe
>
>
> What am I doing wrong here?
>
>
> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20191021/f9c9bdae/attachment.html>


More information about the users mailing list