Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

JSON output is not valid JSON document #578

Open
@peterloron

Description

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"...}
]}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions