From 1ee9e7788ce686f7808b4883397e30b223118d72 Mon Sep 17 00:00:00 2001 From: Russell Hancox Date: Mon, 12 Aug 2024 12:59:24 -0400 Subject: [PATCH] sync: Drop rules_* fields in postflight to uint32 This lets the protobuf json serializer to send the values as ints (like NSJSONSerialization did) instead of strings. This will cause problems if someone has 4B rules but that's probably a sign of bigger problems --- Source/santasyncservice/syncv1.proto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/santasyncservice/syncv1.proto b/Source/santasyncservice/syncv1.proto index e06fc5045..380df51bf 100644 --- a/Source/santasyncservice/syncv1.proto +++ b/Source/santasyncservice/syncv1.proto @@ -305,8 +305,8 @@ message RuleDownloadResponse { } message PostflightRequest { - uint64 rules_received = 1 [json_name="rules_received"]; - uint64 rules_processed = 2 [json_name="rules_processed"]; + uint32 rules_received = 1 [json_name="rules_received"]; + uint32 rules_processed = 2 [json_name="rules_processed"]; // The UUID of the machine that is sending this postflight. string machine_id = 3 [json_name="machine_id"]; }