From 02debc0cdaec8af959478fb9fc05f4cf07e93833 Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Thu, 31 Mar 2022 13:21:56 +0200 Subject: [PATCH] templates/composer: Parametrize tenants in acl This will allow us to specify tenants in the acl per namespace. --- templates/composer.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/composer.yml b/templates/composer.yml index c83d0ffe3..a6b0e670d 100644 --- a/templates/composer.yml +++ b/templates/composer.yml @@ -200,9 +200,9 @@ objects: data: acl.yml: | - claim: rh-org-id - pattern: ^(15842261|15877963|15885990)$ + pattern: ^(${ACL_ORG_ID_TENANTS})$ - claim: account_id - pattern: ^(15842261)$ + pattern: ^(${ACL_ACCOUNT_ID_TENANTS})$ osbuild-composer.toml: | log_level = "info" [koji] @@ -347,6 +347,12 @@ parameters: name: COMPOSER_CONFIG_BUCKET_NAME required: true value: "imagebuilder.service.staging" + - description: Allowed tenants based on org id + name: ACL_ORG_ID_TENANTS + value: "15842261|15877963|15885990" + - description: Allowed tenants based on account id + name: ACL_ACCOUNT_ID_TENANTS + value: "15842261" - description: composer-api port name: COMPOSER_API_PORT required: true