test fixes and new product advisories work
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
[
|
||||
{
|
||||
"event_type": 1,
|
||||
"timestamp_ns": 1000000000000,
|
||||
"pid": 1234,
|
||||
"tid": 1234,
|
||||
"cgroup_id": 1234567890,
|
||||
"comm": "myapp",
|
||||
"payload": {
|
||||
"dfd": -100,
|
||||
"flags": 0,
|
||||
"mode": 0,
|
||||
"filename": "/etc/myapp/config.yaml"
|
||||
}
|
||||
},
|
||||
{
|
||||
"event_type": 1,
|
||||
"timestamp_ns": 1000100000000,
|
||||
"pid": 1234,
|
||||
"tid": 1235,
|
||||
"cgroup_id": 1234567890,
|
||||
"comm": "myapp",
|
||||
"payload": {
|
||||
"dfd": -100,
|
||||
"flags": 1,
|
||||
"mode": 420,
|
||||
"filename": "/var/log/myapp/access.log"
|
||||
}
|
||||
},
|
||||
{
|
||||
"event_type": 1,
|
||||
"timestamp_ns": 1000200000000,
|
||||
"pid": 5678,
|
||||
"tid": 5678,
|
||||
"cgroup_id": 9876543210,
|
||||
"comm": "nginx",
|
||||
"payload": {
|
||||
"dfd": -100,
|
||||
"flags": 0,
|
||||
"mode": 0,
|
||||
"filename": "/etc/nginx/nginx.conf"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,26 @@
|
||||
[
|
||||
{
|
||||
"event_type": 2,
|
||||
"timestamp_ns": 900000000000,
|
||||
"pid": 1234,
|
||||
"cgroup_id": 1234567890,
|
||||
"comm": "myapp",
|
||||
"payload": {
|
||||
"ppid": 1,
|
||||
"filename": "/app/bin/myapp",
|
||||
"argv": ["myapp", "--config", "/etc/myapp/config.yaml"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"event_type": 2,
|
||||
"timestamp_ns": 850000000000,
|
||||
"pid": 5678,
|
||||
"cgroup_id": 9876543210,
|
||||
"comm": "nginx",
|
||||
"payload": {
|
||||
"ppid": 1,
|
||||
"filename": "/usr/bin/nginx",
|
||||
"argv": ["nginx", "-g", "daemon off;"]
|
||||
}
|
||||
}
|
||||
]
|
||||
28
tests/reachability/fixtures/ebpf/events/ssl-events.json
Normal file
28
tests/reachability/fixtures/ebpf/events/ssl-events.json
Normal file
@@ -0,0 +1,28 @@
|
||||
[
|
||||
{
|
||||
"event_type": 5,
|
||||
"timestamp_ns": 1000500000000,
|
||||
"pid": 1234,
|
||||
"cgroup_id": 1234567890,
|
||||
"comm": "myapp",
|
||||
"payload": {
|
||||
"operation": 1,
|
||||
"requested_bytes": 1024,
|
||||
"actual_bytes": 1024,
|
||||
"ssl_ptr": 140234567890
|
||||
}
|
||||
},
|
||||
{
|
||||
"event_type": 5,
|
||||
"timestamp_ns": 1000600000000,
|
||||
"pid": 1234,
|
||||
"cgroup_id": 1234567890,
|
||||
"comm": "myapp",
|
||||
"payload": {
|
||||
"operation": 0,
|
||||
"requested_bytes": 4096,
|
||||
"actual_bytes": 2048,
|
||||
"ssl_ptr": 140234567890
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,34 @@
|
||||
[
|
||||
{
|
||||
"event_type": 3,
|
||||
"timestamp_ns": 1000300000000,
|
||||
"pid": 1234,
|
||||
"cgroup_id": 1234567890,
|
||||
"comm": "myapp",
|
||||
"payload": {
|
||||
"family": 2,
|
||||
"old_state": 2,
|
||||
"new_state": 1,
|
||||
"sport": 45678,
|
||||
"dport": 5432,
|
||||
"saddr_v4": "10.0.0.5",
|
||||
"daddr_v4": "10.0.1.100"
|
||||
}
|
||||
},
|
||||
{
|
||||
"event_type": 3,
|
||||
"timestamp_ns": 1000400000000,
|
||||
"pid": 5678,
|
||||
"cgroup_id": 9876543210,
|
||||
"comm": "nginx",
|
||||
"payload": {
|
||||
"family": 2,
|
||||
"old_state": 0,
|
||||
"new_state": 1,
|
||||
"sport": 80,
|
||||
"dport": 54321,
|
||||
"saddr_v4": "0.0.0.0",
|
||||
"daddr_v4": "192.168.1.50"
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user