From 231efe137fe3a8f1e40aab474f07f0cf99571abf Mon Sep 17 00:00:00 2001 From: Jacek Chmielewski Date: Mon, 3 Aug 2026 11:01:44 +0200 Subject: [PATCH 1/3] posture check authenticates the device with polling token --- proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto b/proto index cbb7987..394b9dd 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit cbb798774a48e77940de33b8d6df7dae519541a4 +Subproject commit 394b9dd04b4e3f082326c2cec068b02ebbfdbd56 From 73e2dbc13e3cfb8de2d9ace898bae36cf9076c23 Mon Sep 17 00:00:00 2001 From: Jacek Chmielewski Date: Mon, 3 Aug 2026 11:37:16 +0200 Subject: [PATCH 2/3] don't log DevicePostureCheckRequest since it now contains polling token --- build.rs | 1 + src/enterprise/handlers/desktop_client_posture.rs | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/build.rs b/build.rs index 31fbabb..057ea8f 100644 --- a/build.rs +++ b/build.rs @@ -18,6 +18,7 @@ fn main() -> Result<(), Box> { "CoreRequest", "CoreResponse", "DeviceConfigResponse", + "DevicePostureCheckRequest", "InstanceInfoResponse", "NewDevice", "PasswordResetRequest", diff --git a/src/enterprise/handlers/desktop_client_posture.rs b/src/enterprise/handlers/desktop_client_posture.rs index 6bd0889..efe2bf8 100644 --- a/src/enterprise/handlers/desktop_client_posture.rs +++ b/src/enterprise/handlers/desktop_client_posture.rs @@ -20,16 +20,17 @@ async fn connect_with_posture_check( device_info: DeviceInfo, Json(req): Json, ) -> Result, ApiError> { - info!("Starting desktop client posture check {req:?}"); - let rx = state.grpc_server.send( - core_request::Payload::DevicePostureCheck(req.clone()), - device_info, - )?; + let pubkey = req.pubkey.clone(); + let location_id = req.location_id; + info!("Starting desktop client posture check for device {pubkey} in location {location_id}"); + let rx = state + .grpc_server + .send(core_request::Payload::DevicePostureCheck(req), device_info)?; let payload = get_core_response(rx, None).await?; match payload { core_response::Payload::DevicePostureCheck(response) => { - info!("Desktop client passed posture check {req:?}"); + info!("Desktop client {pubkey} passed posture check in location {location_id}"); Ok(Json(response)) } core_response::Payload::DevicePostureRejected(response) => { From 72846490624df517f3e029cbee559f800485f0b7 Mon Sep 17 00:00:00 2001 From: Jacek Chmielewski Date: Tue, 4 Aug 2026 10:36:04 +0200 Subject: [PATCH 3/3] bump proto --- proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto b/proto index 394b9dd..5693340 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit 394b9dd04b4e3f082326c2cec068b02ebbfdbd56 +Subproject commit 569334098f1cd7e81809c3ccd7681acfc18a7491