teleport/lib/restrictedsession
Vitor Enes c96809399a
Add server_hostname to session.* events (#18812)
With this commit, `session.*` events now also contain a `server_hostname` field.

Example:

```json
{
  "argv": null,
  "cgroup_id": 6926,
  "cluster_name": "vitor.teleport.sh",
  "code": "T4000I",
  "ei": 17,
  "event": "session.command",
  "login": "root",
  "namespace": "default",
  "path": "/usr/bin/date",
  "pid": 98679,
  "ppid": 98668,
  "program": "date",
  "return_code": 0,
  "server_hostname": "ip-172-31-10-157",
  "server_id": "8369d1d1-eea5-4074-8f64-0103f1e1fb00",
  "sid": "a40353c4-93dc-4d6b-a481-5546ecafb83e",
  "time": "2022-11-28T16:32:34.342Z",
  "uid": "cbd9e562-8932-405d-974c-11637f91d711",
  "user": "vitor@goteleport.com"
}
```
2022-11-28 20:28:41 +00:00
..
bytecode Updated BPF asset embedding. 2021-07-28 17:16:14 -07:00
audit.go Add server_hostname to session.* events (#18812) 2022-11-28 20:28:41 +00:00
config.go Enable network BPF modules only when needed. (#18497) 2022-11-25 18:33:40 +00:00
fuzz_test.go oss fuzz integration (#13473) 2022-06-18 21:28:07 +00:00
manager.go Fix BPF (#17269) 2022-10-12 18:41:26 +00:00
network.go Bump to libbpfgo v0.2.5 (#12288) 2022-06-08 05:00:01 +00:00
nop.go Enable network BPF modules only when needed. (#18497) 2022-11-25 18:33:40 +00:00
restricted.go Enable network BPF modules only when needed. (#18497) 2022-11-25 18:33:40 +00:00
restricted_test.go Add server_hostname to session.* events (#18812) 2022-11-28 20:28:41 +00:00
watcher.go Run GCI as make fix-imports (#17956) 2022-11-04 15:46:46 +00:00