curl --request POST \
--url https://app.trustivan.com/api/v1/kubernetes/clusters/{id}/events \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/kubernetes/clusters/{id}/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/kubernetes/clusters/{id}/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/kubernetes/clusters/{id}/events"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Ingest runtime signals from a sensor
Accepts Falco output, as a single event or an array (at most 500
events and 1 MiB). The trustivan-runtime Helm chart installs Falco
with TRUSTIVAN’s curated rule library and posts here; any Falco that posts
JSON output with an API key holding scans:create works too. Unknown
fields are ignored; at most 64 output fields are kept per event.
Each event is correlated to the workload it happened in and to the image that workload runs, which is what turns “a shell was opened in a container” into “a shell was opened in payments/api, which runs this image, which has these vulnerabilities”.
One unreadable event does not fail the batch: the count of rejects is returned instead, so a sensor whose format has drifted can discover it from its own logs. The batch SIZE limit is enforced, because that bound protects against a compromised sensor rather than a malformed one.
Repeats are collapsed: an event with the same rule, pod, container,
image and detail as one stored in the last 10 minutes is counted on
that event (repeats) instead of stored. At most 600 events are stored
per cluster and minute; the rest are counted as dropped. An event
carrying an image digest is joined to the scanned image with that
digest even when its pod is not inventoried. New critical and high
findings are sent to the notification destinations subscribed to scan
alerts.
Runtime findings are never resolved by reconciliation. A stream is not a survey: the absence of an event means nothing happened, not that a previous detection is fixed.
Behind scans:create.
curl --request POST \
--url https://app.trustivan.com/api/v1/kubernetes/clusters/{id}/events \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/kubernetes/clusters/{id}/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/kubernetes/clusters/{id}/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/kubernetes/clusters/{id}/events"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Response
How many events were accepted (stored), rejected (unreadable), correlated, counted as repeats and dropped over the budget, how many findings were created or reopened, and how many response actions the organization's response policies created (actions).