MM-53165 Add X-Forwarded-For header to audit for rest api calls (#24390)

* Add X-Forwarded-For header to audit for rest api calls

* fix unit test
Этот коммит содержится в:
Doug Lauder
2023-08-28 07:24:55 -04:00
коммит произвёл GitHub
родитель 0a499770e6
Коммит 84b52333c1
6 изменённых файлов: 28 добавлений и 15 удалений

Просмотреть файл

@@ -23,10 +23,11 @@ type EventData struct {
// EventActor is the subject triggering the event
type EventActor struct {
UserId string `json:"user_id"`
SessionId string `json:"session_id"`
Client string `json:"client"`
IpAddress string `json:"ip_address"`
UserId string `json:"user_id"`
SessionId string `json:"session_id"`
Client string `json:"client"`
IpAddress string `json:"ip_address"`
XForwardedFor string `json:"x_forwarded_for"`
}
// EventMeta is a key-value store to store related information to the event that is not directly related to the modified entity