Skip to content

Commit

Permalink
feat(falcosidekick): added new ListenAddr field in falcoEvent (#196)
Browse files Browse the repository at this point in the history
* feat(falcosidekick): added new `ListenAddr` field in `falcoEvent`

Signed-off-by: Dwi Siswanto <git@dw1.io>

* feat(teler): impl new `ListenAddr` output fields for Falco event

Signed-off-by: Dwi Siswanto <git@dw1.io>

* docs(README): add new `ListenAddr` field desc

Signed-off-by: Dwi Siswanto <git@dw1.io>

---------

Signed-off-by: Dwi Siswanto <git@dw1.io>
  • Loading branch information
dwisiswant0 committed Jun 7, 2024
1 parent ec7cd92 commit 2a63420
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ The event forwarded to Falco Sidekick instance includes the following informatio
* **`teler.caller`**: Identifies the application source that invoked teler-waf.
* **`teler.id`**: Represents a unique identifier for the rejected request.
* **`teler.threat`**: Specifies the category of the threat.
* **`teler.listen_addr`**: Denotes the network address on which teler-waf is listening for incoming requests.
* **`request.body`**: Contains the body of the associated request.
* **`request.headers`**: Lists the headers from the associated request.
* **`request.ip_addr`**: Discloses the IP address of the associated request.
Expand Down
1 change: 1 addition & 0 deletions falcosidekick.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type falcoEvent struct {
Caller string `json:"teler.caller"`
ID string `json:"teler.id"`
Threat string `json:"teler.threat"`
ListenAddr string `json:"teler.listen_addr"`
RequestBody string `json:"request.body"`
RequestHeaders string `json:"request.headers"`
RequestIPAddr string `json:"request.ip_addr"`
Expand Down
1 change: 1 addition & 0 deletions teler.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ func (t *Teler) sendLogs(r *http.Request, k threat.Threat, id string, msg string
event.OutputFields.Caller = t.caller
event.OutputFields.ID = id
event.OutputFields.Threat = cat
event.OutputFields.ListenAddr = listenAddr
event.OutputFields.RequestBody = string(body)
event.OutputFields.RequestHeaders = string(jsonHeaders)
event.OutputFields.RequestIPAddr = ipAddr
Expand Down

0 comments on commit 2a63420

Please sign in to comment.