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

False negative AVD-DIG-0004 #5451

Closed
nikpivkin opened this issue Oct 26, 2023 · 1 comment
Closed

False negative AVD-DIG-0004 #5451

nikpivkin opened this issue Oct 26, 2023 · 1 comment
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. scan/misconfiguration Issues relating to misconfiguration scanning

Comments

@nikpivkin
Copy link
Contributor

Trivy doesn't report no ssh keys when I reference a non-existent data source.

Code:

resource "digitalocean_droplet" "this" {
  image    = "ubuntu-18-04-x64"
  name     = "web-1"
  region   = "nyc2"
  size     = "s-1vcpu-1gb"
  ssh_keys = [data.digitalocean_ssh_key.this.id]
}

Output:

trivy conf do-ssh/
2023-10-26T16:04:29.070+0700    INFO    Misconfiguration scanning is enabled
2023-10-26T16:04:29.444+0700    INFO    Detected config files: 2
@nikpivkin nikpivkin added kind/bug Categorizes issue or PR as related to a bug. scan/misconfiguration Issues relating to misconfiguration scanning labels Oct 26, 2023
@simar7 simar7 added this to the v0.48.0 milestone Nov 14, 2023
@simar7 simar7 removed this from the v0.48.0 milestone Nov 24, 2023
@simar7
Copy link
Member

simar7 commented Jan 24, 2024

Closing as discussed offline, the input needs to be valid for Trivy to report misconfigurations.

@simar7 simar7 closed this as completed Jan 24, 2024
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. scan/misconfiguration Issues relating to misconfiguration scanning
Projects
Status: No status
Development

No branches or pull requests

2 participants