Skip to content

Commit

Permalink
Add DeleteAllCertAuthorities call (#13982)
Browse files Browse the repository at this point in the history
  • Loading branch information
smallinsky authored and github-actions committed Jun 30, 2022
1 parent 39dff37 commit 0e6b50b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/cache/collections.go
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,12 @@ func (c *certAuthority) fetch(ctx context.Context) (apply func(ctx context.Conte
if err := applyDatabaseCAs(ctx); err != nil {
return trace.Wrap(err)
}
} else {
if err := c.trustCache.DeleteAllCertAuthorities(types.DatabaseCA); err != nil {
if !trace.IsNotFound(err) {
return trace.Wrap(err)
}
}
}
return trace.Wrap(applyJWTSigners(ctx))
}, nil
Expand Down

0 comments on commit 0e6b50b

Please sign in to comment.