diff --git a/internal/target/repository_proxy_server_certificate.go b/internal/target/repository_proxy_server_certificate.go index 99e9a501be..e9b62bc33a 100644 --- a/internal/target/repository_proxy_server_certificate.go +++ b/internal/target/repository_proxy_server_certificate.go @@ -102,7 +102,7 @@ func fetchTargetProxyServerCertificate(ctx context.Context, r db.Reader, w db.Wr // If a cert is not found, this target type does not support proxy server certificates/ it was not generated during target creation. if targetCert.Certificate == nil { - return nil, errors.New(ctx, errors.RecordNotFound, op, "target proxy server certificate not found") + return nil, errors.New(ctx, errors.RecordNotFound, op, "target proxy server certificate not found", errors.WithoutEvent()) } return maybeRegenerateCert(ctx, targetCert, w, wrapper, sessionMaxSeconds) @@ -135,7 +135,7 @@ func fetchTargetAliasProxyServerCertificate(ctx context.Context, r db.Reader, w } if targetCert.Certificate == nil { - return nil, errors.New(ctx, errors.RecordNotFound, op, "target proxy server certificate not found") + return nil, errors.New(ctx, errors.RecordNotFound, op, "target proxy server certificate not found", errors.WithoutEvent()) } aliasCert := allocTargetAliasProxyCertificate()