From 7ad911ef3b3ac0e62403cc9b85c858be5550a9bf Mon Sep 17 00:00:00 2001 From: Forrest Marshall Date: Tue, 5 Nov 2024 12:47:14 -0800 Subject: [PATCH] ensure ca caches include correct revision --- 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)