이 제품은 선택한 Datadog 사이트에서 지원되지 않습니다. ().
이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우 언제든지 연락주시기 바랍니다.

Metadata

Id: 2b13c6ff-b87a-484d-86fd-21ef6e97d426

Cloud Provider: Alicloud

Platform: Terraform

Severity: High

Category: Insecure Configurations

Learn More

Description

Checks whether any static websites are hosted on OSS buckets by detecting the website attribute in alicloud_oss_bucket resources. Buckets with the website attribute are flagged, as static website hosting may lead to unintended public exposure or accidental content hosting. The rule reports an IncorrectValue when website is present. Be aware of any website configurations in use.

Compliant Code Examples

resource "alicloud_oss_bucket" "bucket-acl1" {
  bucket = "bucket-1-acl"
  acl    = "private"
}

Non-Compliant Code Examples

resource "alicloud_oss_bucket" "bucket-website1" {
  bucket = "bucket-1-website"

  website {
    index_document = "index.html"
    error_document = "error.html"
  }
}