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

fix(misconf): False negative AVD-AWS-0088 when SSE algorithm has an invalid value #5212

Closed
nikpivkin opened this issue Sep 19, 2023 · 0 comments · Fixed by #6341
Closed

fix(misconf): False negative AVD-AWS-0088 when SSE algorithm has an invalid value #5212

nikpivkin opened this issue Sep 19, 2023 · 0 comments · Fixed by #6341
Labels
kind/bug Categorizes issue or PR as related to a bug. scan/misconfiguration Issues relating to misconfiguration scanning

Comments

@nikpivkin
Copy link
Contributor

nikpivkin commented Sep 19, 2023

Trivy does not report AVD-AWS-0088 with the following terraform configuration. Which is incorrect, since the following values are valid for the sse_algorithm attribute: AES256, aws:kms, and aws:kms:dsse.

resource "aws_s3_bucket" "this" {
    bucket = "test"
}

resource "aws_s3_bucket_server_side_encryption_configuration" "this" {
  bucket = aws_s3_bucket.this.id
  rule {
    apply_server_side_encryption_by_default {
      sse_algorithm     = ""
    }
  }
}

Ref:

@nikpivkin nikpivkin added kind/bug Categorizes issue or PR as related to a bug. scan/misconfiguration Issues relating to misconfiguration scanning labels Sep 19, 2023
@simar7 simar7 changed the title False negative AVD-AWS-0088 when SSE algorithm has an invalid value fix(misconf): False negative AVD-AWS-0088 when SSE algorithm has an invalid value Mar 26, 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
None yet
Development

Successfully merging a pull request may close this issue.

1 participant