From 2eb472cc20ad276cf0d01202bd372f16b2c74d23 Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Tue, 26 Nov 2024 12:33:25 +0100 Subject: [PATCH] Team-based authorization --- buildbot/config/conf/auth.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/buildbot/config/conf/auth.py b/buildbot/config/conf/auth.py index 3026b4c..1397212 100644 --- a/buildbot/config/conf/auth.py +++ b/buildbot/config/conf/auth.py @@ -119,17 +119,17 @@ def fetch_authorization(environment: str): roleMatchers=file_based_group_username_role_matchers, ) - # my_authz = buildbot.plugins.util.Authz( - # allowRules=[ - # buildbot.plugins.util.AnyControlEndpointMatcher( - # role="Developers" - # ), # Organization teams - # ], - # roleMatchers=[ - # buildbot.plugins.util.RolesFromGroups( - # groupPrefix="test-org/" - # ) # Gitea organization - # ], - # ) + my_authz = buildbot.plugins.util.Authz( + allowRules=[ + buildbot.plugins.util.AnyControlEndpointMatcher( + role="Developers" + ), # Organization teams + ], + roleMatchers=[ + buildbot.plugins.util.RolesFromGroups( + groupPrefix="test-org/" + ) # Gitea organization + ], + ) return my_authz