-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introducing protobuf file for the new /uuid endpoint
- Once attestation feature is enabled in Controller, the /config endpoint will fail incoming requests without an integrity token associated with the request. As a result, the initial getUuid() method in zedclient will fail, since it starts early before attestation, and at that point system will not have any integrity token to use. - Since zedclient uses /config primarily for getting UUID of the device and other fields such as Manufacturer, Model etc, having a separate endpoint for that makes sense, and this PR adds protobuf fields for the same. Signed-off-by: Hariharasubramanian C S <[email protected]>
- Loading branch information
1 parent
a601209
commit 82c8d66
Showing
2 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright(c) 2020 Zededa, Inc. | ||
// All rights reserved. | ||
|
||
syntax = "proto3"; | ||
|
||
package org.lfedge.eve.uuid; | ||
|
||
option go_package = "github.com/lf-edge/eve/api/go/uuid"; | ||
option java_package = "org.lfedge.eve.uuid"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "EveUuid"; | ||
|
||
// This is the request payload for POST /api/v2/edgeDevice/uuid | ||
// The message is assumed to be protected by signing envelope | ||
message UuidRequest{ | ||
bytes device_cert = 1; //Device certificate | ||
} | ||
|
||
// This is the response payload for POST /api/v2/edgeDevice/uuid | ||
// The message is assumed to be protected by signing envelope | ||
message UuidResponse{ | ||
string uuid = 1; //UUID of this edge device | ||
string manufacturer = 2; //Manufacturer, as per Controller | ||
string product_name = 3; //Product name, as per Controller | ||
} | ||
|