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

Details of ConfigAudit #177

Open
ilyassikai opened this issue Jan 20, 2023 · 3 comments
Open

Details of ConfigAudit #177

ilyassikai opened this issue Jan 20, 2023 · 3 comments

Comments

@ilyassikai
Copy link

Hello,

Thanks for this exporter.

I need to use ConfigAudit details but it is not possible on the helm (unlike vulnerabilityReports)
configAuditReports:
enabled: true

vulnerabilityReports:
enabled: true
targetLabels:
# - image_namespace
# - image_repository
# - image_tag
# - vulnerability_id

I saw on the controllers that the details are not exposed
var metricLabels = []string{
"report_name",
"resource_name",
"resource_namespace",
"severity",
}

It would be very interesting to add this possibility.

Translated with www.DeepL.com/Translator (free version)

@stone-z
Copy link
Contributor

stone-z commented Jan 24, 2023

Hi @ilyassikai, welcome 👋

What is your use case / what would your ideal metrics look like? The ConfigAuditReport controller does not currently expose details like the VulnerabilityReport controller does because we hadn't found them useful yet, but if someone wants to implement it we might be open to aligning the two controllers.

@ilyassikai
Copy link
Author

Hi,
My use case, I would like to see the report config details on a readable format
I can export on a json format with trivy k8s but it's not a freindly format.

@stone-z
Copy link
Contributor

stone-z commented Feb 13, 2023

In case it helps: If you are running trivy-operator in a cluster, you can also use the reports directly (VulnerabilityReport, ConfigAuditReport) or convert them to PolicyReports and view them nicely with policy-reporter.

As for metrics -- this feature is low priority for our customers' use cases right now, but we are open to accepting contributions adding it.
We are also planning to return to this exporter and expand it to include the new report types supported by Trivy operator. So this project will be getting some new attention soon. We might be able to implement ConfigAuditReport metrics as part of that effort, if there are no contributions first

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

2 participants