You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The console creates/updates OS posture checks with exact OS versions instead of a min/max range, so the posture check evaluates false unless the OS version exactly matches one of the min or max values specified in the console.
Here's what a functioning os posture check looks like in the API when it's created with the ziti CLI like this:
ziti edge update posture-check os "req-linux-6" --os 'Linux:>=6.0.0:<7.0.0'
The CLI represented > and < as Unicode escape sequences \u003e and \u003c, respectively, when listing posture checks with --output-json, but this appears to be a quirk of the CLI, because I see the ASCII representation when I get the list directly with REST.
The text was updated successfully, but these errors were encountered:
The console's OS versions min/max values should be prefixed with comparison operators >=, <= when sending API requests, unless the user-supplied values already contain comparison operators.
On second thought, the concept of min/max doesn't align with how these values are represented in the API, leading to an unordered presentation in the console.
Specifically, the API expects a list of versions which must all evaluate true and are not evaluated in a predictable order, e.g. >=6.0.0 and <=7.0.0 must all be true in any order.
The console's min/max labels are nonsensical because the required versions' comparison operators are not parsed.
The console creates/updates OS posture checks with exact OS versions instead of a min/max range, so the posture check evaluates false unless the OS version exactly matches one of the min or max values specified in the console.
Here's what a functioning os posture check looks like in the API when it's created with the ziti CLI like this:
The CLI represented
>
and<
as Unicode escape sequences\u003e
and\u003c
, respectively, when listing posture checks with--output-json
, but this appears to be a quirk of the CLI, because I see the ASCII representation when I get the list directly with REST.The text was updated successfully, but these errors were encountered: