diff --git a/main.go b/main.go index 37cd8cd..c7ee4c0 100644 --- a/main.go +++ b/main.go @@ -327,6 +327,10 @@ func fetchValidCertificatesFromVault() ([]*x509.Certificate, error) { return res, err } + if secret == nil { + return nil, errors.New("Was not able to read list of certificates") + } + if secret.Data == nil { return res, errors.New("Got no data from backend") }