github.com/Venafi/vcert/v5@v5.10.2/pkg/policy/constants.go (about)

     1  package policy
     2  
     3  import "github.com/Venafi/vcert/v5/pkg/util"
     4  
     5  const (
     6  	JsonExtension        = ".json"
     7  	YamlExtension        = ".yaml"
     8  	RootPath             = util.PathSeparator + "VED" + util.PathSeparator + "Policy"
     9  	PolicyClass          = "Policy"
    10  	PolicyAttributeClass = "X509 Certificate"
    11  
    12  	//tpp policy attributes
    13  	TppContact                       = "Contact"
    14  	TppApprover                      = "Approver"
    15  	TppCertificateAuthority          = "Certificate Authority"
    16  	TppProhibitWildcard              = "Prohibit Wildcard"
    17  	TppDomainSuffixWhitelist         = "Domain Suffix Whitelist"
    18  	TppOrganization                  = "Organization"
    19  	TppOrganizationalUnit            = "Organizational Unit"
    20  	TppCity                          = "City"
    21  	TppState                         = "State"
    22  	TppCountry                       = "Country"
    23  	TppPkixParameterSetPolicy        = "PKIX Parameter Set Policy"
    24  	TppPkixParameterSetPolicyDefault = "PKIX Parameter Set Policy Default"
    25  	TppKeyAlgorithm                  = "Key Algorithm"
    26  	TppKeyBitStrength                = "Key Bit Strength"
    27  	TppEllipticCurve                 = "Elliptic Curve"
    28  	ServiceGenerated                 = "Manual Csr"
    29  	TppProhibitedSANTypes            = "Prohibited SAN Types"
    30  	TppAllowPrivateKeyReuse          = "Allow Private Key Reuse"
    31  	TppWantRenewal                   = "Want Renewal"
    32  	TppDnsAllowed                    = "DNS"
    33  	TppIpAllowed                     = "IP"
    34  	TppEmailAllowed                  = "Email"
    35  	TppUriAllowed                    = "URI"
    36  	TppUpnAllowed                    = "UPN"
    37  	AllowAll                         = ".*"
    38  	UserProvided                     = "UserProvided"
    39  	DefaultCA                        = "BUILTIN\\Built-In CA\\Default Product"
    40  	TppManagementType                = "Management Type"
    41  	TppManagementTypeEnrollment      = "Enrollment"
    42  	TppManagementTypeProvisioning    = "Provisioning"
    43  	CloudEntrustCA                   = "ENTRUST"
    44  	CloudDigicertCA                  = "DIGICERT"
    45  	CloudRequesterName               = "Venafi Cloud Service"
    46  	CloudRequesterEmail              = "no-reply@venafi.cloud"
    47  	CloudRequesterPhone              = "801-555-0123"
    48  	ipv4                             = "\\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\\.|$)){4}\\b"
    49  	ipv6                             = "(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))"
    50  	v4private                        = "^(172\\.(1[6-9]\\.|2[0-9]\\.|3[0-1]\\.)|192\\.168\\.|10\\.).*"
    51  	v6private                        = "^(::1$)|([fF][cCdD]).*"
    52  
    53  	IdentityUser              = 1
    54  	IdentitySecurityGroup     = 2
    55  	IdentityDistributionGroup = 8
    56  	AllIdentities             = IdentityUser + IdentitySecurityGroup + IdentityDistributionGroup
    57  )