1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-11-24 17:08:14 +00:00

ASFF: no longer include timestamp in the finding ID (#1127)

This commit is contained in:
Huang Huang 2022-03-27 14:36:24 +08:00 committed by GitHub
parent 85020ff474
commit be157a8a5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,7 +249,7 @@ func (controls *Controls) ASFF() ([]*securityhub.AwsSecurityFinding, error) {
AwsAccountId: aws.String(a), AwsAccountId: aws.String(a),
Confidence: aws.Int64(100), Confidence: aws.Int64(100),
GeneratorId: aws.String(fmt.Sprintf("%s/cis-kubernetes-benchmark/%s/%s", arn, controls.Version, check.ID)), GeneratorId: aws.String(fmt.Sprintf("%s/cis-kubernetes-benchmark/%s/%s", arn, controls.Version, check.ID)),
Id: aws.String(fmt.Sprintf("%s%sEKSnodeID+%s%s", arn, a, check.ID, tf)), Id: aws.String(fmt.Sprintf("%s%sEKSnodeID+%s", arn, a, check.ID)),
CreatedAt: aws.String(tf), CreatedAt: aws.String(tf),
Description: aws.String(check.Text), Description: aws.String(check.Text),
ProductArn: aws.String(arn), ProductArn: aws.String(arn),