Skip to content

Commit fb59a0a

Browse files
committed
dev-workflow: add user authentication
1 parent 53d870b commit fb59a0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/master.cfg.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
NixConfigurator,
44
BuildbotNixConfig,
55
)
6+
from buildbot.plugins import util
67
from buildbot.process.factory import BuildFactory
78

89
factory = BuildFactory()
@@ -30,6 +31,7 @@
3031
domain="localhost",
3132
webhook_base_url=url,
3233
url=url,
34+
admins=["admin"],
3335
)
3436

3537
c = BuildmasterConfig = dict(
@@ -40,5 +42,5 @@
4042
NixConfigurator(buildbot_nix_config),
4143
],
4244
protocols={"pb": {"port": "tcp:9989:interface=\\:\\:1"}},
43-
www=dict(port=PORT, plugins=dict()),
45+
www=dict(port=PORT, plugins=dict(), auth=util.UserPasswordAuth({"admin": "admin"})),
4446
)

0 commit comments

Comments
 (0)