Team-based authorization

This commit is contained in:
Bart van der Braak 2024-11-26 12:33:25 +01:00
parent b91ee462b8
commit 2eb472cc20

View file

@ -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