Skip to content

Commit 2299ddb

Browse files
committed
Allow access to change hooks always, don't redirect from /api
Signed-off-by: magic_rb <[email protected]>
1 parent d74f35d commit 2299ddb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

buildbot_nix/oauth2_proxy_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
class OAuth2ProxyAuth(AuthBase):
2020
header: ClassVar[bytes] = b"Authorization"
2121
prefix: ClassVar[bytes] = b"Basic "
22-
user_info_provider: UserInfoProviderBase
22+
user_info_provider: UserInfoProviderBase = None
2323
password: bytes
2424

2525
def __init__(self, password: str, **kwargs: Any) -> None:

nix/master.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,11 @@ in
800800
upstream = "http://127.0.0.1:${builtins.toString config.services.buildbot-master.port}";
801801

802802
cookie-secure = true;
803+
skip-auth-route = [ "^/change_hook" ];
804+
api-route = [
805+
"^/api"
806+
"^/ws$"
807+
];
803808
}
804809
(lib.mkIf (cfg.authBackend == "httpbasicauth") { set-basic-auth = true; })
805810
(lib.mkIf

0 commit comments

Comments
 (0)