forked from CrowdStrike/falcon-integration-gateway
-
Notifications
You must be signed in to change notification settings - Fork 1
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 CrowdStrike#162 from carlosmmatos/generic-backend
feat(generic): add new generic backend
- Loading branch information
Showing
7 changed files
with
62 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Generic Backend | ||
|
||
Generic backend is useful for testing and development purposes. It is not recommended for production use. | ||
|
||
## Example Configuration file | ||
|
||
[config/config.ini](https://github.com/CrowdStrike/falcon-integration-gateway/blob/main/config/config.ini) configures Falcon Integration Gateway. Below is a minimal configuration example for GENERIC backend: | ||
|
||
```terminal | ||
[main] | ||
# Cloud backends that are enabled. The gateway will push events to the cloud providers specified below | ||
backends=GENERIC | ||
``` | ||
|
||
## Developer Guide | ||
|
||
1. Build the image | ||
|
||
```shell | ||
docker build . -t falcon-integration-gateway | ||
``` | ||
|
||
1. Run the application | ||
|
||
```shell | ||
docker run -it --rm \ | ||
-e FALCON_CLIENT_ID="$FALCON_CLIENT_ID" \ | ||
-e FALCON_CLIENT_SECRET="$FALCON_CLIENT_SECRET" \ | ||
-e FALCON_CLOUD_REGION="us-1" \ | ||
falcon-integration-gateway:latest | ||
``` |
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,18 @@ | ||
from ...log import log | ||
|
||
|
||
class Runtime(): | ||
RELEVANT_EVENT_TYPES = "ALL" | ||
|
||
def __init__(self): | ||
log.info("GENERIC Backend is enabled.") | ||
|
||
def is_relevant(self, falcon_event): | ||
return True | ||
|
||
def process(self, falcon_event): | ||
# Used to display falcon_evnts in the console | ||
log.info(falcon_event.original_event) | ||
|
||
|
||
__all__ = ['Runtime'] |
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