-
Notifications
You must be signed in to change notification settings - Fork 509
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new policy for checking insecure_ssl on github_organization_webhook
Add a new policy to the GitHub provider to check if insecure_ssl was set to true on the github_organization_webhook resource. Resolves #339
- Loading branch information
1 parent
f1c80fe
commit c228665
Showing
5 changed files
with
27 additions
and
1 deletion.
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
10 changes: 10 additions & 0 deletions
10
pkg/policies/opa/rego/github/github_organization_webhook/accurics.github.EKM.1.json
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,10 @@ | ||
{ | ||
"name": "insecureSslUsed", | ||
"file": "insecureSslUsed.rego", | ||
"template_args": null, | ||
"severity": "MEDIUM", | ||
"description": "Insecure SSL is used for organization webhook.", | ||
"reference_id": "accurics.github.EKM.1", | ||
"category": "Encryption and Key Management", | ||
"version": 1 | ||
} |
6 changes: 6 additions & 0 deletions
6
pkg/policies/opa/rego/github/github_organization_webhook/insecureSslUsed.rego
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,6 @@ | ||
package accurics | ||
|
||
insecureSslUsed[api.id] { | ||
api := input.github_organization_webhook[_] | ||
api.config.configuration[_].insecure_ssl == true | ||
} |