-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce
AppSec
rule evaluation results
This commit ensures that responses from the CrowdSec AppSec remediation component are properly evaluated and acted upon. The `AppSec` support can be enabled either as a dedicated handler by configuring a route to have the `appsec` directive. That will use the `http.handlers.appsec` module. It also enables `AppSec` checks on the the HTTP handler configured through the `crowdsec` directive using the `http.handlers.crowdsec` module by default. In a future commit `AppSec` support will be enabled based on configuration on the `http.handlers.crowdsec` component.
- Loading branch information
Showing
9 changed files
with
188 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package bouncer | ||
|
||
type AppSecError struct { | ||
Err error | ||
Action string | ||
Duration string | ||
StatusCode int | ||
} | ||
|
||
func (a AppSecError) Error() string { | ||
return a.Err.Error() | ||
} |
Oops, something went wrong.