dubbo.apache.org/dubbo-go/v3@v3.1.1/xds/credentials/certprovider/remote/v1alpha1/ca.pb.go (about)

     1  /*
     2   * Licensed to the Apache Software Foundation (ASF) under one or more
     3   * contributor license agreements.  See the NOTICE file distributed with
     4   * this work for additional information regarding copyright ownership.
     5   * The ASF licenses this file to You under the Apache License, Version 2.0
     6   * (the "License"); you may not use this file except in compliance with
     7   * the License.  You may obtain a copy of the License at
     8   *
     9   *     http://www.apache.org/licenses/LICENSE-2.0
    10   *
    11   * Unless required by applicable law or agreed to in writing, software
    12   * distributed under the License is distributed on an "AS IS" BASIS,
    13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14   * See the License for the specific language governing permissions and
    15   * limitations under the License.
    16   */
    17  // Copyright Istio Authors
    18  
    19  // Code generated by protoc-gen-go. DO NOT EDIT.
    20  // versions:
    21  // 	protoc-gen-go v1.27.1
    22  // 	protoc        (unknown)
    23  // source: security/v1alpha1/ca.proto
    24  
    25  // Keep this package for backward compatibility.
    26  
    27  package v1alpha1
    28  
    29  import (
    30  	reflect "reflect"
    31  	sync "sync"
    32  )
    33  
    34  import (
    35  	_struct "github.com/golang/protobuf/ptypes/struct"
    36  
    37  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    38  
    39  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    40  )
    41  
    42  const (
    43  	// Verify that this generated code is sufficiently up-to-date.
    44  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    45  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    46  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    47  )
    48  
    49  // Certificate request message. The authentication should be based on:
    50  // 1. Bearer tokens carried in the side channel;
    51  // 2. Client-side certificate via Mutual TLS handshake.
    52  // Note: the service implementation is REQUIRED to verify the authenticated caller is authorize to
    53  // all SANs in the CSR. The server side may overwrite any requested certificate field based on its
    54  // policies.
    55  type IstioCertificateRequest struct {
    56  	state         protoimpl.MessageState
    57  	sizeCache     protoimpl.SizeCache
    58  	unknownFields protoimpl.UnknownFields
    59  
    60  	// PEM-encoded certificate request.
    61  	// The public key in the CSR is used to generate the certificate,
    62  	// and other fields in the generated certificate may be overwritten by the CA.
    63  	Csr string `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"`
    64  	// Optional: requested certificate validity period, in seconds.
    65  	ValidityDuration int64 `protobuf:"varint,3,opt,name=validity_duration,json=validityDuration,proto3" json:"validity_duration,omitempty"`
    66  	// $hide_from_docs
    67  	// Optional: Opaque metadata provided by the XDS node to Istio.
    68  	// Supported metadata: WorkloadName, WorkloadIP, ClusterID
    69  	Metadata *_struct.Struct `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
    70  }
    71  
    72  func (x *IstioCertificateRequest) Reset() {
    73  	*x = IstioCertificateRequest{}
    74  	if protoimpl.UnsafeEnabled {
    75  		mi := &file_security_v1alpha1_ca_proto_msgTypes[0]
    76  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    77  		ms.StoreMessageInfo(mi)
    78  	}
    79  }
    80  
    81  func (x *IstioCertificateRequest) String() string {
    82  	return protoimpl.X.MessageStringOf(x)
    83  }
    84  
    85  func (*IstioCertificateRequest) ProtoMessage() {}
    86  
    87  func (x *IstioCertificateRequest) ProtoReflect() protoreflect.Message {
    88  	mi := &file_security_v1alpha1_ca_proto_msgTypes[0]
    89  	if protoimpl.UnsafeEnabled && x != nil {
    90  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    91  		if ms.LoadMessageInfo() == nil {
    92  			ms.StoreMessageInfo(mi)
    93  		}
    94  		return ms
    95  	}
    96  	return mi.MessageOf(x)
    97  }
    98  
    99  // Deprecated: Use IstioCertificateRequest.ProtoReflect.Descriptor instead.
   100  func (*IstioCertificateRequest) Descriptor() ([]byte, []int) {
   101  	return file_security_v1alpha1_ca_proto_rawDescGZIP(), []int{0}
   102  }
   103  
   104  func (x *IstioCertificateRequest) GetCsr() string {
   105  	if x != nil {
   106  		return x.Csr
   107  	}
   108  	return ""
   109  }
   110  
   111  func (x *IstioCertificateRequest) GetValidityDuration() int64 {
   112  	if x != nil {
   113  		return x.ValidityDuration
   114  	}
   115  	return 0
   116  }
   117  
   118  func (x *IstioCertificateRequest) GetMetadata() *_struct.Struct {
   119  	if x != nil {
   120  		return x.Metadata
   121  	}
   122  	return nil
   123  }
   124  
   125  // Certificate response message.
   126  type IstioCertificateResponse struct {
   127  	state         protoimpl.MessageState
   128  	sizeCache     protoimpl.SizeCache
   129  	unknownFields protoimpl.UnknownFields
   130  
   131  	// PEM-encoded certificate chain.
   132  	// The leaf cert is the first element, and the root cert is the last element.
   133  	CertChain []string `protobuf:"bytes,1,rep,name=cert_chain,json=certChain,proto3" json:"cert_chain,omitempty"`
   134  }
   135  
   136  func (x *IstioCertificateResponse) Reset() {
   137  	*x = IstioCertificateResponse{}
   138  	if protoimpl.UnsafeEnabled {
   139  		mi := &file_security_v1alpha1_ca_proto_msgTypes[1]
   140  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   141  		ms.StoreMessageInfo(mi)
   142  	}
   143  }
   144  
   145  func (x *IstioCertificateResponse) String() string {
   146  	return protoimpl.X.MessageStringOf(x)
   147  }
   148  
   149  func (*IstioCertificateResponse) ProtoMessage() {}
   150  
   151  func (x *IstioCertificateResponse) ProtoReflect() protoreflect.Message {
   152  	mi := &file_security_v1alpha1_ca_proto_msgTypes[1]
   153  	if protoimpl.UnsafeEnabled && x != nil {
   154  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   155  		if ms.LoadMessageInfo() == nil {
   156  			ms.StoreMessageInfo(mi)
   157  		}
   158  		return ms
   159  	}
   160  	return mi.MessageOf(x)
   161  }
   162  
   163  // Deprecated: Use IstioCertificateResponse.ProtoReflect.Descriptor instead.
   164  func (*IstioCertificateResponse) Descriptor() ([]byte, []int) {
   165  	return file_security_v1alpha1_ca_proto_rawDescGZIP(), []int{1}
   166  }
   167  
   168  func (x *IstioCertificateResponse) GetCertChain() []string {
   169  	if x != nil {
   170  		return x.CertChain
   171  	}
   172  	return nil
   173  }
   174  
   175  var File_security_v1alpha1_ca_proto protoreflect.FileDescriptor
   176  
   177  var file_security_v1alpha1_ca_proto_rawDesc = []byte{
   178  	0x0a, 0x1a, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70,
   179  	0x68, 0x61, 0x31, 0x2f, 0x63, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x69, 0x73,
   180  	0x74, 0x69, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x1a, 0x1c, 0x67, 0x6f, 0x6f,
   181  	0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72,
   182  	0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8d, 0x01, 0x0a, 0x17, 0x49, 0x73,
   183  	0x74, 0x69, 0x6f, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65,
   184  	0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x73, 0x72, 0x18, 0x01, 0x20, 0x01,
   185  	0x28, 0x09, 0x52, 0x03, 0x63, 0x73, 0x72, 0x12, 0x2b, 0x0a, 0x11, 0x76, 0x61, 0x6c, 0x69, 0x64,
   186  	0x69, 0x74, 0x79, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01,
   187  	0x28, 0x03, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x69, 0x74, 0x79, 0x44, 0x75, 0x72, 0x61,
   188  	0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
   189  	0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   190  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52,
   191  	0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x39, 0x0a, 0x18, 0x49, 0x73, 0x74,
   192  	0x69, 0x6f, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73,
   193  	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x63, 0x68,
   194  	0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x63, 0x65, 0x72, 0x74, 0x43,
   195  	0x68, 0x61, 0x69, 0x6e, 0x32, 0x81, 0x01, 0x0a, 0x17, 0x49, 0x73, 0x74, 0x69, 0x6f, 0x43, 0x65,
   196  	0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
   197  	0x12, 0x66, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66,
   198  	0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x69, 0x73, 0x74, 0x69, 0x6f, 0x2e, 0x76, 0x31,
   199  	0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x49, 0x73, 0x74, 0x69, 0x6f, 0x43, 0x65, 0x72, 0x74, 0x69,
   200  	0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e,
   201  	0x69, 0x73, 0x74, 0x69, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x49, 0x73,
   202  	0x74, 0x69, 0x6f, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65,
   203  	0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x20, 0x5a, 0x1e, 0x69, 0x73, 0x74, 0x69,
   204  	0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
   205  	0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
   206  	0x6f, 0x33,
   207  }
   208  
   209  var (
   210  	file_security_v1alpha1_ca_proto_rawDescOnce sync.Once
   211  	file_security_v1alpha1_ca_proto_rawDescData = file_security_v1alpha1_ca_proto_rawDesc
   212  )
   213  
   214  func file_security_v1alpha1_ca_proto_rawDescGZIP() []byte {
   215  	file_security_v1alpha1_ca_proto_rawDescOnce.Do(func() {
   216  		file_security_v1alpha1_ca_proto_rawDescData = protoimpl.X.CompressGZIP(file_security_v1alpha1_ca_proto_rawDescData)
   217  	})
   218  	return file_security_v1alpha1_ca_proto_rawDescData
   219  }
   220  
   221  var file_security_v1alpha1_ca_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   222  var file_security_v1alpha1_ca_proto_goTypes = []interface{}{
   223  	(*IstioCertificateRequest)(nil),  // 0: istio.v1.auth.IstioCertificateRequest
   224  	(*IstioCertificateResponse)(nil), // 1: istio.v1.auth.IstioCertificateResponse
   225  	(*_struct.Struct)(nil),           // 2: google.protobuf.Struct
   226  }
   227  var file_security_v1alpha1_ca_proto_depIdxs = []int32{
   228  	2, // 0: istio.v1.auth.IstioCertificateRequest.metadata:type_name -> google.protobuf.Struct
   229  	0, // 1: istio.v1.auth.IstioCertificateService.CreateCertificate:input_type -> istio.v1.auth.IstioCertificateRequest
   230  	1, // 2: istio.v1.auth.IstioCertificateService.CreateCertificate:output_type -> istio.v1.auth.IstioCertificateResponse
   231  	2, // [2:3] is the sub-list for method output_type
   232  	1, // [1:2] is the sub-list for method input_type
   233  	1, // [1:1] is the sub-list for extension type_name
   234  	1, // [1:1] is the sub-list for extension extendee
   235  	0, // [0:1] is the sub-list for field type_name
   236  }
   237  
   238  func init() { file_security_v1alpha1_ca_proto_init() }
   239  func file_security_v1alpha1_ca_proto_init() {
   240  	if File_security_v1alpha1_ca_proto != nil {
   241  		return
   242  	}
   243  	if !protoimpl.UnsafeEnabled {
   244  		file_security_v1alpha1_ca_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   245  			switch v := v.(*IstioCertificateRequest); i {
   246  			case 0:
   247  				return &v.state
   248  			case 1:
   249  				return &v.sizeCache
   250  			case 2:
   251  				return &v.unknownFields
   252  			default:
   253  				return nil
   254  			}
   255  		}
   256  		file_security_v1alpha1_ca_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   257  			switch v := v.(*IstioCertificateResponse); i {
   258  			case 0:
   259  				return &v.state
   260  			case 1:
   261  				return &v.sizeCache
   262  			case 2:
   263  				return &v.unknownFields
   264  			default:
   265  				return nil
   266  			}
   267  		}
   268  	}
   269  	type x struct{}
   270  	out := protoimpl.TypeBuilder{
   271  		File: protoimpl.DescBuilder{
   272  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   273  			RawDescriptor: file_security_v1alpha1_ca_proto_rawDesc,
   274  			NumEnums:      0,
   275  			NumMessages:   2,
   276  			NumExtensions: 0,
   277  			NumServices:   1,
   278  		},
   279  		GoTypes:           file_security_v1alpha1_ca_proto_goTypes,
   280  		DependencyIndexes: file_security_v1alpha1_ca_proto_depIdxs,
   281  		MessageInfos:      file_security_v1alpha1_ca_proto_msgTypes,
   282  	}.Build()
   283  	File_security_v1alpha1_ca_proto = out.File
   284  	file_security_v1alpha1_ca_proto_rawDesc = nil
   285  	file_security_v1alpha1_ca_proto_goTypes = nil
   286  	file_security_v1alpha1_ca_proto_depIdxs = nil
   287  }