chore: management console naming inconsistency (#11390)

# Which Problems Are Solved

The following terms have all been renamed to management console:

- Customer Portal (when used to mean the console)
- Console
- Admin Console

# How the Problems Are Solved

- Search & Replace smartly
- Use Copilot for translation files

Changes done to: backend + frontend codebase, docs, translations and
protobufs (descriptions only)

# Additional Context

- Partially Closes #11279
This commit is contained in:
Marco A.
2026-01-26 14:52:15 +00:00
committed by GitHub
parent bd6279153a
commit 96bbd6a65c
323 changed files with 3431 additions and 2685 deletions
+38 -38
View File
@@ -66,12 +66,12 @@ var (
name: projection.InstanceColumnProjectID,
table: instanceTable,
}
InstanceColumnConsoleID = Column{
name: projection.InstanceColumnConsoleID,
InstanceColumnManagementConsoleID = Column{
name: projection.InstanceColumnManagementConsoleID,
table: instanceTable,
}
InstanceColumnConsoleAppID = Column{
name: projection.InstanceColumnConsoleAppID,
InstanceColumnManagementConsoleAppID = Column{
name: projection.InstanceColumnManagementConsoleAppID,
table: instanceTable,
}
InstanceColumnDefaultLanguage = Column{
@@ -99,12 +99,12 @@ type Instance struct {
Sequence uint64
Name string
DefaultOrgID string
IAMProjectID string
ConsoleID string
ConsoleAppID string
DefaultLang language.Tag
Domains []*InstanceDomain
DefaultOrgID string
IAMProjectID string
ManagementConsoleID string
ManagementConsoleAppID string
DefaultLang language.Tag
Domains []*InstanceDomain
}
type Instances struct {
@@ -280,8 +280,8 @@ func prepareInstancesQuery(sortBy Column, isAscedingSort bool) (sq.SelectBuilder
InstanceColumnName.identifier(),
InstanceColumnDefaultOrgID.identifier(),
InstanceColumnProjectID.identifier(),
InstanceColumnConsoleID.identifier(),
InstanceColumnConsoleAppID.identifier(),
InstanceColumnManagementConsoleID.identifier(),
InstanceColumnManagementConsoleAppID.identifier(),
InstanceColumnDefaultLanguage.identifier(),
InstanceDomainDomainCol.identifier(),
InstanceDomainIsPrimaryCol.identifier(),
@@ -328,8 +328,8 @@ func prepareInstancesQuery(sortBy Column, isAscedingSort bool) (sq.SelectBuilder
&instance.Name,
&instance.DefaultOrgID,
&instance.IAMProjectID,
&instance.ConsoleID,
&instance.ConsoleAppID,
&instance.ManagementConsoleID,
&instance.ManagementConsoleAppID,
&lang,
&domain,
&isPrimary,
@@ -385,8 +385,8 @@ func prepareInstanceDomainQuery() (sq.SelectBuilder, func(*sql.Rows) (*Instance,
InstanceColumnName.identifier(),
InstanceColumnDefaultOrgID.identifier(),
InstanceColumnProjectID.identifier(),
InstanceColumnConsoleID.identifier(),
InstanceColumnConsoleAppID.identifier(),
InstanceColumnManagementConsoleID.identifier(),
InstanceColumnManagementConsoleAppID.identifier(),
InstanceColumnDefaultLanguage.identifier(),
InstanceDomainDomainCol.identifier(),
InstanceDomainIsPrimaryCol.identifier(),
@@ -420,8 +420,8 @@ func prepareInstanceDomainQuery() (sq.SelectBuilder, func(*sql.Rows) (*Instance,
&instance.Name,
&instance.DefaultOrgID,
&instance.IAMProjectID,
&instance.ConsoleID,
&instance.ConsoleAppID,
&instance.ManagementConsoleID,
&instance.ManagementConsoleAppID,
&lang,
&domain,
&isPrimary,
@@ -458,20 +458,20 @@ func prepareInstanceDomainQuery() (sq.SelectBuilder, func(*sql.Rows) (*Instance,
}
type authzInstance struct {
ID string `json:"id,omitempty"`
IAMProjectID string `json:"iam_project_id,omitempty"`
ConsoleID string `json:"console_id,omitempty"`
ConsoleAppID string `json:"console_app_id,omitempty"`
DefaultLang language.Tag `json:"default_lang,omitempty"`
DefaultOrgID string `json:"default_org_id,omitempty"`
CSP csp `json:"csp,omitempty"`
Impersonation bool `json:"impersonation,omitempty"`
IsBlocked *bool `json:"is_blocked,omitempty"`
LogRetention *time.Duration `json:"log_retention,omitempty"`
Feature feature.Features `json:"feature,omitempty"`
ExternalDomains database.TextArray[string] `json:"external_domains,omitempty"`
TrustedDomains database.TextArray[string] `json:"trusted_domains,omitempty"`
ExecutionTargets target_domain.Router `json:"execution_targets,omitzero"`
ID string `json:"id,omitempty"`
IAMProjectID string `json:"iam_project_id,omitempty"`
ManagementConsoleID string `json:"console_id,omitempty"`
ManagementConsoleAppID string `json:"console_app_id,omitempty"`
DefaultLang language.Tag `json:"default_lang,omitempty"`
DefaultOrgID string `json:"default_org_id,omitempty"`
CSP csp `json:"csp,omitempty"`
Impersonation bool `json:"impersonation,omitempty"`
IsBlocked *bool `json:"is_blocked,omitempty"`
LogRetention *time.Duration `json:"log_retention,omitempty"`
Feature feature.Features `json:"feature,omitempty"`
ExternalDomains database.TextArray[string] `json:"external_domains,omitempty"`
TrustedDomains database.TextArray[string] `json:"trusted_domains,omitempty"`
ExecutionTargets target_domain.Router `json:"execution_targets,omitzero"`
}
type csp struct {
@@ -487,12 +487,12 @@ func (i *authzInstance) ProjectID() string {
return i.IAMProjectID
}
func (i *authzInstance) ConsoleClientID() string {
return i.ConsoleID
func (i *authzInstance) ManagementConsoleClientID() string {
return i.ManagementConsoleID
}
func (i *authzInstance) ConsoleApplicationID() string {
return i.ConsoleAppID
func (i *authzInstance) ManagementConsoleApplicationID() string {
return i.ManagementConsoleAppID
}
func (i *authzInstance) DefaultLanguage() language.Tag {
@@ -571,8 +571,8 @@ func scanAuthzInstance() (*authzInstance, func(row *sql.Row) error) {
&instance.ID,
&instance.DefaultOrgID,
&instance.IAMProjectID,
&instance.ConsoleID,
&instance.ConsoleAppID,
&instance.ManagementConsoleID,
&instance.ManagementConsoleAppID,
&lang,
&enableIframeEmbedding,
&instance.CSP.AllowedOrigins,
+1 -1
View File
@@ -18,7 +18,7 @@ type InstanceFeatures struct {
EnableBackChannelLogout FeatureSource[bool]
LoginV2 FeatureSource[*feature.LoginV2]
PermissionCheckV2 FeatureSource[bool]
ConsoleUseV2UserApi FeatureSource[bool]
ManagementConsoleUseV2UserApi FeatureSource[bool]
EnableRelationalTables FeatureSource[bool]
}
+3 -3
View File
@@ -71,7 +71,7 @@ func (m *InstanceFeaturesReadModel) Query() *eventstore.SearchQueryBuilder {
feature_v2.InstanceEnableBackChannelLogout,
feature_v2.InstanceLoginVersion,
feature_v2.InstancePermissionCheckV2,
feature_v2.InstanceConsoleUseV2UserApi,
feature_v2.InstanceManagementConsoleUseV2UserApi,
feature_v2.InstanceEnableRelationalTables,
).
Builder().ResourceOwner(m.ResourceOwner)
@@ -126,8 +126,8 @@ func reduceInstanceFeatureSet[T any](features *InstanceFeatures, event *feature_
features.LoginV2.set(level, event.Value)
case feature.KeyPermissionCheckV2:
features.PermissionCheckV2.set(level, event.Value)
case feature.KeyConsoleUseV2UserApi:
features.ConsoleUseV2UserApi.set(level, event.Value)
case feature.KeyManagementConsoleUseV2UserApi:
features.ManagementConsoleUseV2UserApi.set(level, event.Value)
case feature.KeyEnableRelationalTables:
features.EnableRelationalTables.set(level, event.Value)
}
+30 -30
View File
@@ -121,16 +121,16 @@ func Test_InstancePrepares(t *testing.T) {
},
Instances: []*Instance{
{
ID: "id",
CreationDate: testNow,
ChangeDate: testNow,
Sequence: 20211108,
Name: "test",
DefaultOrgID: "global-org-id",
IAMProjectID: "project-id",
ConsoleID: "client-id",
ConsoleAppID: "app-id",
DefaultLang: language.English,
ID: "id",
CreationDate: testNow,
ChangeDate: testNow,
Sequence: 20211108,
Name: "test",
DefaultOrgID: "global-org-id",
IAMProjectID: "project-id",
ManagementConsoleID: "client-id",
ManagementConsoleAppID: "app-id",
DefaultLang: language.English,
Domains: []*InstanceDomain{
{
CreationDate: testNow,
@@ -223,16 +223,16 @@ func Test_InstancePrepares(t *testing.T) {
},
Instances: []*Instance{
{
ID: "id",
CreationDate: testNow,
ChangeDate: testNow,
Sequence: 20211108,
Name: "test",
DefaultOrgID: "global-org-id",
IAMProjectID: "project-id",
ConsoleID: "client-id",
ConsoleAppID: "app-id",
DefaultLang: language.English,
ID: "id",
CreationDate: testNow,
ChangeDate: testNow,
Sequence: 20211108,
Name: "test",
DefaultOrgID: "global-org-id",
IAMProjectID: "project-id",
ManagementConsoleID: "client-id",
ManagementConsoleAppID: "app-id",
DefaultLang: language.English,
Domains: []*InstanceDomain{
{
CreationDate: testNow,
@@ -255,16 +255,16 @@ func Test_InstancePrepares(t *testing.T) {
},
},
{
ID: "id2",
CreationDate: testNow,
ChangeDate: testNow,
Sequence: 20211108,
Name: "test2",
DefaultOrgID: "global-org-id",
IAMProjectID: "project-id",
ConsoleID: "client-id",
ConsoleAppID: "app-id",
DefaultLang: language.English,
ID: "id2",
CreationDate: testNow,
ChangeDate: testNow,
Sequence: 20211108,
Name: "test2",
DefaultOrgID: "global-org-id",
IAMProjectID: "project-id",
ManagementConsoleID: "client-id",
ManagementConsoleAppID: "app-id",
DefaultLang: language.English,
Domains: []*InstanceDomain{
{
CreationDate: testNow,
+1 -1
View File
@@ -89,7 +89,7 @@ func (q *Queries) ActiveOIDCClientByID(ctx context.Context, clientID string, get
client.LoginVersion = domain.LoginVersion2
client.LoginBaseURI = (*URL)(loginV2.BaseURI)
}
if instance.ConsoleClientID() == clientID {
if instance.ManagementConsoleClientID() == clientID {
client.RedirectURIs = append(client.RedirectURIs, http_util.DomainContext(ctx).Origin()+path.RedirectPath)
client.PostLogoutRedirectURIs = append(client.PostLogoutRedirectURIs, http_util.DomainContext(ctx).Origin()+path.PostLogoutPath)
}
+19 -19
View File
@@ -13,16 +13,16 @@ import (
const (
InstanceProjectionTable = "projections.instances"
InstanceColumnID = "id"
InstanceColumnName = "name"
InstanceColumnChangeDate = "change_date"
InstanceColumnCreationDate = "creation_date"
InstanceColumnDefaultOrgID = "default_org_id"
InstanceColumnProjectID = "iam_project_id"
InstanceColumnConsoleID = "console_client_id"
InstanceColumnConsoleAppID = "console_app_id"
InstanceColumnSequence = "sequence"
InstanceColumnDefaultLanguage = "default_language"
InstanceColumnID = "id"
InstanceColumnName = "name"
InstanceColumnChangeDate = "change_date"
InstanceColumnCreationDate = "creation_date"
InstanceColumnDefaultOrgID = "default_org_id"
InstanceColumnProjectID = "iam_project_id"
InstanceColumnManagementConsoleID = "console_client_id"
InstanceColumnManagementConsoleAppID = "console_app_id"
InstanceColumnSequence = "sequence"
InstanceColumnDefaultLanguage = "default_language"
)
type instanceProjection struct{}
@@ -44,8 +44,8 @@ func (*instanceProjection) Init() *old_handler.Check {
handler.NewColumn(InstanceColumnCreationDate, handler.ColumnTypeTimestamp),
handler.NewColumn(InstanceColumnDefaultOrgID, handler.ColumnTypeText, handler.Default("")),
handler.NewColumn(InstanceColumnProjectID, handler.ColumnTypeText, handler.Default("")),
handler.NewColumn(InstanceColumnConsoleID, handler.ColumnTypeText, handler.Default("")),
handler.NewColumn(InstanceColumnConsoleAppID, handler.ColumnTypeText, handler.Default("")),
handler.NewColumn(InstanceColumnManagementConsoleID, handler.ColumnTypeText, handler.Default("")),
handler.NewColumn(InstanceColumnManagementConsoleAppID, handler.ColumnTypeText, handler.Default("")),
handler.NewColumn(InstanceColumnSequence, handler.ColumnTypeInt64),
handler.NewColumn(InstanceColumnDefaultLanguage, handler.ColumnTypeText, handler.Default("")),
},
@@ -80,8 +80,8 @@ func (p *instanceProjection) Reducers() []handler.AggregateReducer {
Reduce: p.reduceIAMProjectSet,
},
{
Event: instance.ConsoleSetEventType,
Reduce: p.reduceConsoleSet,
Event: instance.ManagementConsoleSetEventType,
Reduce: p.reduceManagementConsoleSet,
},
{
Event: instance.DefaultLanguageSetEventType,
@@ -178,18 +178,18 @@ func (p *instanceProjection) reduceIAMProjectSet(event eventstore.Event) (*handl
), nil
}
func (p *instanceProjection) reduceConsoleSet(event eventstore.Event) (*handler.Statement, error) {
e, ok := event.(*instance.ConsoleSetEvent)
func (p *instanceProjection) reduceManagementConsoleSet(event eventstore.Event) (*handler.Statement, error) {
e, ok := event.(*instance.ManagementConsoleSetEvent)
if !ok {
return nil, zerrors.ThrowInvalidArgumentf(nil, "HANDL-Dgf11", "reduce.wrong.event.type %s", instance.ConsoleSetEventType)
return nil, zerrors.ThrowInvalidArgumentf(nil, "HANDL-Dgf11", "reduce.wrong.event.type %s", instance.ManagementConsoleSetEventType)
}
return handler.NewUpdateStatement(
e,
[]handler.Column{
handler.NewCol(InstanceColumnChangeDate, e.CreationDate()),
handler.NewCol(InstanceColumnSequence, e.Sequence()),
handler.NewCol(InstanceColumnConsoleID, e.ClientID),
handler.NewCol(InstanceColumnConsoleAppID, e.AppID),
handler.NewCol(InstanceColumnManagementConsoleID, e.ClientID),
handler.NewCol(InstanceColumnManagementConsoleAppID, e.AppID),
},
[]handler.Condition{
handler.NewCond(InstanceColumnID, e.Aggregate().InstanceID),
@@ -97,7 +97,7 @@ func (*instanceFeatureProjection) Reducers() []handler.AggregateReducer {
Reduce: reduceInstanceSetFeature[bool],
},
{
Event: feature_v2.InstanceConsoleUseV2UserApi,
Event: feature_v2.InstanceManagementConsoleUseV2UserApi,
Reduce: reduceInstanceSetFeature[bool],
},
{
@@ -52,8 +52,8 @@ func (p *instanceRelationalProjection) Reducers() []handler.AggregateReducer {
Reduce: p.reduceIAMProjectSet,
},
{
Event: instance.ConsoleSetEventType,
Reduce: p.reduceConsoleSet,
Event: instance.ManagementConsoleSetEventType,
Reduce: p.reduceManagementConsoleSet,
},
{
Event: instance.DefaultLanguageSetEventType,
@@ -145,10 +145,10 @@ func (p *instanceRelationalProjection) reduceIAMProjectSet(event eventstore.Even
}), nil
}
func (p *instanceRelationalProjection) reduceConsoleSet(event eventstore.Event) (*handler.Statement, error) {
e, ok := event.(*instance.ConsoleSetEvent)
func (p *instanceRelationalProjection) reduceManagementConsoleSet(event eventstore.Event) (*handler.Statement, error) {
e, ok := event.(*instance.ManagementConsoleSetEvent)
if !ok {
return nil, zerrors.ThrowInvalidArgumentf(nil, "HANDL-Dgf11", "reduce.wrong.event.type %s", instance.ConsoleSetEventType)
return nil, zerrors.ThrowInvalidArgumentf(nil, "HANDL-Dgf11", "reduce.wrong.event.type %s", instance.ManagementConsoleSetEventType)
}
return handler.NewStatement(e, func(ctx context.Context, ex handler.Executer, projectionName string) error {
@@ -157,7 +157,7 @@ func (p *instanceRelationalProjection) reduceConsoleSet(event eventstore.Event)
return zerrors.ThrowInvalidArgumentf(nil, "HANDL-rVUyy", "reduce.wrong.db.pool %T", ex)
}
repo := repository.InstanceRepository()
return p.updateInstance(ctx, v3_sql.SQLTx(tx), event, repo, repo.SetConsoleClientID(e.ClientID), repo.SetConsoleAppID(e.AppID))
return p.updateInstance(ctx, v3_sql.SQLTx(tx), event, repo, repo.SetManagementConsoleClientID(e.ClientID), repo.SetManagementConsoleAppID(e.AppID))
}), nil
}
+10 -10
View File
@@ -216,7 +216,7 @@
"description": "Einige Daten fehlen. Bitte überprüfen Sie Ihre Eingaben."
},
"title": "Registrieren",
"description": "Erstellen Sie Ihr ZITADEL-Konto.",
"description": "Erstellen Sie Ihr Zitadel-Konto.",
"noMethodAvailableWarning": "Keine Authentifizierungsmethode verfügbar. Bitte wenden Sie sich an den Administrator.",
"selectMethod": "Wählen Sie die Methode, mit der Sie sich authentifizieren möchten",
"agreeTo": "Um sich zu registrieren, müssen Sie den Nutzungsbedingungen zustimmen",
@@ -549,7 +549,7 @@
"description": "Provide email, first and last name to register."
},
"title": "Register",
"description": "Create your ZITADEL account.",
"description": "Create your Zitadel account.",
"noMethodAvailableWarning": "No authentication method available. Please contact your administrator.",
"selectMethod": "Select the method you would like to authenticate",
"agreeTo": "To register you must agree to the terms and conditions",
@@ -882,7 +882,7 @@
"description": "No se proporcionaron datos suficientes para el registro."
},
"title": "Registrarse",
"description": "Crea tu cuenta ZITADEL.",
"description": "Crea tu cuenta Zitadel.",
"noMethodAvailableWarning": "No hay métodos de autenticación disponibles. Por favor, contacta a tu administrador.",
"selectMethod": "Selecciona el método con el que deseas autenticarte",
"agreeTo": "Para registrarte debes aceptar los términos y condiciones",
@@ -1215,7 +1215,7 @@
"description": "Inserisci i tuoi dati per registrarti."
},
"title": "Registrati",
"description": "Crea il tuo account ZITADEL.",
"description": "Crea il tuo account Zitadel.",
"noMethodAvailableWarning": "Nessun metodo di autenticazione disponibile. Contatta l'amministratore di sistema per assistenza.",
"selectMethod": "Seleziona il metodo con cui desideri autenticarti",
"agreeTo": "Per registrarti devi accettare i termini e le condizioni",
@@ -1646,7 +1646,7 @@
"description": "Geef e-mail, voornaam en achternaam op om te registreren."
},
"title": "Registreren",
"description": "Maak jouw ZITADEL-account aan.",
"description": "Maak jouw Zitadel-account aan.",
"noMethodAvailableWarning": "Geen authenticatiemethode beschikbaar. Neem contact op met jouw beheerder.",
"selectMethod": "Selecteer de methode waarmee u wilt verifiëren",
"agreeTo": "Om te registreren moet u akkoord gaan met de voorwaarden",
@@ -2002,7 +2002,7 @@
"description": "Podaj e-mail, imię i nazwisko, aby się zarejestrować."
},
"title": "Rejestracja",
"description": "Utwórz konto ZITADEL.",
"description": "Utwórz konto Zitadel.",
"noMethodAvailableWarning": "Brak dostępnych metod uwierzytelniania. Skontaktuj się z administratorem.",
"selectMethod": "Wybierz metodę uwierzytelniania, której chcesz użyć",
"agreeTo": "Aby się zarejestrować, musisz zaakceptować warunki korzystania",
@@ -2335,7 +2335,7 @@
"description": "Укажите email, имя и фамилию для регистрации."
},
"title": "Регистрация",
"description": "Создайте свой аккаунт ZITADEL.",
"description": "Создайте свой аккаунт Zitadel.",
"noMethodAvailableWarning": "Нет доступных методов аутентификации. Обратитесь к администратору.",
"selectMethod": "Выберите метод аутентификации",
"agreeTo": "Для регистрации необходимо принять условия:",
@@ -2668,7 +2668,7 @@
"description": "请提供所有必需的数据。"
},
"title": "注册",
"description": "创建您的 ZITADEL 账户。",
"description": "创建您的 Zitadel 账户。",
"noMethodAvailableWarning": "没有可用的认证方法。请联系您的系统管理员。",
"selectMethod": "选择您想使用的认证方法",
"agreeTo": "注册即表示您同意条款和条件",
@@ -2923,7 +2923,7 @@
"description": "Kayıt olmak için e-posta, ad ve soyadı sağlayın."
},
"title": "Kayıt Ol",
"description": "ZITADEL hesabınızı oluşturun.",
"description": "Zitadel hesabınızı oluşturun.",
"selectMethod": "Kimlik doğrulamak istediğiniz yöntemi seçin",
"agreeTo": "Kayıt olmak için şartları ve koşulları kabul etmelisiniz",
"termsOfService": "Hizmet Şartları",
@@ -3223,7 +3223,7 @@
"description": "Вкажіть електронну пошту, ім'я та прізвище для реєстрації."
},
"title": "Реєстрація",
"description": "Створіть свій обліковий запис ZITADEL.",
"description": "Створіть свій обліковий запис Zitadel.",
"noMethodAvailableWarning": "Немає доступного методу автентифікації. Будь ласка, зверніться до адміністратора.",
"selectMethod": "Виберіть метод автентифікації",
"agreeTo": "Для реєстрації ви повинні погодитися з умовами та положеннями",