Skip to content

Commit 10b1ae2

Browse files
authored
Merge pull request #107 from cloudgraphdev/beta
RELEASE: 0.84.0
2 parents b6df1f2 + 52a95f0 commit 10b1ae2

File tree

18 files changed

+961
-17
lines changed

18 files changed

+961
-17
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# [0.84.0-beta.1](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.83.1...0.84.0-beta.1) (2023-01-24)
2+
3+
4+
### Features
5+
6+
* **CG-1311:** add AWS security hub ([067bf70](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/067bf70678fd48b60f97feb6c2390e6ae31ea358))
7+
* **CG-1311:** update README ([b36b426](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/b36b426f8c25a2ebc96934fd7236aec669080083))
8+
* **creds:** update credentials flow to support sso ([db29e83](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/db29e8339cd8e6f481333cdeccf83ca4568439b1))
9+
10+
# [0.84.0-alpha.1](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.83.1...0.84.0-alpha.1) (2023-01-24)
11+
12+
13+
### Features
14+
15+
* **CG-1311:** add AWS security hub ([067bf70](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/067bf70678fd48b60f97feb6c2390e6ae31ea358))
16+
* **CG-1311:** update README ([b36b426](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/b36b426f8c25a2ebc96934fd7236aec669080083))
17+
* **creds:** update credentials flow to support sso ([db29e83](https://github.com/cloudgraphdev/cloudgraph-provider-aws/commit/db29e8339cd8e6f481333cdeccf83ca4568439b1))
18+
119
## [0.83.1](https://github.com/cloudgraphdev/cloudgraph-provider-aws/compare/0.83.0...0.83.1) (2022-11-28)
220

321

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ Use the CloudGraph AWS Provider to scan and normalize cloud infrastructure using
44

55
<!-- toc -->
66

7-
- [Docs](#install)
7+
- [CloudGraph AWS Provider](#cloudgraph-aws-provider)
8+
- [Docs](#docs)
89
- [Install](#install)
910
- [Authentication](#authentication)
1011
- [Multi Account](#multi-account)
@@ -154,6 +155,7 @@ CloudGraph AWS Provider will ask you what regions you would like to crawl and wi
154155
| s3 | cloudfront, cloudtrail, ecsCluster, iamRole, kinesisFirehose, kms, lambda, managedAirflow, sns, sqs |
155156
| secretsManager | kms, lambda |
156157
| securityGroup | alb, asg, clientVpnEndpoint, codebuild, dmsReplicationInstance, ecsService, lambda, ec2, elasticSearchDomain, elb, rdsCluster, rdsDbInstance, eksCluster, elastiCacheCluster, managedAirflow, sageMakerNotebookInstance, networkInterface, vpcEndpoint |
158+
| securityHub | |
157159
| ses | |
158160
| sns | kms, cloudtrail, cloudwatch, s3 |
159161
| sqs | elasticBeanstalkEnv, s3 |

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cloudgraph/cg-provider-aws",
3-
"version": "0.83.1",
3+
"version": "0.84.0-beta.1",
44
"description": "cloud-graph provider plugin for AWS used to fetch AWS cloud data.",
55
"publishConfig": {
66
"registry": "https://registry.npmjs.org/",
@@ -31,6 +31,8 @@
3131
"terraform:cleanup": "rimraf ./tests/terraform/{.terraform,.terraform.lock.hcl,tfplan} ./tests/terraform/*.{tfstate,tfplan,backup}"
3232
},
3333
"dependencies": {
34+
"@aws-sdk/credential-providers": "^3.256.0",
35+
"@aws-sdk/shared-ini-file-loader": "^3.254.0",
3436
"@cloudgraph/sdk": "^0.22.1",
3537
"@fast-csv/parse": "^4.3.6",
3638
"@graphql-tools/load-files": "^6.5.3",

src/enums/resources.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export default {
4444
dynamoDbTable: 'aws_dynamodb_table',
4545
kinesisStream: 'aws_kinesis_stream',
4646
securityGroup: 'aws_security_group',
47+
securityHub: 'aws_security_hub',
4748
iamRolePolicy: 'aws_iam_role_policy',
4849
efsMountTarget: 'aws_efs_mount_target',
4950
route53ZRecord: 'aws_route53_record',

src/enums/schemasMap.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export default {
7878
[services.nat]: 'awsNatGateway',
7979
[services.networkInterface]: 'awsNetworkInterface',
8080
[services.sg]: 'awsSecurityGroup',
81+
[services.securityHub]: 'awsSecurityHub',
8182
[services.subnet]: 'awsSubnet',
8283
[services.vpc]: 'awsVpc',
8384
[services.vpcEndpoint]: 'awsVpcEndpoint',

src/enums/serviceAliases.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export default {
6767
[services.sageMakerProject]: 'sageMakerProjects',
6868
[services.secretsManager]: 'secretsManager',
6969
[services.sg]: 'securityGroups',
70+
[services.securityHub]: 'securityHubs',
7071
[services.subnet]: 'subnets',
7172
[services.systemsManagerDocument]: 'systemsManagerDocuments',
7273
[services.systemsManagerInstance]: 'systemsManagerInstances',

src/enums/serviceMap.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ import Route53HostedZone from '../services/route53HostedZone'
5353
import Route53Record from '../services/route53Record'
5454
import RouteTable from '../services/routeTable'
5555
import SecretsManager from '../services/secretsManager'
56+
import SecurityHub from '../services/securityHub'
5657
import S3 from '../services/s3'
5758
import SES from '../services/ses'
5859
import SQS from '../services/sqs'
@@ -182,6 +183,7 @@ export default {
182183
[services.sageMakerProject]: SageMakerProject,
183184
[services.s3]: S3,
184185
[services.secretsManager]: SecretsManager,
186+
[services.securityHub]: SecurityHub,
185187
[services.ses]: SES,
186188
[services.iamAccessAnalyzer]: IamAccessAnalyzer,
187189
[services.iamUser]: IamUser,

src/enums/services.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export default {
8484
sageMakerProject: 'sageMakerProject',
8585
s3: 's3',
8686
secretsManager: 'secretsManager',
87+
securityHub: 'securityHub',
8788
ses: 'ses',
8889
sg: 'sg',
8990
sns: 'sns',

src/properties/logger.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,4 +689,10 @@ export default {
689689
* Vpc Peering Connections
690690
*/
691691
fetchedVpcPeeringConnections: (num: number): string => `Found ${num} Vpc Peering Connections`,
692+
/**
693+
* Security Hub
694+
*/
695+
securityHubNotFound: (region: string): string => `Security Hub not found/disabled for region: ${region}`,
696+
fetchedSecurityHub: (region: string): string => `Security Hub found/enabled for region: ${region}`,
697+
fetchingSecurityHub: 'Fetching Security Hub data for this AWS account via the AWS SDK...',
692698
}

src/services/account/schema.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ type awsAccount implements awsOptionalService @key(fields: "id") {
8686
sageMakerProjects: [awsSageMakerProject]
8787
secretsManager: [awsSecretsManager]
8888
securityGroups: [awsSecurityGroup]
89+
securityHub: [awsSecurityHub]
8990
systemsManagerDocuments: [awsSystemsManagerDocument]
9091
systemsManagerInstances: [awsSystemsManagerInstance]
9192
ses: [awsSes]

0 commit comments

Comments
 (0)