sonarjs/aws-s3-bucket-granted-access
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/aws-s3-bucket-granted-access": "error",
},
},
];S3 buckets should not grant access to all users or authenticated users
The documentation shows no incorrect example for this rule.
const s3 = require('aws-cdk-lib/aws-s3');
new s3.Bucket(this, 'bucket', {
accessControl: s3.BucketAccessControl.PRIVATE
});
new s3deploy.BucketDeployment(this, 'DeployWebsite', {
accessControl: s3.BucketAccessControl.PRIVATE
});Examples from the ESLint documentation.
sonarjs/aws-s3-bucket-granted-access
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/aws-s3-bucket-granted-access": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Administration services access should be restricted to specific IP addresses
S3 buckets should enforce HTTPS-only access
Amazon RDS resources should be encrypted at rest
Amazon S3 bucket public access should be fully blocked
OpenSearch domains should have encryption at rest enabled
Amazon S3 buckets should have versioning enabled