Describe the bug
Reported via MacAdmins Slack, running the following query with a Kolide Device Trust API key returned an error response:
select
name,
hardware_model,
serial
from
kolide_device;
Error reported:
Error: kolide: failed to retrieve collection at /devices/ with response: "json: cannot unmarshal number into Go struct field RegisteredOwner.data.registered_owner_info.identifier of type string" (SQLSTATE HV000)
Steampipe version (steampipe -v)
v0.22.2
Plugin version (steampipe plugin list)
v0.3.0
To reproduce
Run the query provided with a non-K2 API key
Expected behavior
Successful execution and return of reasonable results
Additional context
Executing the equivalent API call yielded the following sanitised results
Debugging with the reporter showed several fixes needed in the code, the most interesting being that Device.RegisteredOwnerInfo.Identifier returns an integer not a string
Describe the bug Reported via MacAdmins Slack, running the following query with a Kolide Device Trust API key returned an error response:
Error reported:
Steampipe version (
steampipe -v
) v0.22.2Plugin version (
steampipe plugin list
) v0.3.0To reproduce Run the query provided with a non-K2 API key
Expected behavior Successful execution and return of reasonable results
Additional context Executing the equivalent API call yielded the following sanitised results