curl --request GET \
--url https://app.trustivan.com/api/v1/kubernetes/clusters/{id}/posture \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/kubernetes/clusters/{id}/posture"
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/kubernetes/clusters/{id}/posture', 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}/posture"
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"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}A cluster's last posture and benchmark rollups
What the most recent collection concluded, stored per cluster and read back without calling the cluster.
outcomes has one entry per check of the KSPM catalogue (checks
describes each, with its severity, remediation and control
mappings): fail with the number of subjects that failed, pass,
no_resources (read, nothing to judge), or not_assessed with a
reason: a source the check reads was refused (unread names each
source and why), the cluster has no trusted registries configured,
or the run was partial without naming where. An unread source is
never reported as a pass.
failures lists each failing subject with its namespace, workload
(Kind/name) and container, so a client can group them. At most
2,000 are kept; failures_omitted counts the rest, which are still
findings.
benchmarks rolls the outcomes up to the CIS Kubernetes Benchmark
1.9.0 and the NSA/CISA Kubernetes Hardening Guidance 1.2. Controls
that need node or control-plane access (CIS sections 1 to 4, and the
guidance’s control-plane, encryption and audit sections) are always
not_assessed with that reason. A control whose checks all had nothing
to judge is not_applicable, not passing. A configuration result, not an
attestation; each benchmark carries the disclaimer.
Behind assets:read.
curl --request GET \
--url https://app.trustivan.com/api/v1/kubernetes/clusters/{id}/posture \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/kubernetes/clusters/{id}/posture"
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/kubernetes/clusters/{id}/posture', 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}/posture"
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"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Response
The cluster, its last posture, the check catalogue, and both rollups.