forked from grantmcconnaughey/Lintly
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request grantmcconnaughey#22 from 23andMe/SEC-1443-write-t…
…fsec-parser-for-Lintly Adding tfsec parser for lintly
- Loading branch information
Showing
6 changed files
with
147 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
resource "aws_security_group_rule" "my-rule" { | ||
type = "ingress" | ||
cidr_blocks = ["0.0.0.0/0"] | ||
} | ||
|
||
resource "aws_alb_listener" "my-alb-listener"{ | ||
port = "80" | ||
protocol = "HTTP" | ||
} | ||
|
||
resource "aws_db_security_group" "my-group" { | ||
|
||
} | ||
|
||
variable "enableEncryption" { | ||
default = false | ||
} | ||
|
||
resource "azurerm_managed_disk" "source" { | ||
encryption_settings { | ||
enabled = var.enableEncryption | ||
} | ||
} | ||
|
||
resource "aws_api_gateway_domain_name" "missing_security_policy" { | ||
} | ||
|
||
resource "aws_api_gateway_domain_name" "empty_security_policy" { | ||
security_policy = "" | ||
} | ||
|
||
resource "aws_api_gateway_domain_name" "outdated_security_policy" { | ||
security_policy = "TLS_1_0" | ||
} | ||
|
||
resource "aws_api_gateway_domain_name" "valid_security_policy" { | ||
security_policy = "TLS_1_2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"results": [ | ||
{ | ||
"rule_id": "AWS004", | ||
"rule_description": "Use of plain HTTP.", | ||
"rule_provider": "aws", | ||
"link": "See https://tfsec.dev/docs/aws/AWS004/ for more information.", | ||
"location": { | ||
"filename": "relative/path/to/file1", | ||
"start_line": 8, | ||
"end_line": 8 | ||
}, | ||
"description": "Resource aws_alb_listener.my-alb-listener uses plain HTTP instead of HTTPS.", | ||
"severity": "ERROR", | ||
"passed": false | ||
}, | ||
{ | ||
"rule_id": "AZU003", | ||
"rule_description": "Unencrypted managed disk.", | ||
"rule_provider": "azure", | ||
"link": "See https://tfsec.dev/docs/azure/AZU003/ for more information.", | ||
"location": { | ||
"filename": "relative/path/to/file2", | ||
"start_line": 21, | ||
"end_line": 21 | ||
}, | ||
"description": "Resource azurerm_managed_disk.source defines an unencrypted managed disk.", | ||
"severity": "ERROR", | ||
"passed": false | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters