Skip to content

Commit 78bee9f

Browse files
committed
formatting
1 parent 94795ac commit 78bee9f

2 files changed

Lines changed: 20 additions & 22 deletions

File tree

common/client_types.proto

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ message DeviceConfig {
120120
int32 keepalive_interval = 10;
121121
optional LocationMfaMode location_mfa_mode = 11;
122122
optional ServiceLocationMode service_location_mode = 12;
123-
// True when the location has at least one posture policy assigned.
124-
// Derived at query time; not stored as a column.
125123
optional bool posture_check_required = 13;
126124
}
127125

@@ -239,55 +237,55 @@ message CodeMfaSetupFinishResponse {
239237

240238
// Device posture types
241239
enum UnavailableReason {
242-
UNAVAILABLE_REASON_UNSPECIFIED = 0;
240+
UNAVAILABLE_REASON_UNSPECIFIED = 0;
243241
UNAVAILABLE_REASON_INSUFFICIENT_PERMISSIONS = 1;
244-
UNAVAILABLE_REASON_NOT_APPLICABLE = 2;
245-
UNAVAILABLE_REASON_DETECTION_FAILED = 3;
242+
UNAVAILABLE_REASON_NOT_APPLICABLE = 2;
243+
UNAVAILABLE_REASON_DETECTION_FAILED = 3;
246244
}
247245

248246
// Wrapper for a boolean posture signal that may be unavailable.
249247
message BoolCheck {
250248
oneof result {
251-
bool value = 1;
249+
bool value = 1;
252250
UnavailableReason unavailable = 2;
253251
}
254252
}
255253

256254
// Wrapper for a string posture signal that may be unavailable.
257255
message StringCheck {
258256
oneof result {
259-
string value = 1;
257+
string value = 1;
260258
UnavailableReason unavailable = 2;
261259
}
262260
}
263261

264262
// Raw posture signals gathered by the client.
265263
message DevicePostureData {
266264
// Full semver string including any pre-release suffix, e.g. "1.6.0-beta1"
267-
string defguard_client_version = 1;
265+
string defguard_client_version = 1;
268266
// Normalized OS family, e.g. "windows", "macos", "linux", "ios", "android"
269-
StringCheck os_family = 2;
267+
StringCheck os_family = 2;
270268
// Detailed OS name, e.g. "Windows", "Mac OS X", "Ubuntu"
271-
StringCheck os_type = 3;
269+
StringCheck os_type = 3;
272270
// OS version string, e.g. "11", "14.5", "22.04"
273-
StringCheck os_version = 4;
274-
BoolCheck disk_encryption = 5;
275-
BoolCheck antivirus_present = 6;
271+
StringCheck os_version = 4;
272+
BoolCheck disk_encryption = 5;
273+
BoolCheck antivirus_present = 6;
276274
// ISO-8601 date; NotApplicable on Linux, iOS, and Android
277-
StringCheck os_last_update_date = 7;
275+
StringCheck os_last_update_date = 7;
278276
// NotApplicable on non-Windows platforms
279-
BoolCheck ad_domain_joined = 8;
277+
BoolCheck ad_domain_joined = 8;
280278
// NotApplicable on non-Windows platforms
281-
BoolCheck windows_security_update_current = 9;
279+
BoolCheck windows_security_update_current = 9;
282280
// NotApplicable on non-Linux platforms
283-
StringCheck kernel_version = 10;
281+
StringCheck kernel_version = 10;
284282
// NotApplicable on non-Android platforms
285-
BoolCheck android_device_integrity = 11;
283+
BoolCheck android_device_integrity = 11;
286284
}
287285

288286
message DevicePostureCheckRequest {
289-
int64 location_id = 1;
290-
string pubkey = 2;
287+
int64 location_id = 1;
288+
string pubkey = 2;
291289
DevicePostureData device_posture_data = 3;
292290
}
293291

v2/proxy.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ message CoreResponse {
109109
AwaitRemoteMfaFinishResponse await_remote_mfa_finish = 16;
110110
HttpsCerts https_certs = 17;
111111
google.protobuf.Empty clear_https_certs = 18;
112-
defguard.client_types.DevicePostureCheckResponse device_posture_check = 19;
113-
defguard.client_types.DevicePostureRejection device_posture_rejected = 20;
112+
defguard.client_types.DevicePostureCheckResponse device_posture_check = 19;
113+
defguard.client_types.DevicePostureRejection device_posture_rejected = 20;
114114
}
115115
}
116116

0 commit comments

Comments
 (0)