fix(certs): update checkAndRotate to use current durations by jaellio · Pull Request #4800 · openservicemesh/osm (original) (raw)

@jaellio jaellio marked this pull request as ready for review

June 9, 2022 20:51

@jaellio jaellio changed the titlefix(certs): updates checkAndRotate to use current durations fix(certs): update checkAndRotate to use current durations

Jun 9, 2022

nojnhuh

steeling

shashankram

jaellio

shashankram

steeling

@jaellio

Updates the checkAndRotate method to update certs with the current validity duration specified in the MeshConfig for their respective cert type. Adds a certType to the certificate struct that is used to lookup validity duration when calling IssuingCertificates. Updates shouldRotate to check if the cert needs to be rotated due to an in progress root certificate rotation. GetFromCache will return nil if the cert is not found in the cache, expiring, or needs to be rotated because of a root cert rotation.

Signed-off-by: jaellio jaellio@microsoft.com

@jaellio

Signed-off-by: jaellio jaellio@microsoft.com

@jaellio

Signed-off-by: jaellio jaellio@microsoft.com

steeling

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})