diff --git a/Makefile b/Makefile index 777a879..f60e017 100644 --- a/Makefile +++ b/Makefile @@ -4,12 +4,12 @@ SRC=$(shell find . -type f -name '*.go') # protoc-gen-go constraints GEN_GO_BIN ?= protoc-gen-go -GEN_GO_MIN_VERSION ?= 1.31.0 +GEN_GO_MIN_VERSION ?= 1.36.1 GEN_GO_VERSION ?= $(shell $(GEN_GO_BIN) --version | awk -F ' v' '{print $$NF}') # protoc-gen-go-grpc constraints GEN_GRPC_BIN ?= protoc-gen-go-grpc -GEN_GRPC_MIN_VERSION ?= 1.3.0 +GEN_GRPC_MIN_VERSION ?= 1.5.1 GEN_GRPC_VERSION ?= $(shell $(GEN_GRPC_BIN) --version | awk -F ' ' '{print $$NF}') all: lint generate test @@ -32,6 +32,8 @@ bootstra%: $Q curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin v1.49.0 $Q go install golang.org/x/vuln/cmd/govulncheck@latest $Q go install gotest.tools/gotestsum@v1.8.1 + $Q go install -mod=readonly google.golang.org/protobuf/cmd/protoc-gen-go + $Q go install -mod=readonly google.golang.org/grpc/cmd/protoc-gen-go-grpc .PHONY: bootstrap @@ -73,12 +75,13 @@ generate: check-gen-go-version check-gen-grpc-version -delete @# generate the corresponding protobufs & gRPC code files - find spec -type f -name "*.proto" -print0 | xargs -0 protoc \ + $Q protoc \ --proto_path=spec \ - --go_opt=paths=source_relative \ - --go_out=.. \ - --go-grpc_opt=paths=source_relative \ - --go-grpc_out=.. + --go_opt=module=github.com/smallstep/linkedca \ + --go_out=. \ + --go-grpc_opt=module=github.com/smallstep/linkedca \ + --go-grpc_out=. \ + $(shell find spec -type f -name "*.proto") .PHONY: generate diff --git a/admin.pb.go b/admin.pb.go index dfc85bf..6dcff3f 100644 --- a/admin.pb.go +++ b/admin.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.1 -// protoc v5.28.2 +// protoc-gen-go v1.36.1 +// protoc v5.29.2 // source: linkedca/admin.proto package linkedca @@ -71,10 +71,7 @@ func (Admin_Type) EnumDescriptor() ([]byte, []int) { } type Admin struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` AuthorityId string `protobuf:"bytes,2,opt,name=authority_id,json=authorityId,proto3" json:"authority_id,omitempty"` Subject string `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"` @@ -82,6 +79,8 @@ type Admin struct { Type Admin_Type `protobuf:"varint,5,opt,name=type,proto3,enum=linkedca.Admin_Type" json:"type,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` DeletedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Admin) Reset() { @@ -164,11 +163,10 @@ func (x *Admin) GetDeletedAt() *timestamppb.Timestamp { } type AdminList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Admins []*Admin `protobuf:"bytes,1,rep,name=admins,proto3" json:"admins,omitempty"` unknownFields protoimpl.UnknownFields - - Admins []*Admin `protobuf:"bytes,1,rep,name=admins,proto3" json:"admins,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AdminList) Reset() { @@ -239,9 +237,9 @@ var file_linkedca_admin_proto_rawDesc = []byte{ 0x22, 0x34, 0x0a, 0x09, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x06, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x63, 0x61, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x06, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x73, 0x42, 0x15, 0x5a, 0x13, 0x67, 0x6f, 0x2e, 0x73, 0x74, 0x65, - 0x70, 0x2e, 0x73, 0x6d, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x63, 0x61, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x73, 0x42, 0x1f, 0x5a, 0x1d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6d, 0x61, 0x6c, 0x6c, 0x73, 0x74, 0x65, 0x70, 0x2f, 0x6c, + 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x63, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/config.pb.go b/config.pb.go index 76931fe..0b67024 100644 --- a/config.pb.go +++ b/config.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.1 -// protoc v5.28.2 +// protoc-gen-go v1.36.1 +// protoc v5.29.2 // source: linkedca/config.proto package linkedca @@ -411,29 +411,28 @@ func (ConfigTemplate_Type) EnumDescriptor() ([]byte, []int) { // public keys are not present in the ca.json but have been added here to be // used in the initialization of a PKI. type Configuration struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - Root []string `protobuf:"bytes,2,rep,name=root,proto3" json:"root,omitempty"` // pem representation in files - RootKey []string `protobuf:"bytes,3,rep,name=root_key,json=rootKey,proto3" json:"root_key,omitempty"` // pem representation in files - FederatedRoots []string `protobuf:"bytes,4,rep,name=federated_roots,json=federatedRoots,proto3" json:"federated_roots,omitempty"` // pem representation in files - Intermediate string `protobuf:"bytes,5,opt,name=intermediate,proto3" json:"intermediate,omitempty"` // pem representation in files - IntermediateKey string `protobuf:"bytes,6,opt,name=intermediate_key,json=intermediateKey,proto3" json:"intermediate_key,omitempty"` // pem representation in files - Address string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"` - InsecureAddress string `protobuf:"bytes,8,opt,name=insecure_address,json=insecureAddress,proto3" json:"insecure_address,omitempty"` - DnsNames []string `protobuf:"bytes,9,rep,name=dns_names,json=dnsNames,proto3" json:"dns_names,omitempty"` - Ssh *SSH `protobuf:"bytes,10,opt,name=ssh,proto3" json:"ssh,omitempty"` - Kms *KMS `protobuf:"bytes,11,opt,name=kms,proto3" json:"kms,omitempty"` - Logger *structpb.Struct `protobuf:"bytes,12,opt,name=logger,proto3" json:"logger,omitempty"` // json representation - Db *structpb.Struct `protobuf:"bytes,13,opt,name=db,proto3" json:"db,omitempty"` // json representation - Monitoring *structpb.Struct `protobuf:"bytes,14,opt,name=monitoring,proto3" json:"monitoring,omitempty"` // json representation - Authority *Authority `protobuf:"bytes,15,opt,name=authority,proto3" json:"authority,omitempty"` - Tls *TLS `protobuf:"bytes,16,opt,name=tls,proto3" json:"tls,omitempty"` - Templates *ConfigTemplates `protobuf:"bytes,17,opt,name=templates,proto3" json:"templates,omitempty"` - Password []byte `protobuf:"bytes,18,opt,name=password,proto3" json:"password,omitempty"` - Files map[string][]byte `protobuf:"bytes,19,rep,name=files,proto3" json:"files,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + state protoimpl.MessageState `protogen:"open.v1"` + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + Root []string `protobuf:"bytes,2,rep,name=root,proto3" json:"root,omitempty"` // pem representation in files + RootKey []string `protobuf:"bytes,3,rep,name=root_key,json=rootKey,proto3" json:"root_key,omitempty"` // pem representation in files + FederatedRoots []string `protobuf:"bytes,4,rep,name=federated_roots,json=federatedRoots,proto3" json:"federated_roots,omitempty"` // pem representation in files + Intermediate string `protobuf:"bytes,5,opt,name=intermediate,proto3" json:"intermediate,omitempty"` // pem representation in files + IntermediateKey string `protobuf:"bytes,6,opt,name=intermediate_key,json=intermediateKey,proto3" json:"intermediate_key,omitempty"` // pem representation in files + Address string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"` + InsecureAddress string `protobuf:"bytes,8,opt,name=insecure_address,json=insecureAddress,proto3" json:"insecure_address,omitempty"` + DnsNames []string `protobuf:"bytes,9,rep,name=dns_names,json=dnsNames,proto3" json:"dns_names,omitempty"` + Ssh *SSH `protobuf:"bytes,10,opt,name=ssh,proto3" json:"ssh,omitempty"` + Kms *KMS `protobuf:"bytes,11,opt,name=kms,proto3" json:"kms,omitempty"` + Logger *structpb.Struct `protobuf:"bytes,12,opt,name=logger,proto3" json:"logger,omitempty"` // json representation + Db *structpb.Struct `protobuf:"bytes,13,opt,name=db,proto3" json:"db,omitempty"` // json representation + Monitoring *structpb.Struct `protobuf:"bytes,14,opt,name=monitoring,proto3" json:"monitoring,omitempty"` // json representation + Authority *Authority `protobuf:"bytes,15,opt,name=authority,proto3" json:"authority,omitempty"` + Tls *TLS `protobuf:"bytes,16,opt,name=tls,proto3" json:"tls,omitempty"` + Templates *ConfigTemplates `protobuf:"bytes,17,opt,name=templates,proto3" json:"templates,omitempty"` + Password []byte `protobuf:"bytes,18,opt,name=password,proto3" json:"password,omitempty"` + Files map[string][]byte `protobuf:"bytes,19,rep,name=files,proto3" json:"files,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Configuration) Reset() { @@ -602,14 +601,13 @@ func (x *Configuration) GetFiles() map[string][]byte { // Defaults is the proto representation of the defaults.json, this file can be // extended, so it will only contain the default fields. type Defaults struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CaUrl string `protobuf:"bytes,1,opt,name=ca_url,json=caUrl,proto3" json:"ca_url,omitempty"` + CaConfig string `protobuf:"bytes,2,opt,name=ca_config,json=caConfig,proto3" json:"ca_config,omitempty"` + Fingerprint string `protobuf:"bytes,3,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` + Root string `protobuf:"bytes,4,opt,name=root,proto3" json:"root,omitempty"` unknownFields protoimpl.UnknownFields - - CaUrl string `protobuf:"bytes,1,opt,name=ca_url,json=caUrl,proto3" json:"ca_url,omitempty"` - CaConfig string `protobuf:"bytes,2,opt,name=ca_config,json=caConfig,proto3" json:"ca_config,omitempty"` - Fingerprint string `protobuf:"bytes,3,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` - Root string `protobuf:"bytes,4,opt,name=root,proto3" json:"root,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Defaults) Reset() { @@ -671,10 +669,7 @@ func (x *Defaults) GetRoot() string { } type Authority struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Authority id. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // CAS specific properties. @@ -693,6 +688,8 @@ type Authority struct { Backdate string `protobuf:"bytes,13,opt,name=backdate,proto3" json:"backdate,omitempty"` DeploymentType string `protobuf:"bytes,14,opt,name=deployment_type,json=deploymentType,proto3" json:"deployment_type,omitempty"` Policy *Policy `protobuf:"bytes,15,opt,name=policy,proto3" json:"policy,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Authority) Reset() { @@ -831,18 +828,17 @@ func (x *Authority) GetPolicy() *Policy { } type DistinguishedName struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"` - Organization string `protobuf:"bytes,2,opt,name=organization,proto3" json:"organization,omitempty"` - OrganizationalUnit string `protobuf:"bytes,3,opt,name=organizational_unit,json=organizationalUnit,proto3" json:"organizational_unit,omitempty"` - Locality string `protobuf:"bytes,4,opt,name=locality,proto3" json:"locality,omitempty"` - Province string `protobuf:"bytes,5,opt,name=province,proto3" json:"province,omitempty"` - StreetAddress string `protobuf:"bytes,6,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` - SerialNumber string `protobuf:"bytes,7,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"` - CommonName string `protobuf:"bytes,8,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"` + Organization string `protobuf:"bytes,2,opt,name=organization,proto3" json:"organization,omitempty"` + OrganizationalUnit string `protobuf:"bytes,3,opt,name=organizational_unit,json=organizationalUnit,proto3" json:"organizational_unit,omitempty"` + Locality string `protobuf:"bytes,4,opt,name=locality,proto3" json:"locality,omitempty"` + Province string `protobuf:"bytes,5,opt,name=province,proto3" json:"province,omitempty"` + StreetAddress string `protobuf:"bytes,6,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` + SerialNumber string `protobuf:"bytes,7,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"` + CommonName string `protobuf:"bytes,8,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DistinguishedName) Reset() { @@ -932,15 +928,14 @@ func (x *DistinguishedName) GetCommonName() string { } type CertificateIssuer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Type CertificateIssuer_Type `protobuf:"varint,1,opt,name=type,proto3,enum=linkedca.CertificateIssuer_Type" json:"type,omitempty"` + Provisioner string `protobuf:"bytes,2,opt,name=provisioner,proto3" json:"provisioner,omitempty"` + Certificate string `protobuf:"bytes,3,opt,name=certificate,proto3" json:"certificate,omitempty"` + Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` + Password []byte `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` unknownFields protoimpl.UnknownFields - - Type CertificateIssuer_Type `protobuf:"varint,1,opt,name=type,proto3,enum=linkedca.CertificateIssuer_Type" json:"type,omitempty"` - Provisioner string `protobuf:"bytes,2,opt,name=provisioner,proto3" json:"provisioner,omitempty"` - Certificate string `protobuf:"bytes,3,opt,name=certificate,proto3" json:"certificate,omitempty"` - Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` - Password []byte `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CertificateIssuer) Reset() { @@ -1009,18 +1004,17 @@ func (x *CertificateIssuer) GetPassword() []byte { } type SSH struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - HostKey string `protobuf:"bytes,1,opt,name=host_key,json=hostKey,proto3" json:"host_key,omitempty"` // pem representation in files - UserKey string `protobuf:"bytes,2,opt,name=user_key,json=userKey,proto3" json:"user_key,omitempty"` // pem representation in files - HostPublicKey string `protobuf:"bytes,3,opt,name=host_public_key,json=hostPublicKey,proto3" json:"host_public_key,omitempty"` // ssh representation in files - UserPublicKey string `protobuf:"bytes,4,opt,name=user_public_key,json=userPublicKey,proto3" json:"user_public_key,omitempty"` // ssh representation in files - Keys []*SSHPublicKey `protobuf:"bytes,5,rep,name=keys,proto3" json:"keys,omitempty"` - AddUserPrincipal string `protobuf:"bytes,6,opt,name=add_user_principal,json=addUserPrincipal,proto3" json:"add_user_principal,omitempty"` - AddUserCommand string `protobuf:"bytes,7,opt,name=add_user_command,json=addUserCommand,proto3" json:"add_user_command,omitempty"` - Bastion *Bastion `protobuf:"bytes,8,opt,name=bastion,proto3" json:"bastion,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + HostKey string `protobuf:"bytes,1,opt,name=host_key,json=hostKey,proto3" json:"host_key,omitempty"` // pem representation in files + UserKey string `protobuf:"bytes,2,opt,name=user_key,json=userKey,proto3" json:"user_key,omitempty"` // pem representation in files + HostPublicKey string `protobuf:"bytes,3,opt,name=host_public_key,json=hostPublicKey,proto3" json:"host_public_key,omitempty"` // ssh representation in files + UserPublicKey string `protobuf:"bytes,4,opt,name=user_public_key,json=userPublicKey,proto3" json:"user_public_key,omitempty"` // ssh representation in files + Keys []*SSHPublicKey `protobuf:"bytes,5,rep,name=keys,proto3" json:"keys,omitempty"` + AddUserPrincipal string `protobuf:"bytes,6,opt,name=add_user_principal,json=addUserPrincipal,proto3" json:"add_user_principal,omitempty"` + AddUserCommand string `protobuf:"bytes,7,opt,name=add_user_command,json=addUserCommand,proto3" json:"add_user_command,omitempty"` + Bastion *Bastion `protobuf:"bytes,8,opt,name=bastion,proto3" json:"bastion,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SSH) Reset() { @@ -1110,13 +1104,12 @@ func (x *SSH) GetBastion() *Bastion { } type SSHPublicKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Type SSHPublicKey_Type `protobuf:"varint,1,opt,name=type,proto3,enum=linkedca.SSHPublicKey_Type" json:"type,omitempty"` + Federated bool `protobuf:"varint,2,opt,name=federated,proto3" json:"federated,omitempty"` + Key *structpb.Struct `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` unknownFields protoimpl.UnknownFields - - Type SSHPublicKey_Type `protobuf:"varint,1,opt,name=type,proto3,enum=linkedca.SSHPublicKey_Type" json:"type,omitempty"` - Federated bool `protobuf:"varint,2,opt,name=federated,proto3" json:"federated,omitempty"` - Key *structpb.Struct `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SSHPublicKey) Reset() { @@ -1171,15 +1164,14 @@ func (x *SSHPublicKey) GetKey() *structpb.Struct { } type Bastion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` + User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` + Port string `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"` + Command string `protobuf:"bytes,4,opt,name=command,proto3" json:"command,omitempty"` + Flags string `protobuf:"bytes,5,opt,name=flags,proto3" json:"flags,omitempty"` unknownFields protoimpl.UnknownFields - - Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` - User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` - Port string `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"` - Command string `protobuf:"bytes,4,opt,name=command,proto3" json:"command,omitempty"` - Flags string `protobuf:"bytes,5,opt,name=flags,proto3" json:"flags,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Bastion) Reset() { @@ -1248,17 +1240,16 @@ func (x *Bastion) GetFlags() string { } type KMS struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type KMS_Type `protobuf:"varint,1,opt,name=type,proto3,enum=linkedca.KMS_Type" json:"type,omitempty"` - CredentialsFile string `protobuf:"bytes,2,opt,name=credentialsFile,proto3" json:"credentialsFile,omitempty"` - Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` - Pin string `protobuf:"bytes,4,opt,name=pin,proto3" json:"pin,omitempty"` - ManagementKey string `protobuf:"bytes,5,opt,name=managementKey,proto3" json:"managementKey,omitempty"` - Region string `protobuf:"bytes,6,opt,name=region,proto3" json:"region,omitempty"` - Profile string `protobuf:"bytes,7,opt,name=profile,proto3" json:"profile,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Type KMS_Type `protobuf:"varint,1,opt,name=type,proto3,enum=linkedca.KMS_Type" json:"type,omitempty"` + CredentialsFile string `protobuf:"bytes,2,opt,name=credentialsFile,proto3" json:"credentialsFile,omitempty"` + Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` + Pin string `protobuf:"bytes,4,opt,name=pin,proto3" json:"pin,omitempty"` + ManagementKey string `protobuf:"bytes,5,opt,name=managementKey,proto3" json:"managementKey,omitempty"` + Region string `protobuf:"bytes,6,opt,name=region,proto3" json:"region,omitempty"` + Profile string `protobuf:"bytes,7,opt,name=profile,proto3" json:"profile,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *KMS) Reset() { @@ -1341,14 +1332,13 @@ func (x *KMS) GetProfile() string { } type TLS struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CipherSuites []TLS_CiperSuite `protobuf:"varint,1,rep,packed,name=cipher_suites,json=cipherSuites,proto3,enum=linkedca.TLS_CiperSuite" json:"cipher_suites,omitempty"` + MinVersion string `protobuf:"bytes,2,opt,name=min_version,json=minVersion,proto3" json:"min_version,omitempty"` + MaxVersion string `protobuf:"bytes,3,opt,name=max_version,json=maxVersion,proto3" json:"max_version,omitempty"` + Renegotiation bool `protobuf:"varint,4,opt,name=renegotiation,proto3" json:"renegotiation,omitempty"` unknownFields protoimpl.UnknownFields - - CipherSuites []TLS_CiperSuite `protobuf:"varint,1,rep,packed,name=cipher_suites,json=cipherSuites,proto3,enum=linkedca.TLS_CiperSuite" json:"cipher_suites,omitempty"` - MinVersion string `protobuf:"bytes,2,opt,name=min_version,json=minVersion,proto3" json:"min_version,omitempty"` - MaxVersion string `protobuf:"bytes,3,opt,name=max_version,json=maxVersion,proto3" json:"max_version,omitempty"` - Renegotiation bool `protobuf:"varint,4,opt,name=renegotiation,proto3" json:"renegotiation,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TLS) Reset() { @@ -1410,12 +1400,11 @@ func (x *TLS) GetRenegotiation() bool { } type ConfigTemplates struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Ssh *SSHConfigTemplate `protobuf:"bytes,1,opt,name=ssh,proto3" json:"ssh,omitempty"` + Data *structpb.Struct `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Ssh *SSHConfigTemplate `protobuf:"bytes,1,opt,name=ssh,proto3" json:"ssh,omitempty"` - Data *structpb.Struct `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ConfigTemplates) Reset() { @@ -1463,12 +1452,11 @@ func (x *ConfigTemplates) GetData() *structpb.Struct { } type SSHConfigTemplate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Users []*ConfigTemplate `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` + Hosts []*ConfigTemplate `protobuf:"bytes,2,rep,name=hosts,proto3" json:"hosts,omitempty"` unknownFields protoimpl.UnknownFields - - Users []*ConfigTemplate `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` - Hosts []*ConfigTemplate `protobuf:"bytes,2,rep,name=hosts,proto3" json:"hosts,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SSHConfigTemplate) Reset() { @@ -1516,17 +1504,16 @@ func (x *SSHConfigTemplate) GetHosts() []*ConfigTemplate { } type ConfigTemplate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Type ConfigTemplate_Type `protobuf:"varint,1,opt,name=type,proto3,enum=linkedca.ConfigTemplate_Type" json:"type,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Template string `protobuf:"bytes,3,opt,name=template,proto3" json:"template,omitempty"` + Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` + Comment string `protobuf:"bytes,5,opt,name=comment,proto3" json:"comment,omitempty"` + Requires []string `protobuf:"bytes,6,rep,name=requires,proto3" json:"requires,omitempty"` + Content []byte `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"` unknownFields protoimpl.UnknownFields - - Type ConfigTemplate_Type `protobuf:"varint,1,opt,name=type,proto3,enum=linkedca.ConfigTemplate_Type" json:"type,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Template string `protobuf:"bytes,3,opt,name=template,proto3" json:"template,omitempty"` - Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` - Comment string `protobuf:"bytes,5,opt,name=comment,proto3" json:"comment,omitempty"` - Requires []string `protobuf:"bytes,6,rep,name=requires,proto3" json:"requires,omitempty"` - Content []byte `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ConfigTemplate) Reset() { @@ -1926,9 +1913,10 @@ var file_linkedca_config_proto_rawDesc = []byte{ 0x6e, 0x74, 0x22, 0x39, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x4e, 0x49, 0x50, 0x50, 0x45, 0x54, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x49, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x0d, - 0x0a, 0x09, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x4f, 0x52, 0x59, 0x10, 0x03, 0x42, 0x15, 0x5a, - 0x13, 0x67, 0x6f, 0x2e, 0x73, 0x74, 0x65, 0x70, 0x2e, 0x73, 0x6d, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, - 0x65, 0x64, 0x63, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x0a, 0x09, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x4f, 0x52, 0x59, 0x10, 0x03, 0x42, 0x1f, 0x5a, + 0x1d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6d, 0x61, 0x6c, + 0x6c, 0x73, 0x74, 0x65, 0x70, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x63, 0x61, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/eab.pb.go b/eab.pb.go index bef16ef..1f1b5b0 100644 --- a/eab.pb.go +++ b/eab.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.1 -// protoc v5.28.2 +// protoc-gen-go v1.36.1 +// protoc v5.29.2 // source: linkedca/eab.proto package linkedca @@ -22,18 +22,17 @@ const ( ) type EABKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // the KeyID + HmacKey []byte `protobuf:"bytes,2,opt,name=hmac_key,json=hmacKey,proto3" json:"hmac_key,omitempty"` // the key bytes + Provisioner string `protobuf:"bytes,3,opt,name=provisioner,proto3" json:"provisioner,omitempty"` // the provisioner for which to create the key + Reference string `protobuf:"bytes,4,opt,name=reference,proto3" json:"reference,omitempty"` // name/reference to the key; can be linked to external system + Account string `protobuf:"bytes,5,opt,name=account,proto3" json:"account,omitempty"` // account the key is bound to + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // time the key was created_at + BoundAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=bound_at,json=boundAt,proto3" json:"bound_at,omitempty"` // time the key was bound to an account + Policy *Policy `protobuf:"bytes,8,opt,name=policy,proto3" json:"policy,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // the KeyID - HmacKey []byte `protobuf:"bytes,2,opt,name=hmac_key,json=hmacKey,proto3" json:"hmac_key,omitempty"` // the key bytes - Provisioner string `protobuf:"bytes,3,opt,name=provisioner,proto3" json:"provisioner,omitempty"` // the provisioner for which to create the key - Reference string `protobuf:"bytes,4,opt,name=reference,proto3" json:"reference,omitempty"` // name/reference to the key; can be linked to external system - Account string `protobuf:"bytes,5,opt,name=account,proto3" json:"account,omitempty"` // account the key is bound to - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // time the key was created_at - BoundAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=bound_at,json=boundAt,proto3" json:"bound_at,omitempty"` // time the key was bound to an account - Policy *Policy `protobuf:"bytes,8,opt,name=policy,proto3" json:"policy,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EABKey) Reset() { @@ -149,9 +148,9 @@ var file_linkedca_eab_proto_rawDesc = []byte{ 0x07, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x41, 0x74, 0x12, 0x28, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x63, 0x61, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x42, 0x15, 0x5a, 0x13, 0x67, 0x6f, 0x2e, 0x73, 0x74, 0x65, 0x70, 0x2e, 0x73, 0x6d, - 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x63, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x63, 0x79, 0x42, 0x1f, 0x5a, 0x1d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x73, 0x6d, 0x61, 0x6c, 0x6c, 0x73, 0x74, 0x65, 0x70, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x65, + 0x64, 0x63, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/go.mod b/go.mod index 1327f4f..57ded0f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module go.step.sm/linkedca +module github.com/smallstep/linkedca go 1.22 @@ -7,6 +7,7 @@ toolchain go1.22.5 require ( github.com/stretchr/testify v1.10.0 google.golang.org/grpc v1.69.2 + google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1 google.golang.org/protobuf v1.36.1 ) diff --git a/go.sum b/go.sum index 6a2ca72..d3ccf7b 100644 --- a/go.sum +++ b/go.sum @@ -34,6 +34,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 h1: google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53/go.mod h1:GX3210XPVPUjJbTUbvwI8f2IpZDMZuPJWDzDuebbviI= google.golang.org/grpc v1.69.2 h1:U3S9QEtbXC0bYNvRtcoklF3xGtLViumSYxWykJS+7AU= google.golang.org/grpc v1.69.2/go.mod h1:vyjdE6jLBI76dgpDojsFGNaHlxdjXN9ghpnd2o7JGZ4= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1 h1:F29+wU6Ee6qgu9TddPgooOdaqsxTMunOoj8KA5yuS5A= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1/go.mod h1:5KF+wpkbTSbGcR9zteSqZV6fqFOWBl4Yde8En8MryZA= google.golang.org/protobuf v1.36.1 h1:yBPeRvTftaleIgM3PZ/WBIZ7XM/eEYAaEyCwvyjq/gk= google.golang.org/protobuf v1.36.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= diff --git a/majordomo.pb.go b/majordomo.pb.go index 8b80578..74af5b3 100644 --- a/majordomo.pb.go +++ b/majordomo.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.1 -// protoc v5.28.2 +// protoc-gen-go v1.36.1 +// protoc v5.29.2 // source: linkedca/majordomo.proto package linkedca @@ -144,13 +144,12 @@ func (RevocationReasonCode) EnumDescriptor() ([]byte, []int) { } type LoginRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AuthorityId string `protobuf:"bytes,1,opt,name=authority_id,json=authorityId,proto3" json:"authority_id,omitempty"` - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - PemCertificateRequest string `protobuf:"bytes,3,opt,name=pem_certificate_request,json=pemCertificateRequest,proto3" json:"pem_certificate_request,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + AuthorityId string `protobuf:"bytes,1,opt,name=authority_id,json=authorityId,proto3" json:"authority_id,omitempty"` + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + PemCertificateRequest string `protobuf:"bytes,3,opt,name=pem_certificate_request,json=pemCertificateRequest,proto3" json:"pem_certificate_request,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LoginRequest) Reset() { @@ -205,12 +204,11 @@ func (x *LoginRequest) GetPemCertificateRequest() string { } type LoginResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PemCertificate string `protobuf:"bytes,1,opt,name=pem_certificate,json=pemCertificate,proto3" json:"pem_certificate,omitempty"` - PemCertificateChain string `protobuf:"bytes,2,opt,name=pem_certificate_chain,json=pemCertificateChain,proto3" json:"pem_certificate_chain,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + PemCertificate string `protobuf:"bytes,1,opt,name=pem_certificate,json=pemCertificate,proto3" json:"pem_certificate,omitempty"` + PemCertificateChain string `protobuf:"bytes,2,opt,name=pem_certificate_chain,json=pemCertificateChain,proto3" json:"pem_certificate_chain,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LoginResponse) Reset() { @@ -258,11 +256,10 @@ func (x *LoginResponse) GetPemCertificateChain() string { } type GetRootCertificateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Fingerprint string `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` unknownFields protoimpl.UnknownFields - - Fingerprint string `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetRootCertificateRequest) Reset() { @@ -303,11 +300,10 @@ func (x *GetRootCertificateRequest) GetFingerprint() string { } type GetRootCertificateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PemCertificate string `protobuf:"bytes,1,opt,name=pem_certificate,json=pemCertificate,proto3" json:"pem_certificate,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + PemCertificate string `protobuf:"bytes,1,opt,name=pem_certificate,json=pemCertificate,proto3" json:"pem_certificate,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetRootCertificateResponse) Reset() { @@ -348,11 +344,10 @@ func (x *GetRootCertificateResponse) GetPemCertificate() string { } type ConfigurationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AuthorityId string `protobuf:"bytes,1,opt,name=authority_id,json=authorityId,proto3" json:"authority_id,omitempty"` unknownFields protoimpl.UnknownFields - - AuthorityId string `protobuf:"bytes,1,opt,name=authority_id,json=authorityId,proto3" json:"authority_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ConfigurationRequest) Reset() { @@ -393,14 +388,13 @@ func (x *ConfigurationRequest) GetAuthorityId() string { } type ConfigurationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Provisioners []*Provisioner `protobuf:"bytes,1,rep,name=provisioners,proto3" json:"provisioners,omitempty"` + Admins []*Admin `protobuf:"bytes,2,rep,name=admins,proto3" json:"admins,omitempty"` + RaConfig *RegistrationAuthorityConfig `protobuf:"bytes,3,opt,name=ra_config,json=raConfig,proto3" json:"ra_config,omitempty"` + ServerConfig *ServerConfiguration `protobuf:"bytes,4,opt,name=server_config,json=serverConfig,proto3" json:"server_config,omitempty"` unknownFields protoimpl.UnknownFields - - Provisioners []*Provisioner `protobuf:"bytes,1,rep,name=provisioners,proto3" json:"provisioners,omitempty"` - Admins []*Admin `protobuf:"bytes,2,rep,name=admins,proto3" json:"admins,omitempty"` - RaConfig *RegistrationAuthorityConfig `protobuf:"bytes,3,opt,name=ra_config,json=raConfig,proto3" json:"ra_config,omitempty"` - ServerConfig *ServerConfiguration `protobuf:"bytes,4,opt,name=server_config,json=serverConfig,proto3" json:"server_config,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ConfigurationResponse) Reset() { @@ -462,12 +456,11 @@ func (x *ConfigurationResponse) GetServerConfig() *ServerConfiguration { } type ServerConfiguration struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + DnsNames []string `protobuf:"bytes,2,rep,name=dns_names,json=dnsNames,proto3" json:"dns_names,omitempty"` unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - DnsNames []string `protobuf:"bytes,2,rep,name=dns_names,json=dnsNames,proto3" json:"dns_names,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ServerConfiguration) Reset() { @@ -515,13 +508,12 @@ func (x *ServerConfiguration) GetDnsNames() []string { } type RegistrationAuthorityConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CaUrl string `protobuf:"bytes,1,opt,name=ca_url,json=caUrl,proto3" json:"ca_url,omitempty"` + Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` + Provisioner *ProvisionerIdentity `protobuf:"bytes,3,opt,name=provisioner,proto3" json:"provisioner,omitempty"` unknownFields protoimpl.UnknownFields - - CaUrl string `protobuf:"bytes,1,opt,name=ca_url,json=caUrl,proto3" json:"ca_url,omitempty"` - Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` - Provisioner *ProvisionerIdentity `protobuf:"bytes,3,opt,name=provisioner,proto3" json:"provisioner,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RegistrationAuthorityConfig) Reset() { @@ -576,12 +568,11 @@ func (x *RegistrationAuthorityConfig) GetProvisioner() *ProvisionerIdentity { } type RegistrationAuthorityProvisioner struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AuthorityId string `protobuf:"bytes,1,opt,name=authority_id,json=authorityId,proto3" json:"authority_id,omitempty"` + Provisioner *ProvisionerIdentity `protobuf:"bytes,2,opt,name=provisioner,proto3" json:"provisioner,omitempty"` unknownFields protoimpl.UnknownFields - - AuthorityId string `protobuf:"bytes,1,opt,name=authority_id,json=authorityId,proto3" json:"authority_id,omitempty"` - Provisioner *ProvisionerIdentity `protobuf:"bytes,2,opt,name=provisioner,proto3" json:"provisioner,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RegistrationAuthorityProvisioner) Reset() { @@ -629,17 +620,16 @@ func (x *RegistrationAuthorityProvisioner) GetProvisioner() *ProvisionerIdentity } type CreateProvisionerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Type Provisioner_Type `protobuf:"varint,1,opt,name=type,proto3,enum=linkedca.Provisioner_Type" json:"type,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Details *ProvisionerDetails `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` + Claims *Claims `protobuf:"bytes,4,opt,name=claims,proto3" json:"claims,omitempty"` + X509Template *Template `protobuf:"bytes,5,opt,name=x509_template,json=x509Template,proto3" json:"x509_template,omitempty"` + SshTemplate *Template `protobuf:"bytes,6,opt,name=ssh_template,json=sshTemplate,proto3" json:"ssh_template,omitempty"` + PreferredId string `protobuf:"bytes,7,opt,name=preferred_id,json=preferredId,proto3" json:"preferred_id,omitempty"` unknownFields protoimpl.UnknownFields - - Type Provisioner_Type `protobuf:"varint,1,opt,name=type,proto3,enum=linkedca.Provisioner_Type" json:"type,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Details *ProvisionerDetails `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` - Claims *Claims `protobuf:"bytes,4,opt,name=claims,proto3" json:"claims,omitempty"` - X509Template *Template `protobuf:"bytes,5,opt,name=x509_template,json=x509Template,proto3" json:"x509_template,omitempty"` - SshTemplate *Template `protobuf:"bytes,6,opt,name=ssh_template,json=sshTemplate,proto3" json:"ssh_template,omitempty"` - PreferredId string `protobuf:"bytes,7,opt,name=preferred_id,json=preferredId,proto3" json:"preferred_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateProvisionerRequest) Reset() { @@ -722,11 +712,10 @@ func (x *CreateProvisionerRequest) GetPreferredId() string { } type GetProvisionerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetProvisionerRequest) Reset() { @@ -767,16 +756,15 @@ func (x *GetProvisionerRequest) GetId() string { } type UpdateProvisionerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Details *ProvisionerDetails `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` + Claims *Claims `protobuf:"bytes,4,opt,name=claims,proto3" json:"claims,omitempty"` + X509Template *Template `protobuf:"bytes,5,opt,name=x509_template,json=x509Template,proto3" json:"x509_template,omitempty"` + SshTemplate *Template `protobuf:"bytes,6,opt,name=ssh_template,json=sshTemplate,proto3" json:"ssh_template,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Details *ProvisionerDetails `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` - Claims *Claims `protobuf:"bytes,4,opt,name=claims,proto3" json:"claims,omitempty"` - X509Template *Template `protobuf:"bytes,5,opt,name=x509_template,json=x509Template,proto3" json:"x509_template,omitempty"` - SshTemplate *Template `protobuf:"bytes,6,opt,name=ssh_template,json=sshTemplate,proto3" json:"ssh_template,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateProvisionerRequest) Reset() { @@ -852,11 +840,10 @@ func (x *UpdateProvisionerRequest) GetSshTemplate() *Template { } type DeleteProvisionerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteProvisionerRequest) Reset() { @@ -897,14 +884,13 @@ func (x *DeleteProvisionerRequest) GetId() string { } type CreateAdminRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` + ProvisionerId string `protobuf:"bytes,2,opt,name=provisioner_id,json=provisionerId,proto3" json:"provisioner_id,omitempty"` + Type Admin_Type `protobuf:"varint,3,opt,name=type,proto3,enum=linkedca.Admin_Type" json:"type,omitempty"` + PreferredId string `protobuf:"bytes,4,opt,name=preferred_id,json=preferredId,proto3" json:"preferred_id,omitempty"` unknownFields protoimpl.UnknownFields - - Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` - ProvisionerId string `protobuf:"bytes,2,opt,name=provisioner_id,json=provisionerId,proto3" json:"provisioner_id,omitempty"` - Type Admin_Type `protobuf:"varint,3,opt,name=type,proto3,enum=linkedca.Admin_Type" json:"type,omitempty"` - PreferredId string `protobuf:"bytes,4,opt,name=preferred_id,json=preferredId,proto3" json:"preferred_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateAdminRequest) Reset() { @@ -966,11 +952,10 @@ func (x *CreateAdminRequest) GetPreferredId() string { } type GetAdminRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetAdminRequest) Reset() { @@ -1011,12 +996,11 @@ func (x *GetAdminRequest) GetId() string { } type UpdateAdminRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Type Admin_Type `protobuf:"varint,2,opt,name=type,proto3,enum=linkedca.Admin_Type" json:"type,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Type Admin_Type `protobuf:"varint,2,opt,name=type,proto3,enum=linkedca.Admin_Type" json:"type,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateAdminRequest) Reset() { @@ -1064,11 +1048,10 @@ func (x *UpdateAdminRequest) GetType() Admin_Type { } type DeleteAdminRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteAdminRequest) Reset() { @@ -1109,10 +1092,7 @@ func (x *DeleteAdminRequest) GetId() string { } type CertificateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` PemCertificate string `protobuf:"bytes,1,opt,name=pem_certificate,json=pemCertificate,proto3" json:"pem_certificate,omitempty"` PemCertificateChain string `protobuf:"bytes,2,opt,name=pem_certificate_chain,json=pemCertificateChain,proto3" json:"pem_certificate_chain,omitempty"` PemParentCertificate string `protobuf:"bytes,3,opt,name=pem_parent_certificate,json=pemParentCertificate,proto3" json:"pem_parent_certificate,omitempty"` @@ -1120,6 +1100,8 @@ type CertificateRequest struct { RaProvisioner *RegistrationAuthorityProvisioner `protobuf:"bytes,5,opt,name=ra_provisioner,json=raProvisioner,proto3" json:"ra_provisioner,omitempty"` EndpointId string `protobuf:"bytes,6,opt,name=endpoint_id,json=endpointId,proto3" json:"endpoint_id,omitempty"` AttestationData *AttestationData `protobuf:"bytes,7,opt,name=attestation_data,json=attestationData,proto3" json:"attestation_data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CertificateRequest) Reset() { @@ -1205,11 +1187,10 @@ func (x *CertificateRequest) GetAttestationData() *AttestationData { // Currently only the permanent identifier (UDID or SerialNumber, not both) is // available. type AttestationData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PermanentIdentifier string `protobuf:"bytes,1,opt,name=permanent_identifier,json=permanentIdentifier,proto3" json:"permanent_identifier,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + PermanentIdentifier string `protobuf:"bytes,1,opt,name=permanent_identifier,json=permanentIdentifier,proto3" json:"permanent_identifier,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AttestationData) Reset() { @@ -1250,11 +1231,10 @@ func (x *AttestationData) GetPermanentIdentifier() string { } type CertificateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CertificateResponse) Reset() { @@ -1295,13 +1275,12 @@ func (x *CertificateResponse) GetId() string { } type SSHCertificateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Certificate string `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` - ParentCertificate string `protobuf:"bytes,2,opt,name=parent_certificate,json=parentCertificate,proto3" json:"parent_certificate,omitempty"` - Provisioner *ProvisionerIdentity `protobuf:"bytes,3,opt,name=provisioner,proto3" json:"provisioner,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Certificate string `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` + ParentCertificate string `protobuf:"bytes,2,opt,name=parent_certificate,json=parentCertificate,proto3" json:"parent_certificate,omitempty"` + Provisioner *ProvisionerIdentity `protobuf:"bytes,3,opt,name=provisioner,proto3" json:"provisioner,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SSHCertificateRequest) Reset() { @@ -1356,11 +1335,10 @@ func (x *SSHCertificateRequest) GetProvisioner() *ProvisionerIdentity { } type SSHCertificateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SSHCertificateResponse) Reset() { @@ -1401,12 +1379,11 @@ func (x *SSHCertificateResponse) GetId() string { } type OneTimeTokenRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Jti string `protobuf:"bytes,1,opt,name=jti,proto3" json:"jti,omitempty"` + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` unknownFields protoimpl.UnknownFields - - Jti string `protobuf:"bytes,1,opt,name=jti,proto3" json:"jti,omitempty"` - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + sizeCache protoimpl.SizeCache } func (x *OneTimeTokenRequest) Reset() { @@ -1454,11 +1431,10 @@ func (x *OneTimeTokenRequest) GetToken() string { } type OneTimeTokenResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *OneTimeTokenResponse) Reset() { @@ -1499,16 +1475,15 @@ func (x *OneTimeTokenResponse) GetId() string { } type RevokeCertificateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Serial string `protobuf:"bytes,1,opt,name=serial,proto3" json:"serial,omitempty"` PemCertificate string `protobuf:"bytes,2,opt,name=pem_certificate,json=pemCertificate,proto3" json:"pem_certificate,omitempty"` Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` ReasonCode RevocationReasonCode `protobuf:"varint,4,opt,name=reason_code,json=reasonCode,proto3,enum=linkedca.RevocationReasonCode" json:"reason_code,omitempty"` Passive bool `protobuf:"varint,5,opt,name=passive,proto3" json:"passive,omitempty"` RevokedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=revoked_at,json=revokedAt,proto3" json:"revoked_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RevokeCertificateRequest) Reset() { @@ -1584,11 +1559,10 @@ func (x *RevokeCertificateRequest) GetRevokedAt() *timestamppb.Timestamp { } type RevokeCertificateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Status RevocationStatus `protobuf:"varint,1,opt,name=status,proto3,enum=linkedca.RevocationStatus" json:"status,omitempty"` unknownFields protoimpl.UnknownFields - - Status RevocationStatus `protobuf:"varint,1,opt,name=status,proto3,enum=linkedca.RevocationStatus" json:"status,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RevokeCertificateResponse) Reset() { @@ -1629,16 +1603,15 @@ func (x *RevokeCertificateResponse) GetStatus() RevocationStatus { } type RevokeSSHCertificateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Serial string `protobuf:"bytes,1,opt,name=serial,proto3" json:"serial,omitempty"` + Certificate string `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` + Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` + ReasonCode RevocationReasonCode `protobuf:"varint,4,opt,name=reason_code,json=reasonCode,proto3,enum=linkedca.RevocationReasonCode" json:"reason_code,omitempty"` + Passive bool `protobuf:"varint,5,opt,name=passive,proto3" json:"passive,omitempty"` + RevokedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=revoked_at,json=revokedAt,proto3" json:"revoked_at,omitempty"` unknownFields protoimpl.UnknownFields - - Serial string `protobuf:"bytes,1,opt,name=serial,proto3" json:"serial,omitempty"` - Certificate string `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` - Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` - ReasonCode RevocationReasonCode `protobuf:"varint,4,opt,name=reason_code,json=reasonCode,proto3,enum=linkedca.RevocationReasonCode" json:"reason_code,omitempty"` - Passive bool `protobuf:"varint,5,opt,name=passive,proto3" json:"passive,omitempty"` - RevokedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=revoked_at,json=revokedAt,proto3" json:"revoked_at,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RevokeSSHCertificateRequest) Reset() { @@ -1714,11 +1687,10 @@ func (x *RevokeSSHCertificateRequest) GetRevokedAt() *timestamppb.Timestamp { } type RevokeSSHCertificateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Status RevocationStatus `protobuf:"varint,1,opt,name=status,proto3,enum=linkedca.RevocationStatus" json:"status,omitempty"` unknownFields protoimpl.UnknownFields - - Status RevocationStatus `protobuf:"varint,1,opt,name=status,proto3,enum=linkedca.RevocationStatus" json:"status,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RevokeSSHCertificateResponse) Reset() { @@ -1759,11 +1731,10 @@ func (x *RevokeSSHCertificateResponse) GetStatus() RevocationStatus { } type GetCertificateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Serial string `protobuf:"bytes,1,opt,name=serial,proto3" json:"serial,omitempty"` unknownFields protoimpl.UnknownFields - - Serial string `protobuf:"bytes,1,opt,name=serial,proto3" json:"serial,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetCertificateRequest) Reset() { @@ -1804,13 +1775,12 @@ func (x *GetCertificateRequest) GetSerial() string { } type GetCertificateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` PemCertificate string `protobuf:"bytes,1,opt,name=pem_certificate,json=pemCertificate,proto3" json:"pem_certificate,omitempty"` Provisioner *ProvisionerIdentity `protobuf:"bytes,2,opt,name=provisioner,proto3" json:"provisioner,omitempty"` RaProvisioner *RegistrationAuthorityProvisioner `protobuf:"bytes,3,opt,name=ra_provisioner,json=raProvisioner,proto3" json:"ra_provisioner,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetCertificateResponse) Reset() { @@ -1865,11 +1835,10 @@ func (x *GetCertificateResponse) GetRaProvisioner() *RegistrationAuthorityProvis } type GetCertificateStatusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Serial string `protobuf:"bytes,1,opt,name=serial,proto3" json:"serial,omitempty"` unknownFields protoimpl.UnknownFields - - Serial string `protobuf:"bytes,1,opt,name=serial,proto3" json:"serial,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetCertificateStatusRequest) Reset() { @@ -1910,14 +1879,13 @@ func (x *GetCertificateStatusRequest) GetSerial() string { } type GetCertificateStatusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Status RevocationStatus `protobuf:"varint,1,opt,name=status,proto3,enum=linkedca.RevocationStatus" json:"status,omitempty"` + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + ReasonCode RevocationReasonCode `protobuf:"varint,3,opt,name=reason_code,json=reasonCode,proto3,enum=linkedca.RevocationReasonCode" json:"reason_code,omitempty"` + RevokedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=revoked_at,json=revokedAt,proto3" json:"revoked_at,omitempty"` unknownFields protoimpl.UnknownFields - - Status RevocationStatus `protobuf:"varint,1,opt,name=status,proto3,enum=linkedca.RevocationStatus" json:"status,omitempty"` - Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` - ReasonCode RevocationReasonCode `protobuf:"varint,3,opt,name=reason_code,json=reasonCode,proto3,enum=linkedca.RevocationReasonCode" json:"reason_code,omitempty"` - RevokedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=revoked_at,json=revokedAt,proto3" json:"revoked_at,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetCertificateStatusResponse) Reset() { @@ -1979,11 +1947,10 @@ func (x *GetCertificateStatusResponse) GetRevokedAt() *timestamppb.Timestamp { } type GetSSHCertificateStatusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Serial string `protobuf:"bytes,1,opt,name=serial,proto3" json:"serial,omitempty"` unknownFields protoimpl.UnknownFields - - Serial string `protobuf:"bytes,1,opt,name=serial,proto3" json:"serial,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetSSHCertificateStatusRequest) Reset() { @@ -2024,14 +1991,13 @@ func (x *GetSSHCertificateStatusRequest) GetSerial() string { } type GetSSHCertificateStatusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Status RevocationStatus `protobuf:"varint,1,opt,name=status,proto3,enum=linkedca.RevocationStatus" json:"status,omitempty"` + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` + ReasonCode RevocationReasonCode `protobuf:"varint,3,opt,name=reason_code,json=reasonCode,proto3,enum=linkedca.RevocationReasonCode" json:"reason_code,omitempty"` + RevokedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=revoked_at,json=revokedAt,proto3" json:"revoked_at,omitempty"` unknownFields protoimpl.UnknownFields - - Status RevocationStatus `protobuf:"varint,1,opt,name=status,proto3,enum=linkedca.RevocationStatus" json:"status,omitempty"` - Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` - ReasonCode RevocationReasonCode `protobuf:"varint,3,opt,name=reason_code,json=reasonCode,proto3,enum=linkedca.RevocationReasonCode" json:"reason_code,omitempty"` - RevokedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=revoked_at,json=revokedAt,proto3" json:"revoked_at,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetSSHCertificateStatusResponse) Reset() { @@ -2498,9 +2464,10 @@ var file_linkedca_majordomo_proto_rawDesc = []byte{ 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x63, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x53, 0x48, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x15, 0x5a, 0x13, 0x67, 0x6f, - 0x2e, 0x73, 0x74, 0x65, 0x70, 0x2e, 0x73, 0x6d, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x63, - 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x1f, 0x5a, 0x1d, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6d, 0x61, 0x6c, 0x6c, 0x73, 0x74, + 0x65, 0x70, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x63, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( diff --git a/majordomo_grpc.pb.go b/majordomo_grpc.pb.go index 4942597..21ea70d 100644 --- a/majordomo_grpc.pb.go +++ b/majordomo_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v5.28.2 +// - protoc v5.29.2 // source: linkedca/majordomo.proto package linkedca diff --git a/policy.pb.go b/policy.pb.go index 621edfa..308441b 100644 --- a/policy.pb.go +++ b/policy.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.1 -// protoc v5.28.2 +// protoc-gen-go v1.36.1 +// protoc v5.29.2 // source: linkedca/policy.proto package linkedca @@ -21,12 +21,11 @@ const ( ) type Policy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + X509 *X509Policy `protobuf:"bytes,1,opt,name=x509,proto3" json:"x509,omitempty"` + Ssh *SSHPolicy `protobuf:"bytes,2,opt,name=ssh,proto3" json:"ssh,omitempty"` unknownFields protoimpl.UnknownFields - - X509 *X509Policy `protobuf:"bytes,1,opt,name=x509,proto3" json:"x509,omitempty"` - Ssh *SSHPolicy `protobuf:"bytes,2,opt,name=ssh,proto3" json:"ssh,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Policy) Reset() { @@ -74,13 +73,12 @@ func (x *Policy) GetSsh() *SSHPolicy { } type X509Policy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Allow *X509Names `protobuf:"bytes,1,opt,name=allow,proto3" json:"allow,omitempty"` - Deny *X509Names `protobuf:"bytes,2,opt,name=deny,proto3" json:"deny,omitempty"` - AllowWildcardNames bool `protobuf:"varint,3,opt,name=allow_wildcard_names,json=allowWildcardNames,proto3" json:"allow_wildcard_names,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Allow *X509Names `protobuf:"bytes,1,opt,name=allow,proto3" json:"allow,omitempty"` + Deny *X509Names `protobuf:"bytes,2,opt,name=deny,proto3" json:"deny,omitempty"` + AllowWildcardNames bool `protobuf:"varint,3,opt,name=allow_wildcard_names,json=allowWildcardNames,proto3" json:"allow_wildcard_names,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *X509Policy) Reset() { @@ -135,12 +133,11 @@ func (x *X509Policy) GetAllowWildcardNames() bool { } type SSHPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Host *SSHHostPolicy `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` + User *SSHUserPolicy `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` unknownFields protoimpl.UnknownFields - - Host *SSHHostPolicy `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` - User *SSHUserPolicy `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SSHPolicy) Reset() { @@ -188,12 +185,11 @@ func (x *SSHPolicy) GetUser() *SSHUserPolicy { } type SSHHostPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Allow *SSHHostNames `protobuf:"bytes,1,opt,name=allow,proto3" json:"allow,omitempty"` + Deny *SSHHostNames `protobuf:"bytes,2,opt,name=deny,proto3" json:"deny,omitempty"` unknownFields protoimpl.UnknownFields - - Allow *SSHHostNames `protobuf:"bytes,1,opt,name=allow,proto3" json:"allow,omitempty"` - Deny *SSHHostNames `protobuf:"bytes,2,opt,name=deny,proto3" json:"deny,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SSHHostPolicy) Reset() { @@ -241,12 +237,11 @@ func (x *SSHHostPolicy) GetDeny() *SSHHostNames { } type SSHUserPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Allow *SSHUserNames `protobuf:"bytes,1,opt,name=allow,proto3" json:"allow,omitempty"` + Deny *SSHUserNames `protobuf:"bytes,2,opt,name=deny,proto3" json:"deny,omitempty"` unknownFields protoimpl.UnknownFields - - Allow *SSHUserNames `protobuf:"bytes,1,opt,name=allow,proto3" json:"allow,omitempty"` - Deny *SSHUserNames `protobuf:"bytes,2,opt,name=deny,proto3" json:"deny,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SSHUserPolicy) Reset() { @@ -294,15 +289,14 @@ func (x *SSHUserPolicy) GetDeny() *SSHUserNames { } type X509Names struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Dns []string `protobuf:"bytes,1,rep,name=dns,proto3" json:"dns,omitempty"` + Ips []string `protobuf:"bytes,2,rep,name=ips,proto3" json:"ips,omitempty"` + Emails []string `protobuf:"bytes,3,rep,name=emails,proto3" json:"emails,omitempty"` + Uris []string `protobuf:"bytes,4,rep,name=uris,proto3" json:"uris,omitempty"` + CommonNames []string `protobuf:"bytes,5,rep,name=common_names,json=commonNames,proto3" json:"common_names,omitempty"` unknownFields protoimpl.UnknownFields - - Dns []string `protobuf:"bytes,1,rep,name=dns,proto3" json:"dns,omitempty"` - Ips []string `protobuf:"bytes,2,rep,name=ips,proto3" json:"ips,omitempty"` - Emails []string `protobuf:"bytes,3,rep,name=emails,proto3" json:"emails,omitempty"` - Uris []string `protobuf:"bytes,4,rep,name=uris,proto3" json:"uris,omitempty"` - CommonNames []string `protobuf:"bytes,5,rep,name=common_names,json=commonNames,proto3" json:"common_names,omitempty"` + sizeCache protoimpl.SizeCache } func (x *X509Names) Reset() { @@ -371,13 +365,12 @@ func (x *X509Names) GetCommonNames() []string { } type SSHHostNames struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Dns []string `protobuf:"bytes,1,rep,name=dns,proto3" json:"dns,omitempty"` + Ips []string `protobuf:"bytes,2,rep,name=ips,proto3" json:"ips,omitempty"` + Principals []string `protobuf:"bytes,3,rep,name=principals,proto3" json:"principals,omitempty"` unknownFields protoimpl.UnknownFields - - Dns []string `protobuf:"bytes,1,rep,name=dns,proto3" json:"dns,omitempty"` - Ips []string `protobuf:"bytes,2,rep,name=ips,proto3" json:"ips,omitempty"` - Principals []string `protobuf:"bytes,3,rep,name=principals,proto3" json:"principals,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SSHHostNames) Reset() { @@ -432,12 +425,11 @@ func (x *SSHHostNames) GetPrincipals() []string { } type SSHUserNames struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Emails []string `protobuf:"bytes,1,rep,name=emails,proto3" json:"emails,omitempty"` + Principals []string `protobuf:"bytes,2,rep,name=principals,proto3" json:"principals,omitempty"` unknownFields protoimpl.UnknownFields - - Emails []string `protobuf:"bytes,1,rep,name=emails,proto3" json:"emails,omitempty"` - Principals []string `protobuf:"bytes,2,rep,name=principals,proto3" json:"principals,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SSHUserNames) Reset() { @@ -541,9 +533,10 @@ var file_linkedca_policy_proto_rawDesc = []byte{ 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, - 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x73, 0x42, 0x15, 0x5a, 0x13, 0x67, 0x6f, - 0x2e, 0x73, 0x74, 0x65, 0x70, 0x2e, 0x73, 0x6d, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x63, - 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x73, 0x42, 0x1f, 0x5a, 0x1d, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6d, 0x61, 0x6c, 0x6c, 0x73, 0x74, + 0x65, 0x70, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x63, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( diff --git a/provisioners.pb.go b/provisioners.pb.go index f30af41..d4d0b50 100644 --- a/provisioners.pb.go +++ b/provisioners.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.1 -// protoc v5.28.2 +// protoc-gen-go v1.36.1 +// protoc v5.29.2 // source: linkedca/provisioners.proto package linkedca @@ -309,22 +309,21 @@ func (Webhook_CertType) EnumDescriptor() ([]byte, []int) { } type Provisioner struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + AuthorityId string `protobuf:"bytes,2,opt,name=authority_id,json=authorityId,proto3" json:"authority_id,omitempty"` + Type Provisioner_Type `protobuf:"varint,3,opt,name=type,proto3,enum=linkedca.Provisioner_Type" json:"type,omitempty"` + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + Details *ProvisionerDetails `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"` + Claims *Claims `protobuf:"bytes,6,opt,name=claims,proto3" json:"claims,omitempty"` + X509Template *Template `protobuf:"bytes,7,opt,name=x509_template,json=x509Template,proto3" json:"x509_template,omitempty"` + SshTemplate *Template `protobuf:"bytes,8,opt,name=ssh_template,json=sshTemplate,proto3" json:"ssh_template,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + DeletedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` + Policy *Policy `protobuf:"bytes,11,opt,name=policy,proto3" json:"policy,omitempty"` + Webhooks []*Webhook `protobuf:"bytes,12,rep,name=webhooks,proto3" json:"webhooks,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - AuthorityId string `protobuf:"bytes,2,opt,name=authority_id,json=authorityId,proto3" json:"authority_id,omitempty"` - Type Provisioner_Type `protobuf:"varint,3,opt,name=type,proto3,enum=linkedca.Provisioner_Type" json:"type,omitempty"` - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - Details *ProvisionerDetails `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"` - Claims *Claims `protobuf:"bytes,6,opt,name=claims,proto3" json:"claims,omitempty"` - X509Template *Template `protobuf:"bytes,7,opt,name=x509_template,json=x509Template,proto3" json:"x509_template,omitempty"` - SshTemplate *Template `protobuf:"bytes,8,opt,name=ssh_template,json=sshTemplate,proto3" json:"ssh_template,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - DeletedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` - Policy *Policy `protobuf:"bytes,11,opt,name=policy,proto3" json:"policy,omitempty"` - Webhooks []*Webhook `protobuf:"bytes,12,rep,name=webhooks,proto3" json:"webhooks,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Provisioner) Reset() { @@ -442,13 +441,12 @@ func (x *Provisioner) GetWebhooks() []*Webhook { } type ProvisionerIdentity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Type Provisioner_Type `protobuf:"varint,2,opt,name=type,proto3,enum=linkedca.Provisioner_Type" json:"type,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Type Provisioner_Type `protobuf:"varint,2,opt,name=type,proto3,enum=linkedca.Provisioner_Type" json:"type,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ProvisionerIdentity) Reset() { @@ -503,11 +501,8 @@ func (x *ProvisionerIdentity) GetName() string { } type ProvisionerDetails struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Data: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Data: // // *ProvisionerDetails_JWK // *ProvisionerDetails_OIDC @@ -520,7 +515,9 @@ type ProvisionerDetails struct { // *ProvisionerDetails_SSHPOP // *ProvisionerDetails_SCEP // *ProvisionerDetails_Nebula - Data isProvisionerDetails_Data `protobuf_oneof:"data"` + Data isProvisionerDetails_Data `protobuf_oneof:"data"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ProvisionerDetails) Reset() { @@ -553,86 +550,108 @@ func (*ProvisionerDetails) Descriptor() ([]byte, []int) { return file_linkedca_provisioners_proto_rawDescGZIP(), []int{2} } -func (m *ProvisionerDetails) GetData() isProvisionerDetails_Data { - if m != nil { - return m.Data +func (x *ProvisionerDetails) GetData() isProvisionerDetails_Data { + if x != nil { + return x.Data } return nil } func (x *ProvisionerDetails) GetJWK() *JWKProvisioner { - if x, ok := x.GetData().(*ProvisionerDetails_JWK); ok { - return x.JWK + if x != nil { + if x, ok := x.Data.(*ProvisionerDetails_JWK); ok { + return x.JWK + } } return nil } func (x *ProvisionerDetails) GetOIDC() *OIDCProvisioner { - if x, ok := x.GetData().(*ProvisionerDetails_OIDC); ok { - return x.OIDC + if x != nil { + if x, ok := x.Data.(*ProvisionerDetails_OIDC); ok { + return x.OIDC + } } return nil } func (x *ProvisionerDetails) GetGCP() *GCPProvisioner { - if x, ok := x.GetData().(*ProvisionerDetails_GCP); ok { - return x.GCP + if x != nil { + if x, ok := x.Data.(*ProvisionerDetails_GCP); ok { + return x.GCP + } } return nil } func (x *ProvisionerDetails) GetAWS() *AWSProvisioner { - if x, ok := x.GetData().(*ProvisionerDetails_AWS); ok { - return x.AWS + if x != nil { + if x, ok := x.Data.(*ProvisionerDetails_AWS); ok { + return x.AWS + } } return nil } func (x *ProvisionerDetails) GetAzure() *AzureProvisioner { - if x, ok := x.GetData().(*ProvisionerDetails_Azure); ok { - return x.Azure + if x != nil { + if x, ok := x.Data.(*ProvisionerDetails_Azure); ok { + return x.Azure + } } return nil } func (x *ProvisionerDetails) GetACME() *ACMEProvisioner { - if x, ok := x.GetData().(*ProvisionerDetails_ACME); ok { - return x.ACME + if x != nil { + if x, ok := x.Data.(*ProvisionerDetails_ACME); ok { + return x.ACME + } } return nil } func (x *ProvisionerDetails) GetX5C() *X5CProvisioner { - if x, ok := x.GetData().(*ProvisionerDetails_X5C); ok { - return x.X5C + if x != nil { + if x, ok := x.Data.(*ProvisionerDetails_X5C); ok { + return x.X5C + } } return nil } func (x *ProvisionerDetails) GetK8SSA() *K8SSAProvisioner { - if x, ok := x.GetData().(*ProvisionerDetails_K8SSA); ok { - return x.K8SSA + if x != nil { + if x, ok := x.Data.(*ProvisionerDetails_K8SSA); ok { + return x.K8SSA + } } return nil } func (x *ProvisionerDetails) GetSSHPOP() *SSHPOPProvisioner { - if x, ok := x.GetData().(*ProvisionerDetails_SSHPOP); ok { - return x.SSHPOP + if x != nil { + if x, ok := x.Data.(*ProvisionerDetails_SSHPOP); ok { + return x.SSHPOP + } } return nil } func (x *ProvisionerDetails) GetSCEP() *SCEPProvisioner { - if x, ok := x.GetData().(*ProvisionerDetails_SCEP); ok { - return x.SCEP + if x != nil { + if x, ok := x.Data.(*ProvisionerDetails_SCEP); ok { + return x.SCEP + } } return nil } func (x *ProvisionerDetails) GetNebula() *NebulaProvisioner { - if x, ok := x.GetData().(*ProvisionerDetails_Nebula); ok { - return x.Nebula + if x != nil { + if x, ok := x.Data.(*ProvisionerDetails_Nebula); ok { + return x.Nebula + } } return nil } @@ -708,11 +727,10 @@ func (*ProvisionerDetails_SCEP) isProvisionerDetails_Data() {} func (*ProvisionerDetails_Nebula) isProvisionerDetails_Data() {} type ProvisionerList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Provisioners []*Provisioner `protobuf:"bytes,1,rep,name=provisioners,proto3" json:"provisioners,omitempty"` unknownFields protoimpl.UnknownFields - - Provisioners []*Provisioner `protobuf:"bytes,1,rep,name=provisioners,proto3" json:"provisioners,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ProvisionerList) Reset() { @@ -753,15 +771,14 @@ func (x *ProvisionerList) GetProvisioners() []*Provisioner { } type Claims struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - X509 *X509Claims `protobuf:"bytes,1,opt,name=x509,proto3" json:"x509,omitempty"` - Ssh *SSHClaims `protobuf:"bytes,2,opt,name=ssh,proto3" json:"ssh,omitempty"` - DisableRenewal bool `protobuf:"varint,3,opt,name=disable_renewal,json=disableRenewal,proto3" json:"disable_renewal,omitempty"` - AllowRenewalAfterExpiry bool `protobuf:"varint,4,opt,name=allow_renewal_after_expiry,json=allowRenewalAfterExpiry,proto3" json:"allow_renewal_after_expiry,omitempty"` - DisableSmallstepExtensions bool `protobuf:"varint,5,opt,name=disable_smallstep_extensions,json=disableSmallstepExtensions,proto3" json:"disable_smallstep_extensions,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + X509 *X509Claims `protobuf:"bytes,1,opt,name=x509,proto3" json:"x509,omitempty"` + Ssh *SSHClaims `protobuf:"bytes,2,opt,name=ssh,proto3" json:"ssh,omitempty"` + DisableRenewal bool `protobuf:"varint,3,opt,name=disable_renewal,json=disableRenewal,proto3" json:"disable_renewal,omitempty"` + AllowRenewalAfterExpiry bool `protobuf:"varint,4,opt,name=allow_renewal_after_expiry,json=allowRenewalAfterExpiry,proto3" json:"allow_renewal_after_expiry,omitempty"` + DisableSmallstepExtensions bool `protobuf:"varint,5,opt,name=disable_smallstep_extensions,json=disableSmallstepExtensions,proto3" json:"disable_smallstep_extensions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Claims) Reset() { @@ -830,12 +847,11 @@ func (x *Claims) GetDisableSmallstepExtensions() bool { } type X509Claims struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` + Durations *Durations `protobuf:"bytes,2,opt,name=durations,proto3" json:"durations,omitempty"` unknownFields protoimpl.UnknownFields - - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - Durations *Durations `protobuf:"bytes,2,opt,name=durations,proto3" json:"durations,omitempty"` + sizeCache protoimpl.SizeCache } func (x *X509Claims) Reset() { @@ -883,13 +899,12 @@ func (x *X509Claims) GetDurations() *Durations { } type SSHClaims struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` + UserDurations *Durations `protobuf:"bytes,2,opt,name=user_durations,json=userDurations,proto3" json:"user_durations,omitempty"` + HostDurations *Durations `protobuf:"bytes,3,opt,name=host_durations,json=hostDurations,proto3" json:"host_durations,omitempty"` unknownFields protoimpl.UnknownFields - - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - UserDurations *Durations `protobuf:"bytes,2,opt,name=user_durations,json=userDurations,proto3" json:"user_durations,omitempty"` - HostDurations *Durations `protobuf:"bytes,3,opt,name=host_durations,json=hostDurations,proto3" json:"host_durations,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SSHClaims) Reset() { @@ -944,13 +959,12 @@ func (x *SSHClaims) GetHostDurations() *Durations { } type Durations struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Default string `protobuf:"bytes,1,opt,name=default,proto3" json:"default,omitempty"` + Min string `protobuf:"bytes,2,opt,name=min,proto3" json:"min,omitempty"` + Max string `protobuf:"bytes,3,opt,name=max,proto3" json:"max,omitempty"` unknownFields protoimpl.UnknownFields - - Default string `protobuf:"bytes,1,opt,name=default,proto3" json:"default,omitempty"` - Min string `protobuf:"bytes,2,opt,name=min,proto3" json:"min,omitempty"` - Max string `protobuf:"bytes,3,opt,name=max,proto3" json:"max,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Durations) Reset() { @@ -1005,12 +1019,11 @@ func (x *Durations) GetMax() string { } type Template struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Template []byte `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Template []byte `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Template) Reset() { @@ -1058,12 +1071,11 @@ func (x *Template) GetData() []byte { } type JWKProvisioner struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - EncryptedPrivateKey []byte `protobuf:"bytes,2,opt,name=encrypted_private_key,json=encryptedPrivateKey,proto3" json:"encrypted_private_key,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + EncryptedPrivateKey []byte `protobuf:"bytes,2,opt,name=encrypted_private_key,json=encryptedPrivateKey,proto3" json:"encrypted_private_key,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *JWKProvisioner) Reset() { @@ -1111,20 +1123,19 @@ func (x *JWKProvisioner) GetEncryptedPrivateKey() []byte { } type OIDCProvisioner struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` - ConfigurationEndpoint string `protobuf:"bytes,3,opt,name=configuration_endpoint,json=configurationEndpoint,proto3" json:"configuration_endpoint,omitempty"` - Admins []string `protobuf:"bytes,4,rep,name=admins,proto3" json:"admins,omitempty"` - Domains []string `protobuf:"bytes,5,rep,name=domains,proto3" json:"domains,omitempty"` - Groups []string `protobuf:"bytes,6,rep,name=groups,proto3" json:"groups,omitempty"` - ListenAddress string `protobuf:"bytes,7,opt,name=listen_address,json=listenAddress,proto3" json:"listen_address,omitempty"` - TenantId string `protobuf:"bytes,8,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` - Scopes []string `protobuf:"bytes,9,rep,name=scopes,proto3" json:"scopes,omitempty"` - AuthParams []string `protobuf:"bytes,10,rep,name=auth_params,json=authParams,proto3" json:"auth_params,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` + ConfigurationEndpoint string `protobuf:"bytes,3,opt,name=configuration_endpoint,json=configurationEndpoint,proto3" json:"configuration_endpoint,omitempty"` + Admins []string `protobuf:"bytes,4,rep,name=admins,proto3" json:"admins,omitempty"` + Domains []string `protobuf:"bytes,5,rep,name=domains,proto3" json:"domains,omitempty"` + Groups []string `protobuf:"bytes,6,rep,name=groups,proto3" json:"groups,omitempty"` + ListenAddress string `protobuf:"bytes,7,opt,name=listen_address,json=listenAddress,proto3" json:"listen_address,omitempty"` + TenantId string `protobuf:"bytes,8,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` + Scopes []string `protobuf:"bytes,9,rep,name=scopes,proto3" json:"scopes,omitempty"` + AuthParams []string `protobuf:"bytes,10,rep,name=auth_params,json=authParams,proto3" json:"auth_params,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *OIDCProvisioner) Reset() { @@ -1228,17 +1239,16 @@ func (x *OIDCProvisioner) GetAuthParams() []string { } type GCPProvisioner struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ServiceAccounts []string `protobuf:"bytes,1,rep,name=service_accounts,json=serviceAccounts,proto3" json:"service_accounts,omitempty"` - ProjectIds []string `protobuf:"bytes,2,rep,name=project_ids,json=projectIds,proto3" json:"project_ids,omitempty"` - DisableCustomSans bool `protobuf:"varint,3,opt,name=disable_custom_sans,json=disableCustomSans,proto3" json:"disable_custom_sans,omitempty"` - DisableTrustOnFirstUse bool `protobuf:"varint,4,opt,name=disable_trust_on_first_use,json=disableTrustOnFirstUse,proto3" json:"disable_trust_on_first_use,omitempty"` - InstanceAge string `protobuf:"bytes,5,opt,name=instance_age,json=instanceAge,proto3" json:"instance_age,omitempty"` - DisableSshCaUser *bool `protobuf:"varint,6,opt,name=disable_ssh_ca_user,json=disableSshCaUser,proto3,oneof" json:"disable_ssh_ca_user,omitempty"` - DisableSshCaHost *bool `protobuf:"varint,7,opt,name=disable_ssh_ca_host,json=disableSshCaHost,proto3,oneof" json:"disable_ssh_ca_host,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ServiceAccounts []string `protobuf:"bytes,1,rep,name=service_accounts,json=serviceAccounts,proto3" json:"service_accounts,omitempty"` + ProjectIds []string `protobuf:"bytes,2,rep,name=project_ids,json=projectIds,proto3" json:"project_ids,omitempty"` + DisableCustomSans bool `protobuf:"varint,3,opt,name=disable_custom_sans,json=disableCustomSans,proto3" json:"disable_custom_sans,omitempty"` + DisableTrustOnFirstUse bool `protobuf:"varint,4,opt,name=disable_trust_on_first_use,json=disableTrustOnFirstUse,proto3" json:"disable_trust_on_first_use,omitempty"` + InstanceAge string `protobuf:"bytes,5,opt,name=instance_age,json=instanceAge,proto3" json:"instance_age,omitempty"` + DisableSshCaUser *bool `protobuf:"varint,6,opt,name=disable_ssh_ca_user,json=disableSshCaUser,proto3,oneof" json:"disable_ssh_ca_user,omitempty"` + DisableSshCaHost *bool `protobuf:"varint,7,opt,name=disable_ssh_ca_host,json=disableSshCaHost,proto3,oneof" json:"disable_ssh_ca_host,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GCPProvisioner) Reset() { @@ -1321,14 +1331,13 @@ func (x *GCPProvisioner) GetDisableSshCaHost() bool { } type AWSProvisioner struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Accounts []string `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` - DisableCustomSans bool `protobuf:"varint,2,opt,name=disable_custom_sans,json=disableCustomSans,proto3" json:"disable_custom_sans,omitempty"` - DisableTrustOnFirstUse bool `protobuf:"varint,3,opt,name=disable_trust_on_first_use,json=disableTrustOnFirstUse,proto3" json:"disable_trust_on_first_use,omitempty"` - InstanceAge string `protobuf:"bytes,4,opt,name=instance_age,json=instanceAge,proto3" json:"instance_age,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Accounts []string `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` + DisableCustomSans bool `protobuf:"varint,2,opt,name=disable_custom_sans,json=disableCustomSans,proto3" json:"disable_custom_sans,omitempty"` + DisableTrustOnFirstUse bool `protobuf:"varint,3,opt,name=disable_trust_on_first_use,json=disableTrustOnFirstUse,proto3" json:"disable_trust_on_first_use,omitempty"` + InstanceAge string `protobuf:"bytes,4,opt,name=instance_age,json=instanceAge,proto3" json:"instance_age,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AWSProvisioner) Reset() { @@ -1390,17 +1399,16 @@ func (x *AWSProvisioner) GetInstanceAge() string { } type AzureProvisioner struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` - ResourceGroups []string `protobuf:"bytes,2,rep,name=resource_groups,json=resourceGroups,proto3" json:"resource_groups,omitempty"` - Audience string `protobuf:"bytes,3,opt,name=audience,proto3" json:"audience,omitempty"` - DisableCustomSans bool `protobuf:"varint,4,opt,name=disable_custom_sans,json=disableCustomSans,proto3" json:"disable_custom_sans,omitempty"` - DisableTrustOnFirstUse bool `protobuf:"varint,5,opt,name=disable_trust_on_first_use,json=disableTrustOnFirstUse,proto3" json:"disable_trust_on_first_use,omitempty"` - SubscriptionIds []string `protobuf:"bytes,6,rep,name=subscription_ids,json=subscriptionIds,proto3" json:"subscription_ids,omitempty"` - ObjectIds []string `protobuf:"bytes,7,rep,name=object_ids,json=objectIds,proto3" json:"object_ids,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` + ResourceGroups []string `protobuf:"bytes,2,rep,name=resource_groups,json=resourceGroups,proto3" json:"resource_groups,omitempty"` + Audience string `protobuf:"bytes,3,opt,name=audience,proto3" json:"audience,omitempty"` + DisableCustomSans bool `protobuf:"varint,4,opt,name=disable_custom_sans,json=disableCustomSans,proto3" json:"disable_custom_sans,omitempty"` + DisableTrustOnFirstUse bool `protobuf:"varint,5,opt,name=disable_trust_on_first_use,json=disableTrustOnFirstUse,proto3" json:"disable_trust_on_first_use,omitempty"` + SubscriptionIds []string `protobuf:"bytes,6,rep,name=subscription_ids,json=subscriptionIds,proto3" json:"subscription_ids,omitempty"` + ObjectIds []string `protobuf:"bytes,7,rep,name=object_ids,json=objectIds,proto3" json:"object_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AzureProvisioner) Reset() { @@ -1483,10 +1491,7 @@ func (x *AzureProvisioner) GetObjectIds() []string { } type ACMEProvisioner struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` ForceCn bool `protobuf:"varint,1,opt,name=force_cn,json=forceCn,proto3" json:"force_cn,omitempty"` RequireEab bool `protobuf:"varint,2,opt,name=require_eab,json=requireEab,proto3" json:"require_eab,omitempty"` Challenges []ACMEProvisioner_ChallengeType `protobuf:"varint,3,rep,packed,name=challenges,proto3,enum=linkedca.ACMEProvisioner_ChallengeType" json:"challenges,omitempty"` @@ -1495,6 +1500,8 @@ type ACMEProvisioner struct { TermsOfService string `protobuf:"bytes,6,opt,name=terms_of_service,json=termsOfService,proto3" json:"terms_of_service,omitempty"` Website string `protobuf:"bytes,7,opt,name=website,proto3" json:"website,omitempty"` CaaIdentities []string `protobuf:"bytes,8,rep,name=caa_identities,json=caaIdentities,proto3" json:"caa_identities,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ACMEProvisioner) Reset() { @@ -1584,11 +1591,10 @@ func (x *ACMEProvisioner) GetCaaIdentities() []string { } type X5CProvisioner struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Roots [][]byte `protobuf:"bytes,1,rep,name=roots,proto3" json:"roots,omitempty"` unknownFields protoimpl.UnknownFields - - Roots [][]byte `protobuf:"bytes,1,rep,name=roots,proto3" json:"roots,omitempty"` + sizeCache protoimpl.SizeCache } func (x *X5CProvisioner) Reset() { @@ -1629,11 +1635,10 @@ func (x *X5CProvisioner) GetRoots() [][]byte { } type K8SSAProvisioner struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` unknownFields protoimpl.UnknownFields - - PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` + sizeCache protoimpl.SizeCache } func (x *K8SSAProvisioner) Reset() { @@ -1674,9 +1679,9 @@ func (x *K8SSAProvisioner) GetPublicKeys() [][]byte { } type SSHPOPProvisioner struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SSHPOPProvisioner) Reset() { @@ -1710,14 +1715,13 @@ func (*SSHPOPProvisioner) Descriptor() ([]byte, []int) { } type SCEPDecrypter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Certificate []byte `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` + KeyUri string `protobuf:"bytes,3,opt,name=key_uri,json=keyUri,proto3" json:"key_uri,omitempty"` + KeyPassword []byte `protobuf:"bytes,4,opt,name=key_password,json=keyPassword,proto3" json:"key_password,omitempty"` unknownFields protoimpl.UnknownFields - - Certificate []byte `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` - Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - KeyUri string `protobuf:"bytes,3,opt,name=key_uri,json=keyUri,proto3" json:"key_uri,omitempty"` - KeyPassword []byte `protobuf:"bytes,4,opt,name=key_password,json=keyPassword,proto3" json:"key_password,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SCEPDecrypter) Reset() { @@ -1779,18 +1783,17 @@ func (x *SCEPDecrypter) GetKeyPassword() []byte { } type SCEPProvisioner struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ForceCn bool `protobuf:"varint,1,opt,name=force_cn,json=forceCn,proto3" json:"force_cn,omitempty"` - Challenge string `protobuf:"bytes,2,opt,name=challenge,proto3" json:"challenge,omitempty"` - Capabilities []string `protobuf:"bytes,3,rep,name=capabilities,proto3" json:"capabilities,omitempty"` - MinimumPublicKeyLength int32 `protobuf:"varint,4,opt,name=minimum_public_key_length,json=minimumPublicKeyLength,proto3" json:"minimum_public_key_length,omitempty"` - IncludeRoot bool `protobuf:"varint,5,opt,name=include_root,json=includeRoot,proto3" json:"include_root,omitempty"` - EncryptionAlgorithmIdentifier int32 `protobuf:"varint,6,opt,name=encryption_algorithm_identifier,json=encryptionAlgorithmIdentifier,proto3" json:"encryption_algorithm_identifier,omitempty"` - Decrypter *SCEPDecrypter `protobuf:"bytes,7,opt,name=decrypter,proto3" json:"decrypter,omitempty"` - ExcludeIntermediate bool `protobuf:"varint,8,opt,name=exclude_intermediate,json=excludeIntermediate,proto3" json:"exclude_intermediate,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ForceCn bool `protobuf:"varint,1,opt,name=force_cn,json=forceCn,proto3" json:"force_cn,omitempty"` + Challenge string `protobuf:"bytes,2,opt,name=challenge,proto3" json:"challenge,omitempty"` + Capabilities []string `protobuf:"bytes,3,rep,name=capabilities,proto3" json:"capabilities,omitempty"` + MinimumPublicKeyLength int32 `protobuf:"varint,4,opt,name=minimum_public_key_length,json=minimumPublicKeyLength,proto3" json:"minimum_public_key_length,omitempty"` + IncludeRoot bool `protobuf:"varint,5,opt,name=include_root,json=includeRoot,proto3" json:"include_root,omitempty"` + EncryptionAlgorithmIdentifier int32 `protobuf:"varint,6,opt,name=encryption_algorithm_identifier,json=encryptionAlgorithmIdentifier,proto3" json:"encryption_algorithm_identifier,omitempty"` + Decrypter *SCEPDecrypter `protobuf:"bytes,7,opt,name=decrypter,proto3" json:"decrypter,omitempty"` + ExcludeIntermediate bool `protobuf:"varint,8,opt,name=exclude_intermediate,json=excludeIntermediate,proto3" json:"exclude_intermediate,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SCEPProvisioner) Reset() { @@ -1880,11 +1883,10 @@ func (x *SCEPProvisioner) GetExcludeIntermediate() bool { } type NebulaProvisioner struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Roots [][]byte `protobuf:"bytes,1,rep,name=roots,proto3" json:"roots,omitempty"` unknownFields protoimpl.UnknownFields - - Roots [][]byte `protobuf:"bytes,1,rep,name=roots,proto3" json:"roots,omitempty"` + sizeCache protoimpl.SizeCache } func (x *NebulaProvisioner) Reset() { @@ -1925,12 +1927,11 @@ func (x *NebulaProvisioner) GetRoots() [][]byte { } type BasicAuth struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` unknownFields protoimpl.UnknownFields - - Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BasicAuth) Reset() { @@ -1978,11 +1979,10 @@ func (x *BasicAuth) GetPassword() string { } type BearerToken struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + BearerToken string `protobuf:"bytes,1,opt,name=bearer_token,json=bearerToken,proto3" json:"bearer_token,omitempty"` unknownFields protoimpl.UnknownFields - - BearerToken string `protobuf:"bytes,1,opt,name=bearer_token,json=bearerToken,proto3" json:"bearer_token,omitempty"` + sizeCache protoimpl.SizeCache } func (x *BearerToken) Reset() { @@ -2023,22 +2023,21 @@ func (x *BearerToken) GetBearerToken() string { } type Webhook struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` - Kind Webhook_Kind `protobuf:"varint,4,opt,name=kind,proto3,enum=linkedca.Webhook_Kind" json:"kind,omitempty"` - Secret string `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"` - // Types that are assignable to Auth: + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` + Kind Webhook_Kind `protobuf:"varint,4,opt,name=kind,proto3,enum=linkedca.Webhook_Kind" json:"kind,omitempty"` + Secret string `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"` + // Types that are valid to be assigned to Auth: // // *Webhook_BearerToken // *Webhook_BasicAuth Auth isWebhook_Auth `protobuf_oneof:"auth"` DisableTlsClientAuth bool `protobuf:"varint,8,opt,name=disable_tls_client_auth,json=disableTlsClientAuth,proto3" json:"disable_tls_client_auth,omitempty"` CertType Webhook_CertType `protobuf:"varint,9,opt,name=cert_type,json=certType,proto3,enum=linkedca.Webhook_CertType" json:"cert_type,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Webhook) Reset() { @@ -2106,23 +2105,27 @@ func (x *Webhook) GetSecret() string { return "" } -func (m *Webhook) GetAuth() isWebhook_Auth { - if m != nil { - return m.Auth +func (x *Webhook) GetAuth() isWebhook_Auth { + if x != nil { + return x.Auth } return nil } func (x *Webhook) GetBearerToken() *BearerToken { - if x, ok := x.GetAuth().(*Webhook_BearerToken); ok { - return x.BearerToken + if x != nil { + if x, ok := x.Auth.(*Webhook_BearerToken); ok { + return x.BearerToken + } } return nil } func (x *Webhook) GetBasicAuth() *BasicAuth { - if x, ok := x.GetAuth().(*Webhook_BasicAuth); ok { - return x.BasicAuth + if x != nil { + if x, ok := x.Auth.(*Webhook_BasicAuth); ok { + return x.BasicAuth + } } return nil } @@ -2494,9 +2497,10 @@ var file_linkedca_provisioners_proto_rawDesc = []byte{ 0x4f, 0x54, 0x49, 0x46, 0x59, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x22, 0x26, 0x0a, 0x08, 0x43, 0x65, 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x58, 0x35, 0x30, 0x39, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x53, 0x48, - 0x10, 0x02, 0x42, 0x06, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x42, 0x15, 0x5a, 0x13, 0x67, 0x6f, - 0x2e, 0x73, 0x74, 0x65, 0x70, 0x2e, 0x73, 0x6d, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x63, - 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x10, 0x02, 0x42, 0x06, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x42, 0x1f, 0x5a, 0x1d, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6d, 0x61, 0x6c, 0x6c, 0x73, 0x74, + 0x65, 0x70, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x63, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( diff --git a/spec/linkedca/admin.proto b/spec/linkedca/admin.proto index 5312161..448a570 100644 --- a/spec/linkedca/admin.proto +++ b/spec/linkedca/admin.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package linkedca; -option go_package = "go.step.sm/linkedca"; +option go_package = "github.com/smallstep/linkedca"; import "google/protobuf/timestamp.proto"; diff --git a/spec/linkedca/config.proto b/spec/linkedca/config.proto index bab9993..e294014 100644 --- a/spec/linkedca/config.proto +++ b/spec/linkedca/config.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package linkedca; -option go_package = "go.step.sm/linkedca"; +option go_package = "github.com/smallstep/linkedca"; import "google/protobuf/struct.proto"; diff --git a/spec/linkedca/eab.proto b/spec/linkedca/eab.proto index a434f7d..fd9ec39 100644 --- a/spec/linkedca/eab.proto +++ b/spec/linkedca/eab.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package linkedca; -option go_package = "go.step.sm/linkedca"; +option go_package = "github.com/smallstep/linkedca"; import "google/protobuf/timestamp.proto"; diff --git a/spec/linkedca/majordomo.proto b/spec/linkedca/majordomo.proto index 8d11961..9885c4d 100644 --- a/spec/linkedca/majordomo.proto +++ b/spec/linkedca/majordomo.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package linkedca; -option go_package = "go.step.sm/linkedca"; +option go_package = "github.com/smallstep/linkedca"; import "linkedca/admin.proto"; import "linkedca/provisioners.proto"; diff --git a/spec/linkedca/policy.proto b/spec/linkedca/policy.proto index 0d049a1..e46b78e 100644 --- a/spec/linkedca/policy.proto +++ b/spec/linkedca/policy.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package linkedca; -option go_package = "go.step.sm/linkedca"; +option go_package = "github.com/smallstep/linkedca"; message Policy { X509Policy x509 = 1; diff --git a/spec/linkedca/provisioners.proto b/spec/linkedca/provisioners.proto index 3f6d084..030ba57 100644 --- a/spec/linkedca/provisioners.proto +++ b/spec/linkedca/provisioners.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package linkedca; -option go_package = "go.step.sm/linkedca"; +option go_package = "github.com/smallstep/linkedca"; import "google/protobuf/timestamp.proto"; diff --git a/tools.go b/tools.go new file mode 100644 index 0000000..103913d --- /dev/null +++ b/tools.go @@ -0,0 +1,9 @@ +//go:build tools +// +build tools + +package main + +import ( + _ "google.golang.org/grpc/cmd/protoc-gen-go-grpc" + _ "google.golang.org/protobuf/cmd/protoc-gen-go" +)