зеркало из https://github.com/microsoft/moc.git
Add serverAuth to CSR
This commit is contained in:
Родитель
feea924acd
Коммит
c185f9d887
|
@ -49,6 +49,7 @@ message CertificateSigningRequest {
|
|||
string locationName = 8;
|
||||
string identity = 9;
|
||||
int64 validity = 10;
|
||||
google.protobuf.BoolValue serverAuth = 11;
|
||||
}
|
||||
|
||||
service CertificateAgent {
|
||||
|
|
|
@ -288,19 +288,20 @@ func (m *CSRRequest) GetCSRs() []*CertificateSigningRequest {
|
|||
}
|
||||
|
||||
type CertificateSigningRequest struct {
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Csr string `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"`
|
||||
OldCertificate string `protobuf:"bytes,3,opt,name=oldCertificate,proto3" json:"oldCertificate,omitempty"`
|
||||
Status *common.Status `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
|
||||
CaName string `protobuf:"bytes,5,opt,name=caName,proto3" json:"caName,omitempty"`
|
||||
GroupName string `protobuf:"bytes,6,opt,name=groupName,proto3" json:"groupName,omitempty"`
|
||||
VaultName string `protobuf:"bytes,7,opt,name=vaultName,proto3" json:"vaultName,omitempty"`
|
||||
LocationName string `protobuf:"bytes,8,opt,name=locationName,proto3" json:"locationName,omitempty"`
|
||||
Identity string `protobuf:"bytes,9,opt,name=identity,proto3" json:"identity,omitempty"`
|
||||
Validity int64 `protobuf:"varint,10,opt,name=validity,proto3" json:"validity,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Csr string `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"`
|
||||
OldCertificate string `protobuf:"bytes,3,opt,name=oldCertificate,proto3" json:"oldCertificate,omitempty"`
|
||||
Status *common.Status `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
|
||||
CaName string `protobuf:"bytes,5,opt,name=caName,proto3" json:"caName,omitempty"`
|
||||
GroupName string `protobuf:"bytes,6,opt,name=groupName,proto3" json:"groupName,omitempty"`
|
||||
VaultName string `protobuf:"bytes,7,opt,name=vaultName,proto3" json:"vaultName,omitempty"`
|
||||
LocationName string `protobuf:"bytes,8,opt,name=locationName,proto3" json:"locationName,omitempty"`
|
||||
Identity string `protobuf:"bytes,9,opt,name=identity,proto3" json:"identity,omitempty"`
|
||||
Validity int64 `protobuf:"varint,10,opt,name=validity,proto3" json:"validity,omitempty"`
|
||||
ServerAuth *wrappers.BoolValue `protobuf:"bytes,11,opt,name=serverAuth,proto3" json:"serverAuth,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CertificateSigningRequest) Reset() { *m = CertificateSigningRequest{} }
|
||||
|
@ -398,6 +399,13 @@ func (m *CertificateSigningRequest) GetValidity() int64 {
|
|||
return 0
|
||||
}
|
||||
|
||||
func (m *CertificateSigningRequest) GetServerAuth() *wrappers.BoolValue {
|
||||
if m != nil {
|
||||
return m.ServerAuth
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("moc.nodeagent.security.CertificateType", CertificateType_name, CertificateType_value)
|
||||
proto.RegisterType((*CertificateRequest)(nil), "moc.nodeagent.security.CertificateRequest")
|
||||
|
@ -410,48 +418,49 @@ func init() {
|
|||
func init() { proto.RegisterFile("moc_nodeagent_certificate.proto", fileDescriptor_ae3bff7543638e48) }
|
||||
|
||||
var fileDescriptor_ae3bff7543638e48 = []byte{
|
||||
// 655 bytes of a gzipped FileDescriptorProto
|
||||
// 668 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xdd, 0x6e, 0xd3, 0x4c,
|
||||
0x10, 0xad, 0x13, 0xd7, 0x6d, 0x26, 0x55, 0xbe, 0x6a, 0xbf, 0x4f, 0xfd, 0x4c, 0xc4, 0x4f, 0xe4,
|
||||
0x4a, 0x10, 0x0a, 0xb2, 0xd5, 0x70, 0xc9, 0x55, 0x13, 0xaa, 0xde, 0x81, 0xb4, 0x29, 0x48, 0x54,
|
||||
0x42, 0xc5, 0x5d, 0x4f, 0xcc, 0x0a, 0xdb, 0x6b, 0xd6, 0xeb, 0x56, 0x79, 0x03, 0x1e, 0x85, 0x17,
|
||||
0xe0, 0x82, 0x57, 0xe0, 0x9d, 0x90, 0xd0, 0xae, 0x9d, 0xd4, 0xad, 0x5a, 0x29, 0x48, 0xf4, 0xca,
|
||||
0xde, 0x73, 0xce, 0x9c, 0xb1, 0xe7, 0x8c, 0x0d, 0x8f, 0x52, 0xc1, 0x4e, 0x33, 0x11, 0x61, 0x18,
|
||||
0x63, 0xa6, 0x4e, 0x19, 0x4a, 0xc5, 0x67, 0x9c, 0x85, 0x0a, 0xfd, 0x5c, 0x0a, 0x25, 0xc8, 0x4e,
|
||||
0x2a, 0x98, 0xbf, 0x14, 0xf8, 0x05, 0xb2, 0x52, 0x72, 0x35, 0xef, 0x3f, 0x8c, 0x85, 0x88, 0x13,
|
||||
0x0c, 0x8c, 0xea, 0xac, 0x9c, 0x05, 0x17, 0x32, 0xcc, 0x73, 0x94, 0x45, 0x55, 0xd7, 0xff, 0x5f,
|
||||
0x1b, 0x33, 0x91, 0xa6, 0x22, 0xab, 0x2f, 0x15, 0xe1, 0x7d, 0x00, 0x32, 0xb9, 0xec, 0x42, 0xf1,
|
||||
0x4b, 0x89, 0x85, 0x22, 0x47, 0xb0, 0xd5, 0x40, 0x0b, 0xd7, 0x1a, 0xb4, 0x87, 0xdd, 0xd1, 0xae,
|
||||
0x7f, 0x73, 0x77, 0xbf, 0xe9, 0x70, 0xa5, 0xd0, 0x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6b, 0xf4, 0xab, 0x0d, 0xdb, 0x0d, 0xed, 0x81, 0x4e, 0x8d, 0x7c, 0x86,
|
||||
0xde, 0x44, 0x62, 0xa8, 0xf0, 0x8d, 0x7c, 0x9b, 0x47, 0x7a, 0x4c, 0x7b, 0xab, 0x7c, 0xac, 0x55,
|
||||
0x58, 0xfd, 0x67, 0x2b, 0x69, 0xab, 0x7f, 0x83, 0xb7, 0x46, 0x3e, 0x42, 0xfb, 0x08, 0xd5, 0x5d,
|
||||
0x76, 0x60, 0xe0, 0xbc, 0xc2, 0x04, 0xef, 0xf6, 0x35, 0xde, 0x83, 0xad, 0x97, 0x96, 0x78, 0xb7,
|
||||
0x96, 0x2d, 0xbf, 0x99, 0x3f, 0xb5, 0x3e, 0x81, 0x75, 0x8a, 0x19, 0x5e, 0xdc, 0x81, 0xf7, 0x78,
|
||||
0xff, 0x24, 0x88, 0xb9, 0xfa, 0x54, 0x9e, 0xf9, 0x4c, 0xa4, 0x41, 0xca, 0x99, 0x14, 0x85, 0x98,
|
||||
0xa9, 0x20, 0x15, 0x2c, 0x90, 0x39, 0x0b, 0x96, 0x46, 0xc1, 0xc2, 0xe8, 0xcc, 0x31, 0x7f, 0xdb,
|
||||
0x17, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xd0, 0x84, 0x5b, 0x50, 0xc0, 0x06, 0x00, 0x00,
|
||||
0x10, 0xad, 0x13, 0xd7, 0x6d, 0x26, 0x55, 0xbe, 0x6a, 0x3f, 0x54, 0x4c, 0xc4, 0x4f, 0xe4, 0x4a,
|
||||
0x10, 0x0a, 0xb2, 0xd5, 0x70, 0x07, 0x57, 0x4d, 0xa8, 0x7a, 0x07, 0xd2, 0xa6, 0x20, 0x51, 0x09,
|
||||
0x15, 0xd7, 0x99, 0xb8, 0x2b, 0x6c, 0xaf, 0xd9, 0x5d, 0xb7, 0xca, 0x0b, 0x20, 0x1e, 0x85, 0x17,
|
||||
0xe0, 0x82, 0x87, 0x43, 0x42, 0xbb, 0x76, 0x52, 0xb7, 0x6a, 0x45, 0x90, 0xe8, 0x55, 0xbc, 0xe7,
|
||||
0x9c, 0x39, 0x63, 0xcf, 0x99, 0x0d, 0x3c, 0x4a, 0x79, 0x74, 0x9c, 0xf1, 0x09, 0x86, 0x31, 0x66,
|
||||
0xea, 0x38, 0x42, 0xa1, 0xd8, 0x94, 0x45, 0xa1, 0x42, 0x3f, 0x17, 0x5c, 0x71, 0xb2, 0x95, 0xf2,
|
||||
0xc8, 0x5f, 0x08, 0x7c, 0x89, 0x51, 0x21, 0x98, 0x9a, 0x75, 0x1f, 0xc6, 0x9c, 0xc7, 0x09, 0x06,
|
||||
0x46, 0x75, 0x52, 0x4c, 0x83, 0x73, 0x11, 0xe6, 0x39, 0x0a, 0x59, 0xd6, 0x75, 0xef, 0x6a, 0xe3,
|
||||
0x88, 0xa7, 0x29, 0xcf, 0xaa, 0x9f, 0x92, 0xf0, 0x3e, 0x02, 0x19, 0x5d, 0x74, 0xa1, 0xf8, 0xa5,
|
||||
0x40, 0xa9, 0xc8, 0x01, 0x6c, 0xd4, 0x50, 0xe9, 0x5a, 0xbd, 0x66, 0xbf, 0x3d, 0xd8, 0xf6, 0xaf,
|
||||
0xef, 0xee, 0xd7, 0x1d, 0x2e, 0x15, 0x7a, 0xdf, 0x2d, 0xf8, 0xff, 0x92, 0xbf, 0xcc, 0x79, 0x26,
|
||||
0xf1, 0x9f, 0x35, 0x20, 0x03, 0x70, 0x28, 0xca, 0x22, 0x51, 0x6e, 0xa3, 0x67, 0xf5, 0xdb, 0x83,
|
||||
0xae, 0x5f, 0x4e, 0xc2, 0x9f, 0x4f, 0xc2, 0x1f, 0x72, 0x9e, 0xbc, 0x0f, 0x93, 0x02, 0x69, 0xa5,
|
||||
0x24, 0x77, 0x60, 0x75, 0x5f, 0x08, 0x2e, 0xdc, 0x66, 0xcf, 0xea, 0xb7, 0x68, 0x79, 0xf0, 0x7e,
|
||||
0x36, 0xa0, 0x5d, 0xb3, 0x26, 0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c, 0xaa, 0x61, 0x6a, 0x80, 0x3c, 0x87, 0x0e, 0x4f, 0x26, 0x35, 0xaf, 0x32, 0xf9,
|
||||
0x4a, 0x72, 0x85, 0xab, 0x8d, 0xdc, 0xbe, 0x79, 0xe4, 0x5b, 0xe0, 0x44, 0xe1, 0x1b, 0xfd, 0x02,
|
||||
0x26, 0x3a, 0x5a, 0x9d, 0xf4, 0x46, 0xc4, 0x82, 0x17, 0xb9, 0xa1, 0x1c, 0x43, 0x5d, 0x00, 0x9a,
|
||||
0x3d, 0x0b, 0x8b, 0x44, 0x19, 0x76, 0xad, 0x64, 0x17, 0x00, 0xf1, 0x60, 0x23, 0xe1, 0x51, 0xa8,
|
||||
0x18, 0xcf, 0x8c, 0x60, 0xdd, 0x08, 0x2e, 0x61, 0x7a, 0xa7, 0xd8, 0xa4, 0xca, 0xab, 0x65, 0xf8,
|
||||
0xc5, 0x59, 0x73, 0x67, 0x61, 0xc2, 0x26, 0x9a, 0x83, 0x72, 0xdf, 0xe6, 0x67, 0xf2, 0x12, 0x40,
|
||||
0xa2, 0x38, 0x43, 0xb1, 0x57, 0xa8, 0x53, 0xb7, 0xfd, 0xc7, 0xbb, 0x52, 0x53, 0xef, 0x3c, 0x85,
|
||||
0xff, 0xae, 0xac, 0x0e, 0x01, 0x70, 0x46, 0x09, 0xc3, 0x4c, 0x6d, 0xae, 0xe8, 0xe7, 0xb1, 0x11,
|
||||
0x6f, 0x5a, 0x83, 0x5f, 0x4d, 0xd8, 0xac, 0x69, 0xf7, 0x74, 0xe2, 0xe4, 0x33, 0x74, 0x46, 0x02,
|
||||
0x43, 0x85, 0x6f, 0xc5, 0xbb, 0x7c, 0xa2, 0x47, 0xbc, 0xb3, 0xcc, 0x45, 0x2f, 0x83, 0xee, 0x3e,
|
||||
0x5b, 0x4a, 0x5b, 0xfe, 0xaf, 0x78, 0x2b, 0xe4, 0x13, 0x34, 0x0f, 0x50, 0xdd, 0x66, 0x87, 0x08,
|
||||
0x9c, 0xd7, 0x98, 0xe0, 0xed, 0x7e, 0xc6, 0x07, 0xb0, 0xf5, 0xc2, 0x13, 0xef, 0xc6, 0xb2, 0xc5,
|
||||
0x7d, 0xfb, 0x5b, 0xeb, 0x23, 0x58, 0xa5, 0x98, 0xe1, 0xf9, 0x2d, 0x78, 0x0f, 0x77, 0x8f, 0x82,
|
||||
0x98, 0xa9, 0xd3, 0xe2, 0xc4, 0x8f, 0x78, 0x1a, 0xa4, 0x2c, 0x12, 0x5c, 0xf2, 0xa9, 0x0a, 0x52,
|
||||
0x1e, 0x05, 0x22, 0x8f, 0x82, 0x85, 0x51, 0x30, 0x37, 0x3a, 0x71, 0xcc, 0xf6, 0xbd, 0xf8, 0x1d,
|
||||
0x00, 0x00, 0xff, 0xff, 0xe9, 0xbb, 0x61, 0x5e, 0xfc, 0x06, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
|
|
Загрузка…
Ссылка в новой задаче