diff options
author | MS <ms@taler.net> | 2020-11-16 17:25:53 +0100 |
---|---|---|
committer | MS <ms@taler.net> | 2020-11-16 17:25:53 +0100 |
commit | 1d4ebbfb9b5fd5b6588966e6eb0efce01b2ab54c (patch) | |
tree | 7096a3dc16d6de9e359a0675fb31c020f6791b8c /buildbot | |
parent | d9554273681064b64c3e9a2d7fd56b676a554217 (diff) | |
download | libeufin-deployment-1d4ebbfb9b5fd5b6588966e6eb0efce01b2ab54c.tar.gz libeufin-deployment-1d4ebbfb9b5fd5b6588966e6eb0efce01b2ab54c.tar.bz2 libeufin-deployment-1d4ebbfb9b5fd5b6588966e6eb0efce01b2ab54c.zip |
change auth method
Diffstat (limited to 'buildbot')
-rw-r--r-- | buildbot/master.cfg | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/buildbot/master.cfg b/buildbot/master.cfg index a58f8f0..0b7ebe1 100644 --- a/buildbot/master.cfg +++ b/buildbot/master.cfg @@ -124,6 +124,11 @@ BUILDER_LIST = [ "integration-tests" ] +# For now, Buildbot uses one password for all the admins. +with open("/home/libeufin/buildbot_passwords", "r") as data: + password_data = data.read() +passwords = json.loads(password_data) + c["www"] = { "port": 8020, "plugins": { @@ -132,7 +137,9 @@ c["www"] = { }, "allowed_origins": ["https://*.libeufin.tech"], "avatar_methods": [], - "auth": util.HTPasswdAuth("/home/libeufin/.htpasswd"), + "auth": util.UserPasswordAuth([( + "ms", passwords["ms"] + )]), "authz": util.Authz( allowRules=[ util.ForceBuildEndpointMatcher(role="admins", |