sonarjs/aws-s3-bucket-insecure-http
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/aws-s3-bucket-insecure-http": "error",
},
},
];The documentation shows no incorrect example for this rule.
const s3 = require('aws-cdk-lib/aws-s3');
const bucket = new s3.Bucket(this, 'example', {
bucketName: 'example',
versioned: true,
publicReadAccess: false,
enforceSSL: true
});Examples from the ESLint documentation.
sonarjs/aws-s3-bucket-insecure-http
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/aws-s3-bucket-insecure-http": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
S3 buckets should not grant access to all users or authenticated users
Amazon S3 bucket public access should be fully blocked
Administration services access should be restricted to specific IP addresses
Amazon S3 buckets should have versioning enabled
Amazon RDS resources should be encrypted at rest
SageMaker notebook instances should be encrypted at rest