github.com/cloudwan/edgelq-sdk@v1.15.4/iam/resources/v1/attestation_domain/attestation_domain.pb.go (about) 1 // Code generated by protoc-gen-goten-go 2 // File: edgelq/iam/proto/v1/attestation_domain.proto 3 // DO NOT EDIT!!! 4 5 package attestation_domain 6 7 import ( 8 "fmt" 9 "reflect" 10 "sync" 11 12 "google.golang.org/protobuf/encoding/protojson" 13 "google.golang.org/protobuf/proto" 14 preflect "google.golang.org/protobuf/reflect/protoreflect" 15 "google.golang.org/protobuf/runtime/protoimpl" 16 ) 17 18 // proto imports 19 import ( 20 iam_common "github.com/cloudwan/edgelq-sdk/iam/resources/v1/common" 21 project "github.com/cloudwan/edgelq-sdk/iam/resources/v1/project" 22 meta "github.com/cloudwan/goten-sdk/types/meta" 23 ) 24 25 // Reference imports to suppress errors if they are not otherwise used. 26 var ( 27 _ = fmt.Errorf 28 _ = reflect.Method{} 29 _ = sync.Once{} 30 31 _ = protojson.MarshalOptions{} 32 _ = proto.MarshalOptions{} 33 _ = preflect.Value{} 34 _ = protoimpl.DescBuilder{} 35 ) 36 37 // make sure we're using proto imports 38 var ( 39 _ = &iam_common.PCR{} 40 _ = &project.Project{} 41 _ = &meta.Meta{} 42 ) 43 44 const ( 45 // Verify that this generated code is sufficiently up-to-date. 46 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 47 // Verify that runtime/protoimpl is sufficiently up-to-date. 48 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 49 ) 50 51 // AttestationDomain Resource 52 type AttestationDomain struct { 53 state protoimpl.MessageState 54 sizeCache protoimpl.SizeCache 55 unknownFields protoimpl.UnknownFields 56 // Name of AttestationDomain 57 // When creating a new instance, this field is optional and if not provided, 58 // it will be generated automatically. Last ID segment must conform to the 59 // following regex: [a-z][a-z0-9\\-]{0,28}[a-z0-9] 60 Name *Name `protobuf:"bytes,2,opt,customtype=Name,name=name,proto3" json:"name,omitempty"` 61 // Metadata is an object with information like create, update and delete time 62 // (for async deleted resources), has user labels/annotations, sharding 63 // information, multi-region syncing information and may have non-schema 64 // owners (useful for taking ownership of resources belonging to lower level 65 // services by higher ones). 66 Metadata *meta.Meta `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` 67 // Display name 68 DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` 69 // If false (default), attestation verifier SHALL check CA certificate chain 70 // up to the TPM chip manufacturers CA (defined in manufacturer_ca_issuers). 71 // This step is necessary to prove that the attestation request comes from a 72 // genuine TPM device, and not a TPM emulator. 73 // 74 // If true, attestation verifier SHALL skip EKcert verification - 75 // !!INSECURE!! Without this check, any keys may come from a simulated TPM 76 // on the device. An attacker may therefore forge any key they want. 77 // Therefore, this option should only be changed for development purposes. 78 InsecureSkipManufacturerEkcertVerification bool `protobuf:"varint,4,opt,name=insecure_skip_manufacturer_ekcert_verification,json=insecureSkipManufacturerEkcertVerification,proto3" json:"insecure_skip_manufacturer_ekcert_verification,omitempty"` 79 // Attestees wanting to attest under this attestation domain SHALL fulfill 80 // requirements of at least one of attestation policies defined in this list. 81 // Policies are checked in the order they appear on this list. 82 Policies []*AttestationDomain_Policy `protobuf:"bytes,5,rep,name=policies,proto3" json:"policies,omitempty"` 83 // Attestation policy may require atestees pubkey to be present on 84 // enrollment_list. 85 EnrollmentList []*AttestationDomain_EnrolledKey `protobuf:"bytes,6,rep,name=enrollment_list,json=enrollmentList,proto3" json:"enrollment_list,omitempty"` 86 } 87 88 func (m *AttestationDomain) Reset() { 89 *m = AttestationDomain{} 90 if protoimpl.UnsafeEnabled { 91 mi := &edgelq_iam_proto_v1_attestation_domain_proto_msgTypes[0] 92 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 93 ms.StoreMessageInfo(mi) 94 } 95 } 96 97 func (m *AttestationDomain) String() string { 98 return protoimpl.X.MessageStringOf(m) 99 } 100 101 func (*AttestationDomain) ProtoMessage() {} 102 103 func (m *AttestationDomain) ProtoReflect() preflect.Message { 104 mi := &edgelq_iam_proto_v1_attestation_domain_proto_msgTypes[0] 105 if protoimpl.UnsafeEnabled && m != nil { 106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 107 if ms.LoadMessageInfo() == nil { 108 ms.StoreMessageInfo(mi) 109 } 110 return ms 111 } 112 return mi.MessageOf(m) 113 } 114 115 func (*AttestationDomain) GotenMessage() {} 116 117 // Deprecated, Use AttestationDomain.ProtoReflect.Descriptor instead. 118 func (*AttestationDomain) Descriptor() ([]byte, []int) { 119 return edgelq_iam_proto_v1_attestation_domain_proto_rawDescGZIP(), []int{0} 120 } 121 122 func (m *AttestationDomain) Unmarshal(b []byte) error { 123 return proto.Unmarshal(b, m) 124 } 125 126 func (m *AttestationDomain) Marshal() ([]byte, error) { 127 return proto.Marshal(m) 128 } 129 130 func (m *AttestationDomain) MarshalJSON() ([]byte, error) { 131 return protojson.MarshalOptions{}.Marshal(m) 132 } 133 134 func (m *AttestationDomain) UnmarshalJSON(data []byte) error { 135 return protojson.Unmarshal(data, m) 136 } 137 138 func (m *AttestationDomain) GetName() *Name { 139 if m != nil { 140 return m.Name 141 } 142 return nil 143 } 144 145 func (m *AttestationDomain) GetMetadata() *meta.Meta { 146 if m != nil { 147 return m.Metadata 148 } 149 return nil 150 } 151 152 func (m *AttestationDomain) GetDisplayName() string { 153 if m != nil { 154 return m.DisplayName 155 } 156 return "" 157 } 158 159 func (m *AttestationDomain) GetInsecureSkipManufacturerEkcertVerification() bool { 160 if m != nil { 161 return m.InsecureSkipManufacturerEkcertVerification 162 } 163 return false 164 } 165 166 func (m *AttestationDomain) GetPolicies() []*AttestationDomain_Policy { 167 if m != nil { 168 return m.Policies 169 } 170 return nil 171 } 172 173 func (m *AttestationDomain) GetEnrollmentList() []*AttestationDomain_EnrolledKey { 174 if m != nil { 175 return m.EnrollmentList 176 } 177 return nil 178 } 179 180 func (m *AttestationDomain) SetName(fv *Name) { 181 if m == nil { 182 panic(fmt.Errorf("can't set %s on nil %s", "Name", "AttestationDomain")) 183 } 184 m.Name = fv 185 } 186 187 func (m *AttestationDomain) SetMetadata(fv *meta.Meta) { 188 if m == nil { 189 panic(fmt.Errorf("can't set %s on nil %s", "Metadata", "AttestationDomain")) 190 } 191 m.Metadata = fv 192 } 193 194 func (m *AttestationDomain) SetDisplayName(fv string) { 195 if m == nil { 196 panic(fmt.Errorf("can't set %s on nil %s", "DisplayName", "AttestationDomain")) 197 } 198 m.DisplayName = fv 199 } 200 201 func (m *AttestationDomain) SetInsecureSkipManufacturerEkcertVerification(fv bool) { 202 if m == nil { 203 panic(fmt.Errorf("can't set %s on nil %s", "InsecureSkipManufacturerEkcertVerification", "AttestationDomain")) 204 } 205 m.InsecureSkipManufacturerEkcertVerification = fv 206 } 207 208 func (m *AttestationDomain) SetPolicies(fv []*AttestationDomain_Policy) { 209 if m == nil { 210 panic(fmt.Errorf("can't set %s on nil %s", "Policies", "AttestationDomain")) 211 } 212 m.Policies = fv 213 } 214 215 func (m *AttestationDomain) SetEnrollmentList(fv []*AttestationDomain_EnrolledKey) { 216 if m == nil { 217 panic(fmt.Errorf("can't set %s on nil %s", "EnrollmentList", "AttestationDomain")) 218 } 219 m.EnrollmentList = fv 220 } 221 222 // Policy defines a singular attestation policy, that should match a 223 // homogenous class of device (i.e. hardware and firmware configuration) in 224 // the fleet. 225 type AttestationDomain_Policy struct { 226 state protoimpl.MessageState 227 sizeCache protoimpl.SizeCache 228 unknownFields protoimpl.UnknownFields 229 // List of acceptable manufacturer's root CAs certs (in PEM format). 230 // 231 // To obtain such a cert, run something like: 232 // `tpm2_getekcertificate -o cert.bin` 233 // `openssl x509 -inform der -in cert.bin -noout -text` 234 // Then manually download certificate specified in Authority Information 235 // Access (AIA). Repeat the above `openssl` command on the newly 236 // downloadedfile (change the value of `-in` argument). Continue this until 237 // you reach a certificate which does not have AIA. It's the root 238 // certificate. Convert it to PEM like so: `openssl x509 -inform der -in 239 // root.crt -out root.pem` Still, we need to encode newlines: `awk 'NF 240 // {sub(/\r/, ""); printf "%s\\n",$0;}' root.pem` Then paste the output 241 // here. 242 // 243 // Note: multiple PEM certificates may be included here by simple means of 244 // concatenation. 245 ManufacturerRootCaCertsPem string `protobuf:"bytes,1,opt,name=manufacturer_root_ca_certs_pem,json=manufacturerRootCaCertsPem,proto3" json:"manufacturer_root_ca_certs_pem,omitempty"` 246 // If true, the attestee's pubkey SHALL be present on this 247 // AttestationDomain's enrollment list, otherwise fail the attestation. 248 RequireEnrollment bool `protobuf:"varint,2,opt,name=require_enrollment,json=requireEnrollment,proto3" json:"require_enrollment,omitempty"` 249 // If true, the verifier SHALL parse, replay and verify TPM event log 250 // provided by the atestee, otherwise fail the attestation. 251 // Note that requiring verification of event does not provide additional 252 // security. See 253 // https://github.com/google/go-attestation/blob/master/docs/event-log-disclosure.md#event-type-and-verification-footguns 254 VerifyEventLog bool `protobuf:"varint,3,opt,name=verify_event_log,json=verifyEventLog,proto3" json:"verify_event_log,omitempty"` 255 // List of expected PCR values. 256 // All PCRs on this list SHALL match exactly the PCRs provided by the 257 // atestee, otherwise the attestation SHALL be failed. The verifier SHALL 258 // perform sanity checks: PCR index/digest pairs are unique and the size of 259 // the list is sane (TODO). 260 // They can be read from TPM by running something like `tpm2_pcrread`. 261 ExpectedPcrs []*iam_common.PCR `protobuf:"bytes,4,rep,name=expected_pcrs,json=expectedPcrs,proto3" json:"expected_pcrs,omitempty"` 262 } 263 264 func (m *AttestationDomain_Policy) Reset() { 265 *m = AttestationDomain_Policy{} 266 if protoimpl.UnsafeEnabled { 267 mi := &edgelq_iam_proto_v1_attestation_domain_proto_msgTypes[1] 268 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 269 ms.StoreMessageInfo(mi) 270 } 271 } 272 273 func (m *AttestationDomain_Policy) String() string { 274 return protoimpl.X.MessageStringOf(m) 275 } 276 277 func (*AttestationDomain_Policy) ProtoMessage() {} 278 279 func (m *AttestationDomain_Policy) ProtoReflect() preflect.Message { 280 mi := &edgelq_iam_proto_v1_attestation_domain_proto_msgTypes[1] 281 if protoimpl.UnsafeEnabled && m != nil { 282 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 283 if ms.LoadMessageInfo() == nil { 284 ms.StoreMessageInfo(mi) 285 } 286 return ms 287 } 288 return mi.MessageOf(m) 289 } 290 291 func (*AttestationDomain_Policy) GotenMessage() {} 292 293 // Deprecated, Use AttestationDomain_Policy.ProtoReflect.Descriptor instead. 294 func (*AttestationDomain_Policy) Descriptor() ([]byte, []int) { 295 return edgelq_iam_proto_v1_attestation_domain_proto_rawDescGZIP(), []int{0, 0} 296 } 297 298 func (m *AttestationDomain_Policy) Unmarshal(b []byte) error { 299 return proto.Unmarshal(b, m) 300 } 301 302 func (m *AttestationDomain_Policy) Marshal() ([]byte, error) { 303 return proto.Marshal(m) 304 } 305 306 func (m *AttestationDomain_Policy) MarshalJSON() ([]byte, error) { 307 return protojson.MarshalOptions{}.Marshal(m) 308 } 309 310 func (m *AttestationDomain_Policy) UnmarshalJSON(data []byte) error { 311 return protojson.Unmarshal(data, m) 312 } 313 314 func (m *AttestationDomain_Policy) GetManufacturerRootCaCertsPem() string { 315 if m != nil { 316 return m.ManufacturerRootCaCertsPem 317 } 318 return "" 319 } 320 321 func (m *AttestationDomain_Policy) GetRequireEnrollment() bool { 322 if m != nil { 323 return m.RequireEnrollment 324 } 325 return false 326 } 327 328 func (m *AttestationDomain_Policy) GetVerifyEventLog() bool { 329 if m != nil { 330 return m.VerifyEventLog 331 } 332 return false 333 } 334 335 func (m *AttestationDomain_Policy) GetExpectedPcrs() []*iam_common.PCR { 336 if m != nil { 337 return m.ExpectedPcrs 338 } 339 return nil 340 } 341 342 func (m *AttestationDomain_Policy) SetManufacturerRootCaCertsPem(fv string) { 343 if m == nil { 344 panic(fmt.Errorf("can't set %s on nil %s", "ManufacturerRootCaCertsPem", "AttestationDomain_Policy")) 345 } 346 m.ManufacturerRootCaCertsPem = fv 347 } 348 349 func (m *AttestationDomain_Policy) SetRequireEnrollment(fv bool) { 350 if m == nil { 351 panic(fmt.Errorf("can't set %s on nil %s", "RequireEnrollment", "AttestationDomain_Policy")) 352 } 353 m.RequireEnrollment = fv 354 } 355 356 func (m *AttestationDomain_Policy) SetVerifyEventLog(fv bool) { 357 if m == nil { 358 panic(fmt.Errorf("can't set %s on nil %s", "VerifyEventLog", "AttestationDomain_Policy")) 359 } 360 m.VerifyEventLog = fv 361 } 362 363 func (m *AttestationDomain_Policy) SetExpectedPcrs(fv []*iam_common.PCR) { 364 if m == nil { 365 panic(fmt.Errorf("can't set %s on nil %s", "ExpectedPcrs", "AttestationDomain_Policy")) 366 } 367 m.ExpectedPcrs = fv 368 } 369 370 // EnrolledKey defines an enrolled key. 371 type AttestationDomain_EnrolledKey struct { 372 state protoimpl.MessageState 373 sizeCache protoimpl.SizeCache 374 unknownFields protoimpl.UnknownFields 375 // PEM encoded EK pubkey. 376 // It can be read from TPM by running something like `tpm2_createek -G rsa 377 // -u ek.pub -c key.ctx -f pem`. 378 PubkeyPem string `protobuf:"bytes,1,opt,name=pubkey_pem,json=pubkeyPem,proto3" json:"pubkey_pem,omitempty"` 379 // User's comments for this entry 380 Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` 381 } 382 383 func (m *AttestationDomain_EnrolledKey) Reset() { 384 *m = AttestationDomain_EnrolledKey{} 385 if protoimpl.UnsafeEnabled { 386 mi := &edgelq_iam_proto_v1_attestation_domain_proto_msgTypes[2] 387 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 388 ms.StoreMessageInfo(mi) 389 } 390 } 391 392 func (m *AttestationDomain_EnrolledKey) String() string { 393 return protoimpl.X.MessageStringOf(m) 394 } 395 396 func (*AttestationDomain_EnrolledKey) ProtoMessage() {} 397 398 func (m *AttestationDomain_EnrolledKey) ProtoReflect() preflect.Message { 399 mi := &edgelq_iam_proto_v1_attestation_domain_proto_msgTypes[2] 400 if protoimpl.UnsafeEnabled && m != nil { 401 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m)) 402 if ms.LoadMessageInfo() == nil { 403 ms.StoreMessageInfo(mi) 404 } 405 return ms 406 } 407 return mi.MessageOf(m) 408 } 409 410 func (*AttestationDomain_EnrolledKey) GotenMessage() {} 411 412 // Deprecated, Use AttestationDomain_EnrolledKey.ProtoReflect.Descriptor instead. 413 func (*AttestationDomain_EnrolledKey) Descriptor() ([]byte, []int) { 414 return edgelq_iam_proto_v1_attestation_domain_proto_rawDescGZIP(), []int{0, 1} 415 } 416 417 func (m *AttestationDomain_EnrolledKey) Unmarshal(b []byte) error { 418 return proto.Unmarshal(b, m) 419 } 420 421 func (m *AttestationDomain_EnrolledKey) Marshal() ([]byte, error) { 422 return proto.Marshal(m) 423 } 424 425 func (m *AttestationDomain_EnrolledKey) MarshalJSON() ([]byte, error) { 426 return protojson.MarshalOptions{}.Marshal(m) 427 } 428 429 func (m *AttestationDomain_EnrolledKey) UnmarshalJSON(data []byte) error { 430 return protojson.Unmarshal(data, m) 431 } 432 433 func (m *AttestationDomain_EnrolledKey) GetPubkeyPem() string { 434 if m != nil { 435 return m.PubkeyPem 436 } 437 return "" 438 } 439 440 func (m *AttestationDomain_EnrolledKey) GetComment() string { 441 if m != nil { 442 return m.Comment 443 } 444 return "" 445 } 446 447 func (m *AttestationDomain_EnrolledKey) SetPubkeyPem(fv string) { 448 if m == nil { 449 panic(fmt.Errorf("can't set %s on nil %s", "PubkeyPem", "AttestationDomain_EnrolledKey")) 450 } 451 m.PubkeyPem = fv 452 } 453 454 func (m *AttestationDomain_EnrolledKey) SetComment(fv string) { 455 if m == nil { 456 panic(fmt.Errorf("can't set %s on nil %s", "Comment", "AttestationDomain_EnrolledKey")) 457 } 458 m.Comment = fv 459 } 460 461 var edgelq_iam_proto_v1_attestation_domain_proto preflect.FileDescriptor 462 463 var edgelq_iam_proto_v1_attestation_domain_proto_rawDesc = []byte{ 464 0x0a, 0x2c, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 465 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 466 0x6e, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 467 0x6e, 0x74, 0x74, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 468 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 469 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 470 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 471 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 472 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 473 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 474 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 475 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 476 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72, 477 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 478 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 479 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 480 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 481 0x69, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 482 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 483 0x73, 0x2f, 0x63, 0x6c, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x65, 0x64, 0x67, 484 0x65, 0x6c, 0x71, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 485 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 486 0x6f, 0x1a, 0x16, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6d, 487 0x65, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x65, 0x64, 0x67, 0x65, 0x6c, 488 0x71, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x63, 489 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xce, 0x08, 0x0a, 0x11, 490 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 491 0x6e, 0x12, 0x2d, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 492 0x19, 0xb2, 0xda, 0x21, 0x15, 0x0a, 0x13, 0x0a, 0x11, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 493 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 494 0x12, 0x2d, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 495 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 496 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 497 0x2e, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 498 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xca, 0xc6, 0x27, 0x07, 0x2a, 0x05, 0x22, 0x03, 0x08, 499 0x80, 0x02, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 500 0x62, 0x0a, 0x2e, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x5f, 0x73, 0x6b, 0x69, 0x70, 501 0x5f, 0x6d, 0x61, 0x6e, 0x75, 0x66, 0x61, 0x63, 0x74, 0x75, 0x72, 0x65, 0x72, 0x5f, 0x65, 0x6b, 502 0x63, 0x65, 0x72, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 503 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x2a, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 504 0x65, 0x53, 0x6b, 0x69, 0x70, 0x4d, 0x61, 0x6e, 0x75, 0x66, 0x61, 0x63, 0x74, 0x75, 0x72, 0x65, 505 0x72, 0x45, 0x6b, 0x63, 0x65, 0x72, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 506 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 507 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 508 0x76, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x6f, 509 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x08, 0x70, 0x6f, 0x6c, 510 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x52, 0x0a, 0x0f, 0x65, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 511 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 512 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x65, 513 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x45, 0x6e, 514 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x52, 0x0e, 0x65, 0x6e, 0x72, 0x6f, 0x6c, 515 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0xec, 0x01, 0x0a, 0x06, 0x50, 0x6f, 516 0x6c, 0x69, 0x63, 0x79, 0x12, 0x53, 0x0a, 0x1e, 0x6d, 0x61, 0x6e, 0x75, 0x66, 0x61, 0x63, 0x74, 517 0x75, 0x72, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x63, 0x61, 0x5f, 0x63, 0x65, 0x72, 518 0x74, 0x73, 0x5f, 0x70, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0f, 0xd0, 0xd5, 519 0x22, 0x01, 0xca, 0xc6, 0x27, 0x07, 0x2a, 0x05, 0x52, 0x03, 0xa0, 0x01, 0x01, 0x52, 0x1a, 0x6d, 520 0x61, 0x6e, 0x75, 0x66, 0x61, 0x63, 0x74, 0x75, 0x72, 0x65, 0x72, 0x52, 0x6f, 0x6f, 0x74, 0x43, 521 0x61, 0x43, 0x65, 0x72, 0x74, 0x73, 0x50, 0x65, 0x6d, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x71, 522 0x75, 0x69, 0x72, 0x65, 0x5f, 0x65, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x18, 523 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x45, 0x6e, 524 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x76, 0x65, 0x72, 0x69, 525 0x66, 0x79, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x18, 0x03, 0x20, 0x01, 526 0x28, 0x08, 0x52, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4c, 527 0x6f, 0x67, 0x12, 0x34, 0x0a, 0x0d, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x70, 528 0x63, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 529 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x43, 0x52, 0x52, 0x0c, 0x65, 0x78, 0x70, 0x65, 530 0x63, 0x74, 0x65, 0x64, 0x50, 0x63, 0x72, 0x73, 0x1a, 0x59, 0x0a, 0x0b, 0x45, 0x6e, 0x72, 0x6f, 531 0x6c, 0x6c, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x12, 0x30, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6b, 0x65, 532 0x79, 0x5f, 0x70, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x11, 0xd0, 0xd5, 0x22, 533 0x01, 0xca, 0xc6, 0x27, 0x09, 0x2a, 0x07, 0x52, 0x03, 0xa0, 0x01, 0x01, 0x68, 0x01, 0x52, 0x09, 534 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x50, 0x65, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 535 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 536 0x65, 0x6e, 0x74, 0x3a, 0xe6, 0x02, 0xea, 0x41, 0x5e, 0x0a, 0x20, 0x69, 0x61, 0x6d, 0x2e, 0x65, 537 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 538 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3a, 0x70, 0x72, 0x6f, 539 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 540 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 541 0x6e, 0x73, 0x2f, 0x7b, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 542 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x92, 0xd9, 0x21, 0x33, 0x0a, 0x12, 0x61, 0x74, 0x74, 543 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 544 0x12, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x6f, 0x6d, 0x61, 545 0x69, 0x6e, 0x73, 0x1a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x38, 0x05, 0xb2, 0xdf, 546 0x21, 0x51, 0x0a, 0x4f, 0x0a, 0x4d, 0x0a, 0x0d, 0x62, 0x79, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 547 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 548 0x61, 0x6d, 0x65, 0x1a, 0x27, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 549 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 550 0x69, 0x6f, 0x6e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x2f, 0x2d, 0x2a, 0x05, 0x6d, 0x6f, 551 0x6e, 0x67, 0x6f, 0xda, 0x94, 0x23, 0x08, 0x12, 0x06, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xc2, 552 0x85, 0x2c, 0x69, 0x22, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 553 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x2e, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 554 0x65, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x6d, 0x61, 0x6e, 0x75, 0x66, 0x61, 0x63, 0x74, 0x75, 555 0x72, 0x65, 0x72, 0x5f, 0x65, 0x6b, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 556 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 557 0x73, 0x22, 0x0f, 0x65, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x69, 558 0x73, 0x74, 0x42, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0xbc, 0x02, 0xe8, 559 0xde, 0x21, 0x01, 0xd2, 0xff, 0xd0, 0x02, 0x56, 0x0a, 0x18, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 560 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x6f, 561 0x72, 0x65, 0x12, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 562 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x69, 563 0x61, 0x6d, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x74, 0x74, 0x65, 564 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0xa2, 0x80, 565 0xd1, 0x02, 0x58, 0x0a, 0x19, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 566 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3b, 567 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 568 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x61, 569 0x63, 0x63, 0x65, 0x73, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 570 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 571 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x62, 0x2e, 0x76, 0x31, 0x42, 0x16, 572 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 573 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 574 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 575 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 576 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 577 0x6e, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x3b, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 578 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 579 0x74, 0x6f, 0x33, 580 } 581 582 var ( 583 edgelq_iam_proto_v1_attestation_domain_proto_rawDescOnce sync.Once 584 edgelq_iam_proto_v1_attestation_domain_proto_rawDescData = edgelq_iam_proto_v1_attestation_domain_proto_rawDesc 585 ) 586 587 func edgelq_iam_proto_v1_attestation_domain_proto_rawDescGZIP() []byte { 588 edgelq_iam_proto_v1_attestation_domain_proto_rawDescOnce.Do(func() { 589 edgelq_iam_proto_v1_attestation_domain_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_iam_proto_v1_attestation_domain_proto_rawDescData) 590 }) 591 return edgelq_iam_proto_v1_attestation_domain_proto_rawDescData 592 } 593 594 var edgelq_iam_proto_v1_attestation_domain_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 595 var edgelq_iam_proto_v1_attestation_domain_proto_goTypes = []interface{}{ 596 (*AttestationDomain)(nil), // 0: ntt.iam.v1.AttestationDomain 597 (*AttestationDomain_Policy)(nil), // 1: ntt.iam.v1.AttestationDomain.Policy 598 (*AttestationDomain_EnrolledKey)(nil), // 2: ntt.iam.v1.AttestationDomain.EnrolledKey 599 (*meta.Meta)(nil), // 3: goten.types.Meta 600 (*iam_common.PCR)(nil), // 4: ntt.iam.v1.PCR 601 } 602 var edgelq_iam_proto_v1_attestation_domain_proto_depIdxs = []int32{ 603 3, // 0: ntt.iam.v1.AttestationDomain.metadata:type_name -> goten.types.Meta 604 1, // 1: ntt.iam.v1.AttestationDomain.policies:type_name -> ntt.iam.v1.AttestationDomain.Policy 605 2, // 2: ntt.iam.v1.AttestationDomain.enrollment_list:type_name -> ntt.iam.v1.AttestationDomain.EnrolledKey 606 4, // 3: ntt.iam.v1.AttestationDomain.Policy.expected_pcrs:type_name -> ntt.iam.v1.PCR 607 4, // [4:4] is the sub-list for method output_type 608 4, // [4:4] is the sub-list for method input_type 609 4, // [4:4] is the sub-list for extension type_name 610 4, // [4:4] is the sub-list for extension extendee 611 0, // [0:4] is the sub-list for field type_name 612 } 613 614 func init() { edgelq_iam_proto_v1_attestation_domain_proto_init() } 615 func edgelq_iam_proto_v1_attestation_domain_proto_init() { 616 if edgelq_iam_proto_v1_attestation_domain_proto != nil { 617 return 618 } 619 if !protoimpl.UnsafeEnabled { 620 621 edgelq_iam_proto_v1_attestation_domain_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 622 switch v := v.(*AttestationDomain); i { 623 case 0: 624 return &v.state 625 case 1: 626 return &v.sizeCache 627 case 2: 628 return &v.unknownFields 629 default: 630 return nil 631 } 632 } 633 edgelq_iam_proto_v1_attestation_domain_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 634 switch v := v.(*AttestationDomain_Policy); i { 635 case 0: 636 return &v.state 637 case 1: 638 return &v.sizeCache 639 case 2: 640 return &v.unknownFields 641 default: 642 return nil 643 } 644 } 645 edgelq_iam_proto_v1_attestation_domain_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 646 switch v := v.(*AttestationDomain_EnrolledKey); i { 647 case 0: 648 return &v.state 649 case 1: 650 return &v.sizeCache 651 case 2: 652 return &v.unknownFields 653 default: 654 return nil 655 } 656 } 657 } 658 659 type x struct{} 660 out := protoimpl.TypeBuilder{ 661 File: protoimpl.DescBuilder{ 662 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 663 RawDescriptor: edgelq_iam_proto_v1_attestation_domain_proto_rawDesc, 664 NumEnums: 0, 665 NumMessages: 3, 666 NumExtensions: 0, 667 NumServices: 0, 668 }, 669 GoTypes: edgelq_iam_proto_v1_attestation_domain_proto_goTypes, 670 DependencyIndexes: edgelq_iam_proto_v1_attestation_domain_proto_depIdxs, 671 MessageInfos: edgelq_iam_proto_v1_attestation_domain_proto_msgTypes, 672 }.Build() 673 edgelq_iam_proto_v1_attestation_domain_proto = out.File 674 edgelq_iam_proto_v1_attestation_domain_proto_rawDesc = nil 675 edgelq_iam_proto_v1_attestation_domain_proto_goTypes = nil 676 edgelq_iam_proto_v1_attestation_domain_proto_depIdxs = nil 677 }