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

@@ -29,6 +29,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/server/api/authz"
"go.probo.inc/probo/pkg/server/api/console/v1/dataloader"
@@ -40,6 +41,7 @@ import (
func NewGraphQLHandler(
iamSvc *iam.Service,
proboSvc *probo.Service,
resourceAliasSvc *resourcealias.Service,
esignSvc *esign.Service,
accessReviewSvc *accessreview.Service,
agentRunSvc *agentrun.Service,
@@ -59,6 +61,7 @@ func NewGraphQLHandler(
authorize: dataloader.NewAuthorizeFunc(logger),
batchAuthorize: authz.NewBatchAuthorizeFunc(iamSvc, logger),
probo: proboSvc,
resourceAlias: resourceAliasSvc,
iam: iamSvc,
esign: esignSvc,
accessReview: accessReviewSvc,