Replace trust center alias with resource alias in console API

Drop the setTrustCenterAlias and removeTrustCenterAlias mutations and
the alias field on Audit in favor of generic setResourceAlias and
removeResourceAlias mutations backed by the resourcealias service.

Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-06-22 10:59:04 +02:00
parent 9b0a5745a0
commit 231f7d153e
11 changed files with 123 additions and 157 deletions

View File

@@ -39,6 +39,7 @@ import (
"go.probo.inc/probo/pkg/iam"
"go.probo.inc/probo/pkg/mailman"
"go.probo.inc/probo/pkg/probo"
"go.probo.inc/probo/pkg/resourcealias"
"go.probo.inc/probo/pkg/riskmanagement"
"go.probo.inc/probo/pkg/saferedirect"
"go.probo.inc/probo/pkg/securecookie"
@@ -54,6 +55,7 @@ type (
authorize authz.AuthorizeFunc
batchAuthorize authz.BatchAuthorizeFunc
probo *probo.Service
resourceAlias *resourcealias.Service
iam *iam.Service
esign *esign.Service
accessReview *accessreview.Service
@@ -74,6 +76,7 @@ type (
func NewMux(
logger *log.Logger,
proboSvc *probo.Service,
resourceAliasSvc *resourcealias.Service,
iamSvc *iam.Service,
esignSvc *esign.Service,
accessReviewSvc *accessreview.Service,
@@ -97,6 +100,7 @@ func NewMux(
graphqlHandler := NewGraphQLHandler(
iamSvc,
proboSvc,
resourceAliasSvc,
esignSvc,
accessReviewSvc,
agentRunSvc,