| 1 |
// Copyright 2022 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// https://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.34.2 |
| 18 |
// protoc v3.21.12 |
| 19 |
// source: internal/proto/v2/common/common.proto |
| 20 |
|
| 21 |
package common_go_proto |
| 22 |
|
| 23 |
import ( |
| 24 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 25 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 26 |
reflect "reflect" |
| 27 |
sync "sync" |
| 28 |
) |
| 29 |
|
| 30 |
const ( |
| 31 |
// Verify that this generated code is sufficiently up-to-date. |
| 32 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 33 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 34 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 35 |
) |
| 36 |
|
| 37 |
// The TLS 1.0-1.2 ciphersuites that the application can negotiate when using |
| 38 |
// S2A. |
| 39 |
type Ciphersuite int32 |
| 40 |
|
| 41 |
const ( |
| 42 |
Ciphersuite_CIPHERSUITE_UNSPECIFIED Ciphersuite = 0 |
| 43 |
Ciphersuite_CIPHERSUITE_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 Ciphersuite = 1 |
| 44 |
Ciphersuite_CIPHERSUITE_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 Ciphersuite = 2 |
| 45 |
Ciphersuite_CIPHERSUITE_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 Ciphersuite = 3 |
| 46 |
Ciphersuite_CIPHERSUITE_ECDHE_RSA_WITH_AES_128_GCM_SHA256 Ciphersuite = 4 |
| 47 |
Ciphersuite_CIPHERSUITE_ECDHE_RSA_WITH_AES_256_GCM_SHA384 Ciphersuite = 5 |
| 48 |
Ciphersuite_CIPHERSUITE_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 Ciphersuite = 6 |
| 49 |
) |
| 50 |
|
| 51 |
// Enum value maps for Ciphersuite. |
| 52 |
var ( |
| 53 |
Ciphersuite_name = map[int32]string{ |
| 54 |
0: "CIPHERSUITE_UNSPECIFIED", |
| 55 |
1: "CIPHERSUITE_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", |
| 56 |
2: "CIPHERSUITE_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", |
| 57 |
3: "CIPHERSUITE_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256", |
| 58 |
4: "CIPHERSUITE_ECDHE_RSA_WITH_AES_128_GCM_SHA256", |
| 59 |
5: "CIPHERSUITE_ECDHE_RSA_WITH_AES_256_GCM_SHA384", |
| 60 |
6: "CIPHERSUITE_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256", |
| 61 |
} |
| 62 |
Ciphersuite_value = map[string]int32{ |
| 63 |
"CIPHERSUITE_UNSPECIFIED": 0, |
| 64 |
"CIPHERSUITE_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256": 1, |
| 65 |
"CIPHERSUITE_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384": 2, |
| 66 |
"CIPHERSUITE_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256": 3, |
| 67 |
"CIPHERSUITE_ECDHE_RSA_WITH_AES_128_GCM_SHA256": 4, |
| 68 |
"CIPHERSUITE_ECDHE_RSA_WITH_AES_256_GCM_SHA384": 5, |
| 69 |
"CIPHERSUITE_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256": 6, |
| 70 |
} |
| 71 |
) |
| 72 |
|
| 73 |
func (x Ciphersuite) Enum() *Ciphersuite { |
| 74 |
p := new(Ciphersuite) |
| 75 |
*p = x |
| 76 |
return p |
| 77 |
} |
| 78 |
|
| 79 |
func (x Ciphersuite) String() string { |
| 80 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 81 |
} |
| 82 |
|
| 83 |
func (Ciphersuite) Descriptor() protoreflect.EnumDescriptor { |
| 84 |
return file_internal_proto_v2_common_common_proto_enumTypes[0].Descriptor() |
| 85 |
} |
| 86 |
|
| 87 |
func (Ciphersuite) Type() protoreflect.EnumType { |
| 88 |
return &file_internal_proto_v2_common_common_proto_enumTypes[0] |
| 89 |
} |
| 90 |
|
| 91 |
func (x Ciphersuite) Number() protoreflect.EnumNumber { |
| 92 |
return protoreflect.EnumNumber(x) |
| 93 |
} |
| 94 |
|
| 95 |
// Deprecated: Use Ciphersuite.Descriptor instead. |
| 96 |
func (Ciphersuite) EnumDescriptor() ([]byte, []int) { |
| 97 |
return file_internal_proto_v2_common_common_proto_rawDescGZIP(), []int{0} |
| 98 |
} |
| 99 |
|
| 100 |
// The TLS versions supported by S2A's handshaker module. |
| 101 |
type TLSVersion int32 |
| 102 |
|
| 103 |
const ( |
| 104 |
TLSVersion_TLS_VERSION_UNSPECIFIED TLSVersion = 0 |
| 105 |
TLSVersion_TLS_VERSION_1_0 TLSVersion = 1 |
| 106 |
TLSVersion_TLS_VERSION_1_1 TLSVersion = 2 |
| 107 |
TLSVersion_TLS_VERSION_1_2 TLSVersion = 3 |
| 108 |
TLSVersion_TLS_VERSION_1_3 TLSVersion = 4 |
| 109 |
) |
| 110 |
|
| 111 |
// Enum value maps for TLSVersion. |
| 112 |
var ( |
| 113 |
TLSVersion_name = map[int32]string{ |
| 114 |
0: "TLS_VERSION_UNSPECIFIED", |
| 115 |
1: "TLS_VERSION_1_0", |
| 116 |
2: "TLS_VERSION_1_1", |
| 117 |
3: "TLS_VERSION_1_2", |
| 118 |
4: "TLS_VERSION_1_3", |
| 119 |
} |
| 120 |
TLSVersion_value = map[string]int32{ |
| 121 |
"TLS_VERSION_UNSPECIFIED": 0, |
| 122 |
"TLS_VERSION_1_0": 1, |
| 123 |
"TLS_VERSION_1_1": 2, |
| 124 |
"TLS_VERSION_1_2": 3, |
| 125 |
"TLS_VERSION_1_3": 4, |
| 126 |
} |
| 127 |
) |
| 128 |
|
| 129 |
func (x TLSVersion) Enum() *TLSVersion { |
| 130 |
p := new(TLSVersion) |
| 131 |
*p = x |
| 132 |
return p |
| 133 |
} |
| 134 |
|
| 135 |
func (x TLSVersion) String() string { |
| 136 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 137 |
} |
| 138 |
|
| 139 |
func (TLSVersion) Descriptor() protoreflect.EnumDescriptor { |
| 140 |
return file_internal_proto_v2_common_common_proto_enumTypes[1].Descriptor() |
| 141 |
} |
| 142 |
|
| 143 |
func (TLSVersion) Type() protoreflect.EnumType { |
| 144 |
return &file_internal_proto_v2_common_common_proto_enumTypes[1] |
| 145 |
} |
| 146 |
|
| 147 |
func (x TLSVersion) Number() protoreflect.EnumNumber { |
| 148 |
return protoreflect.EnumNumber(x) |
| 149 |
} |
| 150 |
|
| 151 |
// Deprecated: Use TLSVersion.Descriptor instead. |
| 152 |
func (TLSVersion) EnumDescriptor() ([]byte, []int) { |
| 153 |
return file_internal_proto_v2_common_common_proto_rawDescGZIP(), []int{1} |
| 154 |
} |
| 155 |
|
| 156 |
// The side in the TLS connection. |
| 157 |
type ConnectionSide int32 |
| 158 |
|
| 159 |
const ( |
| 160 |
ConnectionSide_CONNECTION_SIDE_UNSPECIFIED ConnectionSide = 0 |
| 161 |
ConnectionSide_CONNECTION_SIDE_CLIENT ConnectionSide = 1 |
| 162 |
ConnectionSide_CONNECTION_SIDE_SERVER ConnectionSide = 2 |
| 163 |
) |
| 164 |
|
| 165 |
// Enum value maps for ConnectionSide. |
| 166 |
var ( |
| 167 |
ConnectionSide_name = map[int32]string{ |
| 168 |
0: "CONNECTION_SIDE_UNSPECIFIED", |
| 169 |
1: "CONNECTION_SIDE_CLIENT", |
| 170 |
2: "CONNECTION_SIDE_SERVER", |
| 171 |
} |
| 172 |
ConnectionSide_value = map[string]int32{ |
| 173 |
"CONNECTION_SIDE_UNSPECIFIED": 0, |
| 174 |
"CONNECTION_SIDE_CLIENT": 1, |
| 175 |
"CONNECTION_SIDE_SERVER": 2, |
| 176 |
} |
| 177 |
) |
| 178 |
|
| 179 |
func (x ConnectionSide) Enum() *ConnectionSide { |
| 180 |
p := new(ConnectionSide) |
| 181 |
*p = x |
| 182 |
return p |
| 183 |
} |
| 184 |
|
| 185 |
func (x ConnectionSide) String() string { |
| 186 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 187 |
} |
| 188 |
|
| 189 |
func (ConnectionSide) Descriptor() protoreflect.EnumDescriptor { |
| 190 |
return file_internal_proto_v2_common_common_proto_enumTypes[2].Descriptor() |
| 191 |
} |
| 192 |
|
| 193 |
func (ConnectionSide) Type() protoreflect.EnumType { |
| 194 |
return &file_internal_proto_v2_common_common_proto_enumTypes[2] |
| 195 |
} |
| 196 |
|
| 197 |
func (x ConnectionSide) Number() protoreflect.EnumNumber { |
| 198 |
return protoreflect.EnumNumber(x) |
| 199 |
} |
| 200 |
|
| 201 |
// Deprecated: Use ConnectionSide.Descriptor instead. |
| 202 |
func (ConnectionSide) EnumDescriptor() ([]byte, []int) { |
| 203 |
return file_internal_proto_v2_common_common_proto_rawDescGZIP(), []int{2} |
| 204 |
} |
| 205 |
|
| 206 |
// The ALPN protocols that the application can negotiate during a TLS handshake. |
| 207 |
type AlpnProtocol int32 |
| 208 |
|
| 209 |
const ( |
| 210 |
AlpnProtocol_ALPN_PROTOCOL_UNSPECIFIED AlpnProtocol = 0 |
| 211 |
AlpnProtocol_ALPN_PROTOCOL_GRPC AlpnProtocol = 1 |
| 212 |
AlpnProtocol_ALPN_PROTOCOL_HTTP2 AlpnProtocol = 2 |
| 213 |
AlpnProtocol_ALPN_PROTOCOL_HTTP1_1 AlpnProtocol = 3 |
| 214 |
) |
| 215 |
|
| 216 |
// Enum value maps for AlpnProtocol. |
| 217 |
var ( |
| 218 |
AlpnProtocol_name = map[int32]string{ |
| 219 |
0: "ALPN_PROTOCOL_UNSPECIFIED", |
| 220 |
1: "ALPN_PROTOCOL_GRPC", |
| 221 |
2: "ALPN_PROTOCOL_HTTP2", |
| 222 |
3: "ALPN_PROTOCOL_HTTP1_1", |
| 223 |
} |
| 224 |
AlpnProtocol_value = map[string]int32{ |
| 225 |
"ALPN_PROTOCOL_UNSPECIFIED": 0, |
| 226 |
"ALPN_PROTOCOL_GRPC": 1, |
| 227 |
"ALPN_PROTOCOL_HTTP2": 2, |
| 228 |
"ALPN_PROTOCOL_HTTP1_1": 3, |
| 229 |
} |
| 230 |
) |
| 231 |
|
| 232 |
func (x AlpnProtocol) Enum() *AlpnProtocol { |
| 233 |
p := new(AlpnProtocol) |
| 234 |
*p = x |
| 235 |
return p |
| 236 |
} |
| 237 |
|
| 238 |
func (x AlpnProtocol) String() string { |
| 239 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 240 |
} |
| 241 |
|
| 242 |
func (AlpnProtocol) Descriptor() protoreflect.EnumDescriptor { |
| 243 |
return file_internal_proto_v2_common_common_proto_enumTypes[3].Descriptor() |
| 244 |
} |
| 245 |
|
| 246 |
func (AlpnProtocol) Type() protoreflect.EnumType { |
| 247 |
return &file_internal_proto_v2_common_common_proto_enumTypes[3] |
| 248 |
} |
| 249 |
|
| 250 |
func (x AlpnProtocol) Number() protoreflect.EnumNumber { |
| 251 |
return protoreflect.EnumNumber(x) |
| 252 |
} |
| 253 |
|
| 254 |
// Deprecated: Use AlpnProtocol.Descriptor instead. |
| 255 |
func (AlpnProtocol) EnumDescriptor() ([]byte, []int) { |
| 256 |
return file_internal_proto_v2_common_common_proto_rawDescGZIP(), []int{3} |
| 257 |
} |
| 258 |
|
| 259 |
type Identity struct { |
| 260 |
state protoimpl.MessageState |
| 261 |
sizeCache protoimpl.SizeCache |
| 262 |
unknownFields protoimpl.UnknownFields |
| 263 |
|
| 264 |
// Types that are assignable to IdentityOneof: |
| 265 |
// |
| 266 |
// *Identity_SpiffeId |
| 267 |
// *Identity_Hostname |
| 268 |
// *Identity_Uid |
| 269 |
// *Identity_Username |
| 270 |
// *Identity_GcpId |
| 271 |
IdentityOneof isIdentity_IdentityOneof `protobuf_oneof:"identity_oneof"` |
| 272 |
// Additional identity-specific attributes. |
| 273 |
Attributes map[string]string `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 274 |
} |
| 275 |
|
| 276 |
func (x *Identity) Reset() { |
| 277 |
*x = Identity{} |
| 278 |
if protoimpl.UnsafeEnabled { |
| 279 |
mi := &file_internal_proto_v2_common_common_proto_msgTypes[0] |
| 280 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 281 |
ms.StoreMessageInfo(mi) |
| 282 |
} |
| 283 |
} |
| 284 |
|
| 285 |
func (x *Identity) String() string { |
| 286 |
return protoimpl.X.MessageStringOf(x) |
| 287 |
} |
| 288 |
|
| 289 |
func (*Identity) ProtoMessage() {} |
| 290 |
|
| 291 |
func (x *Identity) ProtoReflect() protoreflect.Message { |
| 292 |
mi := &file_internal_proto_v2_common_common_proto_msgTypes[0] |
| 293 |
if protoimpl.UnsafeEnabled && x != nil { |
| 294 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 295 |
if ms.LoadMessageInfo() == nil { |
| 296 |
ms.StoreMessageInfo(mi) |
| 297 |
} |
| 298 |
return ms |
| 299 |
} |
| 300 |
return mi.MessageOf(x) |
| 301 |
} |
| 302 |
|
| 303 |
// Deprecated: Use Identity.ProtoReflect.Descriptor instead. |
| 304 |
func (*Identity) Descriptor() ([]byte, []int) { |
| 305 |
return file_internal_proto_v2_common_common_proto_rawDescGZIP(), []int{0} |
| 306 |
} |
| 307 |
|
| 308 |
func (m *Identity) GetIdentityOneof() isIdentity_IdentityOneof { |
| 309 |
if m != nil { |
| 310 |
return m.IdentityOneof |
| 311 |
} |
| 312 |
return nil |
| 313 |
} |
| 314 |
|
| 315 |
func (x *Identity) GetSpiffeId() string { |
| 316 |
if x, ok := x.GetIdentityOneof().(*Identity_SpiffeId); ok { |
| 317 |
return x.SpiffeId |
| 318 |
} |
| 319 |
return "" |
| 320 |
} |
| 321 |
|
| 322 |
func (x *Identity) GetHostname() string { |
| 323 |
if x, ok := x.GetIdentityOneof().(*Identity_Hostname); ok { |
| 324 |
return x.Hostname |
| 325 |
} |
| 326 |
return "" |
| 327 |
} |
| 328 |
|
| 329 |
func (x *Identity) GetUid() string { |
| 330 |
if x, ok := x.GetIdentityOneof().(*Identity_Uid); ok { |
| 331 |
return x.Uid |
| 332 |
} |
| 333 |
return "" |
| 334 |
} |
| 335 |
|
| 336 |
func (x *Identity) GetUsername() string { |
| 337 |
if x, ok := x.GetIdentityOneof().(*Identity_Username); ok { |
| 338 |
return x.Username |
| 339 |
} |
| 340 |
return "" |
| 341 |
} |
| 342 |
|
| 343 |
func (x *Identity) GetGcpId() string { |
| 344 |
if x, ok := x.GetIdentityOneof().(*Identity_GcpId); ok { |
| 345 |
return x.GcpId |
| 346 |
} |
| 347 |
return "" |
| 348 |
} |
| 349 |
|
| 350 |
func (x *Identity) GetAttributes() map[string]string { |
| 351 |
if x != nil { |
| 352 |
return x.Attributes |
| 353 |
} |
| 354 |
return nil |
| 355 |
} |
| 356 |
|
| 357 |
type isIdentity_IdentityOneof interface { |
| 358 |
isIdentity_IdentityOneof() |
| 359 |
} |
| 360 |
|
| 361 |
type Identity_SpiffeId struct { |
| 362 |
// The SPIFFE ID of a connection endpoint. |
| 363 |
SpiffeId string `protobuf:"bytes,1,opt,name=spiffe_id,json=spiffeId,proto3,oneof"` |
| 364 |
} |
| 365 |
|
| 366 |
type Identity_Hostname struct { |
| 367 |
// The hostname of a connection endpoint. |
| 368 |
Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3,oneof"` |
| 369 |
} |
| 370 |
|
| 371 |
type Identity_Uid struct { |
| 372 |
// The UID of a connection endpoint. |
| 373 |
Uid string `protobuf:"bytes,4,opt,name=uid,proto3,oneof"` |
| 374 |
} |
| 375 |
|
| 376 |
type Identity_Username struct { |
| 377 |
// The username of a connection endpoint. |
| 378 |
Username string `protobuf:"bytes,5,opt,name=username,proto3,oneof"` |
| 379 |
} |
| 380 |
|
| 381 |
type Identity_GcpId struct { |
| 382 |
// The GCP ID of a connection endpoint. |
| 383 |
GcpId string `protobuf:"bytes,6,opt,name=gcp_id,json=gcpId,proto3,oneof"` |
| 384 |
} |
| 385 |
|
| 386 |
func (*Identity_SpiffeId) isIdentity_IdentityOneof() {} |
| 387 |
|
| 388 |
func (*Identity_Hostname) isIdentity_IdentityOneof() {} |
| 389 |
|
| 390 |
func (*Identity_Uid) isIdentity_IdentityOneof() {} |
| 391 |
|
| 392 |
func (*Identity_Username) isIdentity_IdentityOneof() {} |
| 393 |
|
| 394 |
func (*Identity_GcpId) isIdentity_IdentityOneof() {} |
| 395 |
|
| 396 |
var File_internal_proto_v2_common_common_proto protoreflect.FileDescriptor |
| 397 |
|
| 398 |
var file_internal_proto_v2_common_common_proto_rawDesc = []byte{ |
| 399 |
0x0a, 0x25, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 400 |
0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, |
| 401 |
0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x73, 0x32, 0x61, 0x2e, 0x70, 0x72, 0x6f, |
| 402 |
0x74, 0x6f, 0x2e, 0x76, 0x32, 0x22, 0xab, 0x02, 0x0a, 0x08, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, |
| 403 |
0x74, 0x79, 0x12, 0x1d, 0x0a, 0x09, 0x73, 0x70, 0x69, 0x66, 0x66, 0x65, 0x5f, 0x69, 0x64, 0x18, |
| 404 |
0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x73, 0x70, 0x69, 0x66, 0x66, 0x65, 0x49, |
| 405 |
0x64, 0x12, 0x1c, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, |
| 406 |
0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, |
| 407 |
0x12, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, |
| 408 |
0x75, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, |
| 409 |
0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, |
| 410 |
0x65, 0x12, 0x17, 0x0a, 0x06, 0x67, 0x63, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, |
| 411 |
0x09, 0x48, 0x00, 0x52, 0x05, 0x67, 0x63, 0x70, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x0a, 0x61, 0x74, |
| 412 |
0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, |
| 413 |
0x2e, 0x73, 0x32, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x64, |
| 414 |
0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, |
| 415 |
0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, |
| 416 |
0x65, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, |
| 417 |
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, |
| 418 |
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, |
| 419 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, |
| 420 |
0x01, 0x42, 0x10, 0x0a, 0x0e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x6f, 0x6e, |
| 421 |
0x65, 0x6f, 0x66, 0x2a, 0xee, 0x02, 0x0a, 0x0b, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x73, 0x75, |
| 422 |
0x69, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x49, 0x50, 0x48, 0x45, 0x52, 0x53, 0x55, 0x49, |
| 423 |
0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, |
| 424 |
0x12, 0x33, 0x0a, 0x2f, 0x43, 0x49, 0x50, 0x48, 0x45, 0x52, 0x53, 0x55, 0x49, 0x54, 0x45, 0x5f, |
| 425 |
0x45, 0x43, 0x44, 0x48, 0x45, 0x5f, 0x45, 0x43, 0x44, 0x53, 0x41, 0x5f, 0x57, 0x49, 0x54, 0x48, |
| 426 |
0x5f, 0x41, 0x45, 0x53, 0x5f, 0x31, 0x32, 0x38, 0x5f, 0x47, 0x43, 0x4d, 0x5f, 0x53, 0x48, 0x41, |
| 427 |
0x32, 0x35, 0x36, 0x10, 0x01, 0x12, 0x33, 0x0a, 0x2f, 0x43, 0x49, 0x50, 0x48, 0x45, 0x52, 0x53, |
| 428 |
0x55, 0x49, 0x54, 0x45, 0x5f, 0x45, 0x43, 0x44, 0x48, 0x45, 0x5f, 0x45, 0x43, 0x44, 0x53, 0x41, |
| 429 |
0x5f, 0x57, 0x49, 0x54, 0x48, 0x5f, 0x41, 0x45, 0x53, 0x5f, 0x32, 0x35, 0x36, 0x5f, 0x47, 0x43, |
| 430 |
0x4d, 0x5f, 0x53, 0x48, 0x41, 0x33, 0x38, 0x34, 0x10, 0x02, 0x12, 0x39, 0x0a, 0x35, 0x43, 0x49, |
| 431 |
0x50, 0x48, 0x45, 0x52, 0x53, 0x55, 0x49, 0x54, 0x45, 0x5f, 0x45, 0x43, 0x44, 0x48, 0x45, 0x5f, |
| 432 |
0x45, 0x43, 0x44, 0x53, 0x41, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x5f, 0x43, 0x48, 0x41, 0x43, 0x48, |
| 433 |
0x41, 0x32, 0x30, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x31, 0x33, 0x30, 0x35, 0x5f, 0x53, 0x48, 0x41, |
| 434 |
0x32, 0x35, 0x36, 0x10, 0x03, 0x12, 0x31, 0x0a, 0x2d, 0x43, 0x49, 0x50, 0x48, 0x45, 0x52, 0x53, |
| 435 |
0x55, 0x49, 0x54, 0x45, 0x5f, 0x45, 0x43, 0x44, 0x48, 0x45, 0x5f, 0x52, 0x53, 0x41, 0x5f, 0x57, |
| 436 |
0x49, 0x54, 0x48, 0x5f, 0x41, 0x45, 0x53, 0x5f, 0x31, 0x32, 0x38, 0x5f, 0x47, 0x43, 0x4d, 0x5f, |
| 437 |
0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x10, 0x04, 0x12, 0x31, 0x0a, 0x2d, 0x43, 0x49, 0x50, 0x48, |
| 438 |
0x45, 0x52, 0x53, 0x55, 0x49, 0x54, 0x45, 0x5f, 0x45, 0x43, 0x44, 0x48, 0x45, 0x5f, 0x52, 0x53, |
| 439 |
0x41, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x5f, 0x41, 0x45, 0x53, 0x5f, 0x32, 0x35, 0x36, 0x5f, 0x47, |
| 440 |
0x43, 0x4d, 0x5f, 0x53, 0x48, 0x41, 0x33, 0x38, 0x34, 0x10, 0x05, 0x12, 0x37, 0x0a, 0x33, 0x43, |
| 441 |
0x49, 0x50, 0x48, 0x45, 0x52, 0x53, 0x55, 0x49, 0x54, 0x45, 0x5f, 0x45, 0x43, 0x44, 0x48, 0x45, |
| 442 |
0x5f, 0x52, 0x53, 0x41, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x5f, 0x43, 0x48, 0x41, 0x43, 0x48, 0x41, |
| 443 |
0x32, 0x30, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x31, 0x33, 0x30, 0x35, 0x5f, 0x53, 0x48, 0x41, 0x32, |
| 444 |
0x35, 0x36, 0x10, 0x06, 0x2a, 0x7d, 0x0a, 0x0a, 0x54, 0x4c, 0x53, 0x56, 0x65, 0x72, 0x73, 0x69, |
| 445 |
0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x54, 0x4c, 0x53, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, |
| 446 |
0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, |
| 447 |
0x13, 0x0a, 0x0f, 0x54, 0x4c, 0x53, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x31, |
| 448 |
0x5f, 0x30, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x4c, 0x53, 0x5f, 0x56, 0x45, 0x52, 0x53, |
| 449 |
0x49, 0x4f, 0x4e, 0x5f, 0x31, 0x5f, 0x31, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x4c, 0x53, |
| 450 |
0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x31, 0x5f, 0x32, 0x10, 0x03, 0x12, 0x13, |
| 451 |
0x0a, 0x0f, 0x54, 0x4c, 0x53, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x31, 0x5f, |
| 452 |
0x33, 0x10, 0x04, 0x2a, 0x69, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, |
| 453 |
0x6e, 0x53, 0x69, 0x64, 0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, |
| 454 |
0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x49, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, |
| 455 |
0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, |
| 456 |
0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x49, 0x44, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54, |
| 457 |
0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, |
| 458 |
0x5f, 0x53, 0x49, 0x44, 0x45, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x10, 0x02, 0x2a, 0x79, |
| 459 |
0x0a, 0x0c, 0x41, 0x6c, 0x70, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x1d, |
| 460 |
0x0a, 0x19, 0x41, 0x4c, 0x50, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, |
| 461 |
0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, |
| 462 |
0x12, 0x41, 0x4c, 0x50, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x47, |
| 463 |
0x52, 0x50, 0x43, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x4c, 0x50, 0x4e, 0x5f, 0x50, 0x52, |
| 464 |
0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x48, 0x54, 0x54, 0x50, 0x32, 0x10, 0x02, 0x12, 0x19, |
| 465 |
0x0a, 0x15, 0x41, 0x4c, 0x50, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, |
| 466 |
0x48, 0x54, 0x54, 0x50, 0x31, 0x5f, 0x31, 0x10, 0x03, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, |
| 467 |
0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, |
| 468 |
0x32, 0x61, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, |
| 469 |
0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x67, 0x6f, 0x5f, 0x70, |
| 470 |
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 471 |
} |
| 472 |
|
| 473 |
var ( |
| 474 |
file_internal_proto_v2_common_common_proto_rawDescOnce sync.Once |
| 475 |
file_internal_proto_v2_common_common_proto_rawDescData = file_internal_proto_v2_common_common_proto_rawDesc |
| 476 |
) |
| 477 |
|
| 478 |
func file_internal_proto_v2_common_common_proto_rawDescGZIP() []byte { |
| 479 |
file_internal_proto_v2_common_common_proto_rawDescOnce.Do(func() { |
| 480 |
file_internal_proto_v2_common_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_proto_v2_common_common_proto_rawDescData) |
| 481 |
}) |
| 482 |
return file_internal_proto_v2_common_common_proto_rawDescData |
| 483 |
} |
| 484 |
|
| 485 |
var file_internal_proto_v2_common_common_proto_enumTypes = make([]protoimpl.EnumInfo, 4) |
| 486 |
var file_internal_proto_v2_common_common_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 487 |
var file_internal_proto_v2_common_common_proto_goTypes = []any{ |
| 488 |
(Ciphersuite)(0), // 0: s2a.proto.v2.Ciphersuite |
| 489 |
(TLSVersion)(0), // 1: s2a.proto.v2.TLSVersion |
| 490 |
(ConnectionSide)(0), // 2: s2a.proto.v2.ConnectionSide |
| 491 |
(AlpnProtocol)(0), // 3: s2a.proto.v2.AlpnProtocol |
| 492 |
(*Identity)(nil), // 4: s2a.proto.v2.Identity |
| 493 |
nil, // 5: s2a.proto.v2.Identity.AttributesEntry |
| 494 |
} |
| 495 |
var file_internal_proto_v2_common_common_proto_depIdxs = []int32{ |
| 496 |
5, // 0: s2a.proto.v2.Identity.attributes:type_name -> s2a.proto.v2.Identity.AttributesEntry |
| 497 |
1, // [1:1] is the sub-list for method output_type |
| 498 |
1, // [1:1] is the sub-list for method input_type |
| 499 |
1, // [1:1] is the sub-list for extension type_name |
| 500 |
1, // [1:1] is the sub-list for extension extendee |
| 501 |
0, // [0:1] is the sub-list for field type_name |
| 502 |
} |
| 503 |
|
| 504 |
func init() { file_internal_proto_v2_common_common_proto_init() } |
| 505 |
func file_internal_proto_v2_common_common_proto_init() { |
| 506 |
if File_internal_proto_v2_common_common_proto != nil { |
| 507 |
return |
| 508 |
} |
| 509 |
if !protoimpl.UnsafeEnabled { |
| 510 |
file_internal_proto_v2_common_common_proto_msgTypes[0].Exporter = func(v any, i int) any { |
| 511 |
switch v := v.(*Identity); i { |
| 512 |
case 0: |
| 513 |
return &v.state |
| 514 |
case 1: |
| 515 |
return &v.sizeCache |
| 516 |
case 2: |
| 517 |
return &v.unknownFields |
| 518 |
default: |
| 519 |
return nil |
| 520 |
} |
| 521 |
} |
| 522 |
} |
| 523 |
file_internal_proto_v2_common_common_proto_msgTypes[0].OneofWrappers = []any{ |
| 524 |
(*Identity_SpiffeId)(nil), |
| 525 |
(*Identity_Hostname)(nil), |
| 526 |
(*Identity_Uid)(nil), |
| 527 |
(*Identity_Username)(nil), |
| 528 |
(*Identity_GcpId)(nil), |
| 529 |
} |
| 530 |
type x struct{} |
| 531 |
out := protoimpl.TypeBuilder{ |
| 532 |
File: protoimpl.DescBuilder{ |
| 533 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 534 |
RawDescriptor: file_internal_proto_v2_common_common_proto_rawDesc, |
| 535 |
NumEnums: 4, |
| 536 |
NumMessages: 2, |
| 537 |
NumExtensions: 0, |
| 538 |
NumServices: 0, |
| 539 |
}, |
| 540 |
GoTypes: file_internal_proto_v2_common_common_proto_goTypes, |
| 541 |
DependencyIndexes: file_internal_proto_v2_common_common_proto_depIdxs, |
| 542 |
EnumInfos: file_internal_proto_v2_common_common_proto_enumTypes, |
| 543 |
MessageInfos: file_internal_proto_v2_common_common_proto_msgTypes, |
| 544 |
}.Build() |
| 545 |
File_internal_proto_v2_common_common_proto = out.File |
| 546 |
file_internal_proto_v2_common_common_proto_rawDesc = nil |
| 547 |
file_internal_proto_v2_common_common_proto_goTypes = nil |
| 548 |
file_internal_proto_v2_common_common_proto_depIdxs = nil |
| 549 |
} |