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

JSON output is not valid JSON document #578

Open
peterloron opened this issue Nov 28, 2023 · 0 comments
Open

JSON output is not valid JSON document #578

peterloron opened this issue Nov 28, 2023 · 0 comments

Comments

@peterloron
Copy link

Running kubeaudit 0.22 and selecting JSON output, I get a series of JSON formatted lines. However, when taken together, this output is not a valid JSON document.

This is the output I get:

{"AuditResultName":"RunAsUserCSCRoot","Container":"backup"...}
{"AuditResultName":"RunAsUserCSCRoot","Container":"init-set-owner"...}
{"AuditResultName":"AllowPrivilegeEscalationNil","Container":"backup"...}

What needs to be output is something like this:

{ "results": [
{"AuditResultName":"RunAsUserCSCRoot","Container":"backup"...},
{"AuditResultName":"RunAsUserCSCRoot","Container":"init-set-owner"...},
{"AuditResultName":"AllowPrivilegeEscalationNil","Container":"backup"...}
]}
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