From 228748ea98fc65799ea3b40269a1bd4b7120d8bf Mon Sep 17 00:00:00 2001 From: Luis Presuel Date: Mon, 1 Aug 2022 13:06:31 -0500 Subject: [PATCH] Updates code to be compliant for golangci-lint version 1.47.3 --- pkg/venafi/fake/connector.go | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pkg/venafi/fake/connector.go b/pkg/venafi/fake/connector.go index 89cf8736..fdd611de 100644 --- a/pkg/venafi/fake/connector.go +++ b/pkg/venafi/fake/connector.go @@ -344,23 +344,23 @@ func (c *Connector) ImportCertificate(req *certificate.ImportRequest) (*certific func (c *Connector) ReadPolicyConfiguration() (policy *endpoint.Policy, err error) { policy = &endpoint.Policy{ - []string{".*"}, - []string{".*"}, - []string{".*"}, - []string{".*"}, - []string{".*"}, - []string{".*"}, - []endpoint.AllowedKeyConfiguration{ - {certificate.KeyTypeRSA, certificate.AllSupportedKeySizes(), nil}, - {certificate.KeyTypeECDSA, nil, certificate.AllSupportedCurves()}, + SubjectCNRegexes: []string{".*"}, + SubjectORegexes: []string{".*"}, + SubjectOURegexes: []string{".*"}, + SubjectSTRegexes: []string{".*"}, + SubjectLRegexes: []string{".*"}, + SubjectCRegexes: []string{".*"}, + AllowedKeyConfigurations: []endpoint.AllowedKeyConfiguration{ + {KeyType: certificate.KeyTypeRSA, KeySizes: certificate.AllSupportedKeySizes(), KeyCurves: nil}, + {KeyType: certificate.KeyTypeECDSA, KeySizes: nil, KeyCurves: certificate.AllSupportedCurves()}, }, - []string{".*"}, - []string{".*"}, - []string{".*"}, - []string{".*"}, - []string{".*"}, - true, - true, + DnsSanRegExs: []string{".*"}, + IpSanRegExs: []string{".*"}, + EmailSanRegExs: []string{".*"}, + UriSanRegExs: []string{".*"}, + UpnSanRegExs: []string{".*"}, + AllowWildcards: true, + AllowKeyReuse: true, } return }