From e6fc6a55cef3b39dceaeb0fe3e2215ebd80b736a Mon Sep 17 00:00:00 2001 From: Forrest <30576607+fspmarshall@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:08:59 -0800 Subject: [PATCH] ensure ca caches include correct revision (#48481) --- 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 2a2e454cdcb19..1b867c45b6884 100644 --- a/lib/services/local/trust.go +++ b/lib/services/local/trust.go @@ -232,13 +232,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)