From 07808cde662a88741efa4084330875251fb0872b Mon Sep 17 00:00:00 2001 From: Miguel Martinez Trivino Date: Mon, 27 Apr 2026 22:50:48 +0200 Subject: [PATCH] feat(org): allow "chainloop" as a valid organization name Remove "chainloop" from the reserved organization names list so it can be used as a regular organization name. Signed-off-by: Miguel Martinez Trivino --- app/controlplane/pkg/biz/organization.go | 2 +- app/controlplane/pkg/biz/organization_integration_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controlplane/pkg/biz/organization.go b/app/controlplane/pkg/biz/organization.go index 20e23a63d..7e91bd0c6 100644 --- a/app/controlplane/pkg/biz/organization.go +++ b/app/controlplane/pkg/biz/organization.go @@ -110,7 +110,7 @@ func NewOrganizationUseCase(repo OrganizationRepo, repoUC *CASBackendUseCase, au const RandomNameMaxTries = 10 -var reservedOrgNames = []string{"chainloop", "admin", "default"} +var reservedOrgNames = []string{"admin", "default"} type createOptions struct { createInlineBackend bool diff --git a/app/controlplane/pkg/biz/organization_integration_test.go b/app/controlplane/pkg/biz/organization_integration_test.go index 0cc0dc370..71dca5a48 100644 --- a/app/controlplane/pkg/biz/organization_integration_test.go +++ b/app/controlplane/pkg/biz/organization_integration_test.go @@ -67,9 +67,9 @@ func (s *OrgIntegrationTestSuite) TestCreate() { // over the max size {"aabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk", true}, // reserved names - {"chainloop", true}, {"admin", true}, {"default", true}, + {"chainloop", false}, } for _, tc := range testCases {