corymhall / eslint-plugin-awscdk Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Category: Foundational
Rule: KMS.1 IAM customer managed policies should not allow decryption actions on all KMS keys
The plugin is not working because aws-cdk v2 overhauled the bundling of the packages.
This one will be more difficult. The Distribution
construct will setup an OAI based on whether the bucket is setup as website hosting or not.
incorrect
const bucket = new s3.Bucket(this, 'WebsiteBucket', {
websiteIndexDocument: 'index.html', // enables static website hosting
});
const s3Origin = new cloudfront_origins.S3Origin(this, 'S3Origin', bucket);
new cloudfront.Distribution(this, 'Distribution', {
defaultBehavior: {
origin: s3Origin,
...
},
});
correct
const bucket = new s3.Bucket(this, 'WebsiteBucket');
const s3Origin = new cloudfront_origins.S3Origin(this, 'S3Origin', bucket);
new cloudfront.Distribution(this, 'Distribution', {
defaultBehavior: {
origin: s3Origin,
...
},
});
We need to determine:
In the docs there are 4 levels of severity, low
, medium
, high
, critical
.
Setup an action to run npm test
. You know so I know when I break things :-)
Category: Foundational
Rules:
The current rule checks all PolicyStatement
s, but we need to either find a way to check whether the PolicyStatement
is part of a policy attached to an IAM principal or handle this some other way (change it to a warning, etc)
Need to find a way to search for accountIDs in strings. For example:
new iam.PolicyStatement({
principals: [
new iam.ArnPrincipal('are:aws:iam::1111111111:role/mycrossaccountrole'),
// or
new iam.ArnPrincipal(stack.formatArn({
account: '111111111',
...,
})),
],
})
1 option is to force people to use the formatArn
method and just make sure they don't provide the account
parameter, which will default it to the current account.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.