-
Notifications
You must be signed in to change notification settings - Fork 504
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 #350 from HorizonNet/issue-339
Add new policy for checking insecure_ssl on github_organization_webhook
- Loading branch information
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 | ||
} |