Skip to content

Commit

Permalink
ensure ca caches include correct revision (#48481)
Browse files Browse the repository at this point in the history
  • Loading branch information
fspmarshall authored Nov 5, 2024
1 parent 4633c48 commit e6fc6a5
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 @@ -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)
Expand Down

0 comments on commit e6fc6a5

Please sign in to comment.