Skip to content

Commit

Permalink
Merge pull request #246 from Venafi/fixes-linter-issues
Browse files Browse the repository at this point in the history
Updates code to be compliant for golangci-lint version 1.47.3
  • Loading branch information
luispresuelVenafi authored Aug 1, 2022
2 parents e31e5bb + 228748e commit b2e4c2d
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions pkg/venafi/fake/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b2e4c2d

Please sign in to comment.