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

audit.advisory on macos no longer reports no data available in v9 #1721

Closed
tas50 opened this issue Sep 13, 2023 · 2 comments
Closed

audit.advisory on macos no longer reports no data available in v9 #1721

tas50 opened this issue Sep 13, 2023 · 2 comments
Assignees
Labels
bug Something isn't working v9
Milestone

Comments

@tas50
Copy link
Member

tas50 commented Sep 13, 2023

In v8 if you ran audit.advisory you got "no data available" back. Now you get additional type errors.

V8:

cnquery> audit.advisory{*}
Query encountered errors:
failed to create resource 'audit.advisory': "audit.advisory" failed: no value provided for static field "mrn"
audit.advisory: no data available

V9:

cnquery> audit.advisory{*}
1 error occurred:
	* cannot convert primitive with NO type information
audit.advisory: {
  description: cannot convert primitive with NO type information
  worstScore: cannot convert primitive with NO type information
  published: cannot convert primitive with NO type information
  mrn: cannot convert primitive with NO type information
  id: cannot convert primitive with NO type information
  title: cannot convert primitive with NO type information
  modified: cannot convert primitive with NO type information
}

The same thing happens with audit.cve and audit.cvss

@czunker czunker added bug Something isn't working v9 labels Sep 14, 2023
@czunker czunker added this to the v9 milestone Sep 14, 2023
@czunker czunker self-assigned this Sep 25, 2023
@czunker
Copy link
Contributor

czunker commented Sep 25, 2023

This is not specific to Mac. I also see this on Ubuntu:

cnquery run local -c "audit.advisory{*}" 
→ loaded configuration from /etc/opt/mondoo/mondoo.yml using source default
1 error occurred:
	* cannot convert primitive with NO type information
audit.advisory: {
  description: cannot convert primitive with NO type information
  worstScore: cannot convert primitive with NO type information
  published: cannot convert primitive with NO type information
  mrn: cannot convert primitive with NO type information
  id: cannot convert primitive with NO type information
  title: cannot convert primitive with NO type information
  modified: cannot convert primitive with NO type information
}

czunker added a commit that referenced this issue Sep 25, 2023
Fixes #1721

Signed-off-by: Christian Zunker <[email protected]>
czunker added a commit that referenced this issue Sep 25, 2023
Fixes #1721

Signed-off-by: Christian Zunker <[email protected]>
@arlimus
Copy link
Member

arlimus commented Sep 27, 2023

Superseded by #1943
Thank you for catching this!

@arlimus arlimus closed this as completed Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v9
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants