[users at bb.net] Roles

Paulo Matos pmatos at linki.tools
Fri Jul 7 08:18:08 UTC 2017


Hi,

I was looking at the example in the manual:
from buildbot.plugins import *
authz = util.Authz(
  allowRules=[
    util.AnyControlEndpointMatcher(role="admins"),
  ],
  roleMatchers=[
    util.RolesFromEmails(admins=["my at email.com"])
  ]
)
auth=util.UserPasswordAuth({'my at email.com': 'mypass'})
c['www']['auth'] = auth
c['www']['authz'] = authz


I tried doing instead to match all emails in a domain:
util.RolesFromEmails(admins=["*@email.com"])

but it doesn't seem to work. Is there a way to do something like this?
Also, how can I disable anonymous access, i.e. an anonymous user cannot
see anything but a blank slate until it performs a logon with an email
from email.com?

-- 
Paulo Matos


More information about the users mailing list