aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarol Zheng <cazheng@google.com>2023-11-27 18:41:41 +0000
committerCarol Zheng <cazheng@google.com>2023-11-30 18:15:25 +0000
commit832a40815992e1fe89961d3384bd3b1298bad716 (patch)
tree1e17e637516ca48d1b982b84ea77d08bd36f1a25
parent4a065d76b677a2bc1bb29cb6f08c69e14c14fdee (diff)
downloadfederated-compute-832a40815992e1fe89961d3384bd3b1298bad716.tar.gz
Add key attestation challenge proto in rejection info.
Test: mma BUG=272322600 Change-Id: Ic1119ec9f8d6486d5801cb04c5beac005b14e8a4
-rw-r--r--fcp/protos/federatedcompute/common.proto23
1 files changed, 21 insertions, 2 deletions
diff --git a/fcp/protos/federatedcompute/common.proto b/fcp/protos/federatedcompute/common.proto
index 9b4bd5a..2c6f05c 100644
--- a/fcp/protos/federatedcompute/common.proto
+++ b/fcp/protos/federatedcompute/common.proto
@@ -117,7 +117,7 @@ enum ResourceCompressionFormat {
// Currently empty message which is sent when client (device) is rejected for
// participation and is not assigned a task.
-// Next id: 1003
+// Next id: 1004
message RejectionInfo {
RejectionReason.Enum reason = 1001;
@@ -126,10 +126,26 @@ message RejectionInfo {
oneof metadata {
// Retry after a period of time.
RetryWindow retry_window = 1002;
+
+ // The field is used when the RejectionReason is UNAUTHENTICATED.
+ AuthenticationMetadata auth_metadata = 1003;
}
}
-// Next id: 3
+// The metadata used to authenticate a device.
+// Next Id: 2
+message AuthenticationMetadata {
+ KeyAttestationAuthMetadata key_attestation_metadata = 1;
+}
+
+// The metadata to authenticate with key attestation.
+// Next Id: 2
+message KeyAttestationAuthMetadata {
+ // The challenge to generate hardware-backed key pairs on device.
+ bytes challenge = 1;
+}
+
+// Next id: 4
message RejectionReason {
enum Enum {
// Unknown status.
@@ -140,6 +156,9 @@ message RejectionReason {
// No permission to do the operation.
UNAUTHORIZED = 2;
+
+ // The device is not authenticated to the server.
+ UNAUTHENTICATED = 3;
}
}