4
0
mirror of https://github.com/QuasarApp/QuasarAppCI.git synced 2025-05-11 04:39:34 +00:00

added user roma

This commit is contained in:
Andrei Yankovich 2019-07-22 21:36:02 +03:00
parent 917e7a7efd
commit 32683a2872

@ -25,27 +25,28 @@ class buildBotIdentity(BuildBotModule):
# minimalistic config to activate new web UI
self.masterConf['www'] = dict(port=8010,
plugins=dict(waterfall_view={}, console_view={}, grid_view={}))
plugins=dict(waterfall_view={}, console_view={}, grid_view={}, badges={}))
self.masterConf['www']['authz'] = util.Authz(
allowRules = [
util.AnyEndpointMatcher(role="admins"),
util.AnyEndpointMatcher(role="admins")
util.AnyEndpointMatcher(role="user")
],
roleMatchers = [
util.RolesFromUsername(roles=['admins'], usernames=['EndrII']),
util.RolesFromUsername(roles=['admins'], usernames=['ZIG']),
util.RolesFromUsername(roles=['admins'], usernames=['ZIG'])
util.ForceBuildEndpointMatcher(roles=['user'], usernames=['Roma'])
util.StopBuildEndpointMatcher(roles=['user'], usernames=['Roma'])
],
util.GitHubAuth("clientid", "clientsecret")
]
)
secret = SecretManager("/home/andrei/buildBotSecret/secret.json")
self.masterConf['www']['auth'] = util.UserPasswordAuth([
('EndrII', secret.getValue("ENDRII")),
('ZIG', secret.getValue("ZIG"))
('ZIG', secret.getValue("ZIG")),
('Roma', secret.getValue("Roma"))
])