List runtime response policies
curl --request GET \
--url https://app.trustivan.com/api/v1/runtime/response/policies \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/runtime/response/policies"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/runtime/response/policies', 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/runtime/response/policies"
req, _ := http.NewRequest("GET", 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"
}List runtime response policies
A response policy says what to do when a curated runtime rule fires in
a pod: which rules (by categories or curated rule_ids, at or above
min_severity), which action (kill_pod, isolate_network,
scale_to_zero, quarantine_label), whether it runs on its own
(mode: auto) or waits for a person (mode: approval), and whether
it is a dry_run. Policies never act in kube-system, kube-public or
kube-node-lease, nor on a customer’s own extra Falco rules.
Behind findings:read.
GET
/
runtime
/
response
/
policies
List runtime response policies
curl --request GET \
--url https://app.trustivan.com/api/v1/runtime/response/policies \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/runtime/response/policies"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/runtime/response/policies', 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/runtime/response/policies"
req, _ := http.NewRequest("GET", 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"
}Authorizations
Response
The policies, oldest first.