Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions api/proto/teleport/legacy/types/device.proto
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ message DeviceSpec {
// teleport.devicetrust.v1.DeviceCredential.
message DeviceCredential {
string id = 1 [(gogoproto.jsontag) = "id"];
bytes public_key_der = 2 [(gogoproto.jsontag) = "public_key_der"];
string device_attestation_type = 3 [(gogoproto.jsontag) = "device_attestation_type"];
string tpm_ekcert_serial = 4 [(gogoproto.jsontag) = "tpm_ekcert_serial"];
bytes tpm_ak_public = 5 [(gogoproto.jsontag) = "tpm_ak_public"];
bytes public_key_der = 2 [(gogoproto.jsontag) = "public_key_der,omitempty"];
string device_attestation_type = 3 [(gogoproto.jsontag) = "device_attestation_type,omitempty"];
string tpm_ekcert_serial = 4 [(gogoproto.jsontag) = "tpm_ekcert_serial,omitempty"];
bytes tpm_ak_public = 5 [(gogoproto.jsontag) = "tpm_ak_public,omitempty"];
}

// DeviceCollectedData is the resource representation of
Expand Down
3 changes: 2 additions & 1 deletion api/types/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ func ResourceDeviceAttestationTypeToString(
) string {
switch attestationType {
case devicepb.DeviceAttestationType_DEVICE_ATTESTATION_TYPE_UNSPECIFIED:
return "unspecified"
// Default to empty, so it doesn't show in non-TPM devices.
return ""
case devicepb.DeviceAttestationType_DEVICE_ATTESTATION_TYPE_TPM_EKPUB:
return "tpm_ekpub"
case devicepb.DeviceAttestationType_DEVICE_ATTESTATION_TYPE_TPM_EKCERT:
Expand Down
186 changes: 93 additions & 93 deletions api/types/device.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading