From d47fc8b9562fe6539a5fc8e6c4cb20cd49d858f9 Mon Sep 17 00:00:00 2001 From: Forrest <30576607+fspmarshall@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:27:24 -0800 Subject: [PATCH] ensure ca caches include correct revision (#48486) --- lib/services/local/trust.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/services/local/trust.go b/lib/services/local/trust.go index c25f220228571..e34e0f21ee03b 100644 --- a/lib/services/local/trust.go +++ b/lib/services/local/trust.go @@ -231,13 +231,6 @@ func (s *CA) UpsertCertAuthority(ctx context.Context, ca types.CertAuthority) er return trace.Wrap(err) } - // try to skip writes that would have no effect - if existing, err := s.GetCertAuthority(ctx, ca.GetID(), true); err == nil { - if services.CertAuthoritiesEquivalent(existing, ca) { - return nil - } - } - item, err := caToItem(activeCAKey(ca.GetID()), ca) if err != nil { return trace.Wrap(err)