-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] - [NA-000] - tfsec fixes and ignores (#171)
* first log policy using arn instead of being too open. Also ignoring rule for wildcard users in aws-auth operator * log policy for sqs * Put log policy demands a wildcard in the end, also enabling key rotation for even stack key * block public acls and policies from config bucket * Ignoring bucket rules * Enable versionning for advertisement bucket * ads bucket ignore logging * Excluding image immutability * IMDS v2 mandatory. Only authenticated requests within ec2 to metadata APIs * Enable property mandatory + tflint * metadata http_endpoint disabled * Can't ssh with metadata token disabled * terraform fmt e terraform-docs all things * Remove wrongly created doc
- Loading branch information
1 parent
9f70505
commit 6e570aa
Showing
32 changed files
with
248 additions
and
86 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
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,77 @@ | ||
<!-- BEGIN_TF_DOCS --> | ||
## Requirements | ||
|
||
The following requirements are needed by this module: | ||
|
||
- <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) (>= 1.0.0) | ||
|
||
- <a name="requirement_aws"></a> [aws](#requirement\_aws) (~> 3.38) | ||
|
||
- <a name="requirement_cloudflare"></a> [cloudflare](#requirement\_cloudflare) (~> 3.0) | ||
|
||
- <a name="requirement_http"></a> [http](#requirement\_http) (~> 3.0) | ||
|
||
- <a name="requirement_tls"></a> [tls](#requirement\_tls) (4.0.1) | ||
|
||
## Providers | ||
|
||
The following providers are used by this module: | ||
|
||
- <a name="provider_aws"></a> [aws](#provider\_aws) (~> 3.38) | ||
|
||
- <a name="provider_cloudflare"></a> [cloudflare](#provider\_cloudflare) (~> 3.0) | ||
|
||
- <a name="provider_http"></a> [http](#provider\_http) (~> 3.0) | ||
|
||
- <a name="provider_tls"></a> [tls](#provider\_tls) (4.0.1) | ||
|
||
## Modules | ||
|
||
No modules. | ||
|
||
## Resources | ||
|
||
The following resources are used by this module: | ||
|
||
- [aws_acm_certificate.cert](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/acm_certificate) (resource) | ||
- [cloudflare_origin_ca_certificate.cert](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/origin_ca_certificate) (resource) | ||
- [tls_cert_request.cert_request](https://registry.terraform.io/providers/hashicorp/tls/4.0.1/docs/resources/cert_request) (resource) | ||
- [tls_private_key.private_key](https://registry.terraform.io/providers/hashicorp/tls/4.0.1/docs/resources/private_key) (resource) | ||
- [http_http.cloudflare_certificate_chain](https://registry.terraform.io/providers/hashicorp/http/latest/docs/data-sources/http) (data source) | ||
|
||
## Required Inputs | ||
|
||
The following input variables are required: | ||
|
||
### <a name="input_bitswap_peer_record_name"></a> [bitswap\_peer\_record\_name](#input\_bitswap\_peer\_record\_name) | ||
|
||
Description: Bitswap Peer record name | ||
|
||
Type: `string` | ||
|
||
### <a name="input_cf_domain_name"></a> [cf\_domain\_name](#input\_cf\_domain\_name) | ||
|
||
Description: DNS Zone name | ||
|
||
Type: `string` | ||
|
||
## Optional Inputs | ||
|
||
No optional inputs. | ||
|
||
## Outputs | ||
|
||
The following outputs are exported: | ||
|
||
### <a name="output_aws_certificate_arn"></a> [aws\_certificate\_arn](#output\_aws\_certificate\_arn) | ||
|
||
Description: ACM Certificate | ||
|
||
### <a name="output_bitswap_peer_record_name"></a> [bitswap\_peer\_record\_name](#output\_bitswap\_peer\_record\_name) | ||
|
||
Description: Bitswap Peer record name | ||
|
||
### <a name="output_cf_domain_name"></a> [cf\_domain\_name](#output\_cf\_domain\_name) | ||
|
||
Description: DNS Zone name | ||
<!-- END_TF_DOCS --> |
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
output "bitswap_peer_record_name" { | ||
value = var.bitswap_peer_record_name | ||
value = var.bitswap_peer_record_name | ||
description = "Bitswap Peer record name" | ||
} | ||
|
||
output "cf_domain_name" { | ||
value = var.cf_domain_name | ||
value = var.cf_domain_name | ||
description = "DNS Zone name" | ||
} | ||
|
||
output "aws_certificate_arn" { | ||
value = aws_acm_certificate.cert.arn | ||
sensitive = true | ||
value = aws_acm_certificate.cert.arn | ||
sensitive = true | ||
description = "ACM Certificate" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
provider "tls" {} | ||
provider cloudflare {} | ||
provider "cloudflare" {} |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
variable "cf_domain_name" { | ||
type = string | ||
type = string | ||
description = "DNS Zone name" | ||
} | ||
|
||
variable "bitswap_peer_record_name" { | ||
type = string | ||
type = string | ||
description = "Bitswap Peer record name" | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
output "bitswap_loadbalancer_domain" { | ||
value = "${cloudflare_record.bitswap_peer.hostname}" | ||
value = cloudflare_record.bitswap_peer.hostname | ||
description = "Domain name for bitswap peer" | ||
} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
provider cloudflare {} | ||
provider "cloudflare" {} |
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
Oops, something went wrong.