All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.py.rules.python.S6252.html Maven / Gradle / Ivy

There is a newer version: 4.23.0.17664
Show newest version

S3 buckets can be versioned. When the S3 bucket is unversioned it means that a new version of an object overwrites an existing one in the S3 bucket.

It can lead to unintentional or intentional information loss.

Ask Yourself Whether

  • The bucket stores information that require high availability.

There is a risk if you answered yes to any of those questions.

Recommended Secure Coding Practices

It’s recommended to enable S3 versioning and thus to have the possibility to retrieve and restore different versions of an object.

Sensitive Code Example

bucket = s3.Bucket(self, "bucket",
    versioned=False       # Sensitive
)

The default value of versioned is False so the absence of this parameter is also sensitive.

Compliant Solution

bucket = s3.Bucket(self, "bucket",
    versioned=True
)

See





© 2015 - 2024 Weber Informatics LLC | Privacy Policy