certs icon indicating copy to clipboard operation
certs copied to clipboard

Handle timeout loading conf secret

Open borigas opened this issue 2 years ago • 0 comments

On my AKS cluster, requests to the k8s api sometimes timeout. Currently, the behavior of a timeout loading the conf secret results in generating a new cert without the previous configuration. That results in potentially bumping up on rate limits because cert renewal dates are never available and also rotates public/private keys, which can affect certificate pinning.

To fix, I'm exiting the script if the status code was not set when loading the conf secret. If you have a better way to handle, please let me know

borigas avatar Jul 18 '22 16:07 borigas