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 }