Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data query output on CLI scans needs improvements #297

Closed
tas50 opened this issue Jan 21, 2023 · 1 comment
Closed

Data query output on CLI scans needs improvements #297

tas50 opened this issue Jan 21, 2023 · 1 comment

Comments

@tas50
Copy link
Member

tas50 commented Jan 21, 2023

Describe the bug
The output when a data query fails produces a lot of extra data that is confusing and not helpful for users:

Asset: index.docker.io/library/ubuntu@c1d0baf2425e
==================================================
Data queries:
error: Query encountered errors:
run command not supported on this provider
command.stderr: ""
error: Query encountered errors:
run command not supported on this provider
if: no data available
platform.arch: "amd64"
platform.release: "18.04"
error: Query encountered errors:
could not determine kernel version
kernel.installed: []
error: Query encountered errors:
could not parse uptime:
os.uptime: 3 seconds
mondoo.version: "unstable"
mondoo.jobEnvironment: {
  id: "client.mondoo.com"
  name: "Mondoo Client"
}
platform.title: "Ubuntu 18.04.6 LTS, Docker Image"
platform.vulnerabilityReport: {
  platform: {
    arch: "amd64"
    name: "ubuntu"
    release: "18.04"
    title: "Ubuntu 18.04.6 LTS, Docker Image"
  }
  published: "2023-01-21T23:00:54Z"
  stats: {
    advisories: {}
... 7 more lines ...
platform.eol.date: 2023-03-31 17:00:00 -0700 PDT
os.hostname: "localhost.localdomain"
service: {
  description: ""
  enabled: false
  type: ""
  running: false
  name: "mondoo"
  installed: false
  masked: false
}
packages.list.length: 89

We need a better solution for displaying failures here

@tas50
Copy link
Member Author

tas50 commented Sep 10, 2024

This is better solved with #1378

@tas50 tas50 closed this as completed Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant