Skip to content

Commit b70fc41

Browse files
committed
Upgrade AWS Security Hub Collector to v0.0.2
- Upgraded Go support to v1.19 - Modified location of function files to new version 0.0.2. - Fixed CVE-2022-29526 vulnerability. - Upgraded the `golang.org/x/sys` dependency indirectl; it relates to this issue: sirupsen/logrus#1402 - Create auto release workflow
1 parent d8d1a8b commit b70fc41

File tree

5 files changed

+116
-20
lines changed

5 files changed

+116
-20
lines changed

collector/README.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,23 @@ Select the button below to create a new stack dedicated to sending events from A
1818

1919
| AWS Region | Launch a stack |
2020
| --- | --- |
21-
| `us-east-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-us-east-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
22-
| `us-east-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-east-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-us-east-2.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
23-
| `us-west-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-us-west-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
24-
| `us-west-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-us-west-2.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
25-
| `eu-central-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-central-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
26-
| `eu-north-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-north-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-north-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
27-
| `eu-west-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-west-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
28-
| `eu-west-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-west-2.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
29-
| `eu-west-3` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-3#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-west-3.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
30-
| `sa-east-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=sa-east-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-sa-east-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
31-
| `ca-central-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ca-central-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ca-central-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
32-
| `ap-northeast-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-northeast-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
33-
| `ap-northeast-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-northeast-2.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
34-
| `ap-northeast-3` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-3#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-northeast-3.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
35-
| `ap-south-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-south-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-south-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
36-
| `ap-southeast-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-southeast-1.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
37-
| `ap-southeast-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-southeast-2.s3.amazonaws.com/aws-security-hub-collector/0.0.1/template.yaml) |
21+
| `us-east-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-us-east-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
22+
| `us-east-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-east-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-us-east-2.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
23+
| `us-west-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-us-west-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
24+
| `us-west-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-us-west-2.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
25+
| `eu-central-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-central-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
26+
| `eu-north-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-north-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-north-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
27+
| `eu-west-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-west-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
28+
| `eu-west-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-west-2.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
29+
| `eu-west-3` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-3#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-eu-west-3.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
30+
| `sa-east-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=sa-east-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-sa-east-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
31+
| `ca-central-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ca-central-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ca-central-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
32+
| `ap-northeast-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-northeast-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
33+
| `ap-northeast-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-northeast-2.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
34+
| `ap-northeast-3` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-3#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-northeast-3.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
35+
| `ap-south-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-south-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-south-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
36+
| `ap-southeast-1` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-1#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-southeast-1.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
37+
| `ap-southeast-2` | [![Deploy to AWS](https://dytvr9ot2sszz.cloudfront.net/logz-docs/lights/LightS-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stacks/new?stackName=logzio-security-hub-collector&templateURL=https://logzio-aws-integrations-ap-southeast-2.s3.amazonaws.com/aws-security-hub-collector/0.0.2/template.yaml) |
3838

3939
### Step 1 - Specify template
4040

collector/go.mod

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
module aws-security-hub/collector
22

3-
go 1.15
3+
go 1.19
44

55
require (
66
github.com/aws/aws-lambda-go v1.26.0
77
github.com/logzio/logzio-go v1.0.2
88
github.com/sirupsen/logrus v1.8.1
99
github.com/stretchr/testify v1.6.1
1010
)
11+
12+
require (
13+
github.com/StackExchange/wmi v1.2.0 // indirect
14+
github.com/beeker1121/goque v2.1.0+incompatible // indirect
15+
github.com/davecgh/go-spew v1.1.1 // indirect
16+
github.com/go-ole/go-ole v1.2.5 // indirect
17+
github.com/golang/snappy v0.0.4 // indirect
18+
github.com/pmezard/go-difflib v1.0.0 // indirect
19+
github.com/shirou/gopsutil/v3 v3.21.6 // indirect
20+
github.com/syndtr/goleveldb v1.0.0 // indirect
21+
go.uber.org/atomic v1.9.0 // indirect
22+
golang.org/x/sys v0.1.0 // indirect; indirect, relates to: https://github.com/sirupsen/logrus/pull/1402
23+
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
24+
)

0 commit comments

Comments
 (0)