curl --request POST \
--url https://app.trustivan.com/api/v1/kubernetes/clusters/{id}/admission/review \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/kubernetes/clusters/{id}/admission/review"
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}/admission/review', 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}/admission/review"
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"
}The validating admission webhook
Receives a Kubernetes AdmissionReview and answers with one. Called by
the customer’s API server, not by a person.
It answers 200 in every adjudication case, including refusal: the allow/deny decision lives inside the AdmissionReview body, which is where Kubernetes looks for it. A non-2xx would make the API server apply ITS failure policy instead of the tenant’s configured one, silently replacing the customer’s choice.
The CALLER is decided by the same authorization broker every other endpoint asks. There is no second decision engine and no second kill switch.
The WORKLOAD is then judged separately, and only ever to narrow the
answer: a request the broker refused stays refused whatever the pod
looks like. What that judgement does (nothing, a warning, or a
refusal) is the cluster’s mode; see
PUT /kubernetes/clusters/{id}/admission. A workload with problems is
recorded in the audit trail in every mode, including audit.
A step_up outcome ADMITS with a warning: an admission webhook has
nobody to challenge, and refusing would turn every step-up rule into a
deployment failure no developer could clear.
Behind the ordinary authenticator: the cluster presents a TRUSTIVAN credential rather than being trusted by network position.
curl --request POST \
--url https://app.trustivan.com/api/v1/kubernetes/clusters/{id}/admission/review \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/kubernetes/clusters/{id}/admission/review"
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}/admission/review', 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}/admission/review"
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
An AdmissionReview response echoing the request UID.