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

Can't proceed past FATAL get k8s artifacts with node info error: #5429

Closed
chen-keinan opened this issue Oct 23, 2023 Discussed in #5427 · 0 comments · Fixed by #5537
Closed

Can't proceed past FATAL get k8s artifacts with node info error: #5429

chen-keinan opened this issue Oct 23, 2023 Discussed in #5427 · 0 comments · Fixed by #5537
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence. target/kubernetes Issues relating to kubernetes cluster scanning
Milestone

Comments

@chen-keinan
Copy link
Contributor

Discussed in #5427

Originally posted by stobias123 October 22, 2023

Description

Just trying to try out k8s compliance scanning, and can't seem to find a way to proceed past this error.

FATAL get k8s artifacts with node info error: could not parse reference: arn:aws:ecr:us-west-2:foo:repository/bar:latest

How do I skip such errors?

Desired Behavior

This check should fail but I should still be able to get some semblance of a report

Actual Behavior

I get nothing but an error.

Reproduction Steps

Run where some pod is in a `InvalidImageName` state.

Target

Kubernetes

Scanner

Misconfiguration

Output Format

Table

Mode

Standalone

Debug Output

➜  trivy trivy k8s cluster --compliance=k8s-cis --report all -d

2023-10-22T10:41:37.440-0700	DEBUG	Severities: ["UNKNOWN" "LOW" "MEDIUM" "HIGH" "CRITICAL"]
2023-10-22T10:41:37.441-0700	DEBUG	Ignore statuses	{"statuses": null}
2023-10-22T10:41:40.658-0700	FATAL	get k8s artifacts with node info error:
    github.com/aquasecurity/trivy/pkg/k8s/commands.clusterRun
        /home/runner/work/trivy/trivy/pkg/k8s/commands/cluster.go:34
  - could not parse reference: (my invalid image)


### Operating System

osx

### Version

```bash
➜  trivy trivy --version
Version: 0.46.0
Vulnerability DB:
  Version: 2
  UpdatedAt: 2023-10-22 12:19:07.605699793 +0000 UTC
  NextUpdate: 2023-10-22 18:19:07.605699193 +0000 UTC
  DownloadedAt: 2023-10-22 17:36:09.887065 +0000 UTC
Java DB:
  Version: 1
  UpdatedAt: 2023-10-22 01:13:16.418413758 +0000 UTC
  NextUpdate: 2023-10-25 01:13:16.418413358 +0000 UTC
  DownloadedAt: 2023-10-22 17:39:09.951726 +0000 UTC
Policy Bundle:
  Digest: sha256:1df8ade71efc830877ca3b1130f83e0c6368e3a45b0d4c0f0418955501644054
  DownloadedAt: 2023-10-22 17:36:10.727275 +0000 UTC


### Checklist

- [ ] Run `trivy image --reset`
- [ ] Read [the troubleshooting](https://aquasecurity.github.io/trivy/latest/docs/references/troubleshooting/)</div>
@chen-keinan chen-keinan added kind/bug Categorizes issue or PR as related to a bug. target/kubernetes Issues relating to kubernetes cluster scanning priority/backlog Higher priority than priority/awaiting-more-evidence. labels Oct 23, 2023
@chen-keinan chen-keinan self-assigned this Oct 23, 2023
@chen-keinan chen-keinan added this to the v0.47.0 milestone Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence. target/kubernetes Issues relating to kubernetes cluster scanning
Projects
None yet
1 participant