From e3216b706c66dcb41a85243370e8412065611f01 Mon Sep 17 00:00:00 2001 From: Marcos Yacob Date: Fri, 27 Sep 2024 20:08:17 -0300 Subject: [PATCH] resolve issue in upstream authority notification Signed-off-by: Marcos Yacob --- pkg/server/api/localauthority/v1/service.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/server/api/localauthority/v1/service.go b/pkg/server/api/localauthority/v1/service.go index 0c69411f2f..8faa7b3432 100644 --- a/pkg/server/api/localauthority/v1/service.go +++ b/pkg/server/api/localauthority/v1/service.go @@ -407,6 +407,10 @@ func (s *Service) TaintX509UpstreamAuthority(ctx context.Context, req *localauth return nil, api.MakeErr(log, codes.Internal, "failed to taint upstream authority", err) } + if err := s.ca.NotifyTaintedX509Authority(ctx, subjectKeyIDRequest); err != nil { + return nil, api.MakeErr(log, codes.Internal, "failed to notify tainted authority", err) + } + rpccontext.AuditRPC(ctx) log.Info("X.509 upstream authority tainted successfully")