Skip to content

Commit

Permalink
ensure ca caches include correct revision (#48486)
Browse files Browse the repository at this point in the history
  • Loading branch information
fspmarshall authored Nov 5, 2024
1 parent aadbb4e commit d47fc8b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/services/local/trust.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d47fc8b

Please sign in to comment.