[users at bb.net] Cannot Stop: you need to have role 'admins'

Pierre Tardy tardyp at gmail.com
Fri Feb 24 12:23:17 UTC 2017

Hi Chris,
Did you resolve this issue?
I am not sure if email property is populated by default if you are using
solely RemoteUserAuth.
You might need to implement or use an existing user info provider.

Perhaps using RolesFromUsername might help as well.

You can see in the about page more details about what user information has
been set by your authentication plugins
e.g. http://nine.buildbot.net/#/about

On Tue, Feb 21, 2017 at 4:54 AM Chris Spencer <chrisspen at gmail.com> wrote:

> How do you grant your user the ability to stop/resume builds?
> I'm able to login using "myusername at mydomain.com", and Buildbot shows an
> icon for my user with a logout link, but when I try to stop a build, I get
> the error message:
>     Cannot Stop: you need to have role 'admins'
> My auth setup looks like:
>     authz = util.Authz(
>       allowRules=[
>         util.StopBuildEndpointMatcher(role="admins"),
>         util.ForceBuildEndpointMatcher(role="admins"),
>         util.RebuildBuildEndpointMatcher(role="admins")
>       ],
>       roleMatchers=[
>         util.RolesFromEmails(admins=["myusername at mydomain.com"])
>       ]
>     )
>     c['www'] = dict(
>         port=8010,
>         plugins=dict(waterfall_view={}, console_view={}),
>         auth=util.RemoteUserAuth(),
>         authz=authz,
>     )
> What am I doing wrong?
> _______________________________________________
> 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/20170224/d27e02b9/attachment.html>

More information about the users mailing list