curl --request POST \
--url https://api.kombify.io/v1/homelab/api/v1/workers/{id}/posture \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"schema_version": "kombify.guard-posture/v1",
"source_epoch": "<string>",
"source_sequence": 1,
"observed_at": "2023-11-07T05:31:56Z",
"check_in": true,
"guard_version": "<string>",
"guard_signed": true,
"verify_request_id": "<string>"
}
'import requests
url = "https://api.kombify.io/v1/homelab/api/v1/workers/{id}/posture"
payload = {
"schema_version": "kombify.guard-posture/v1",
"source_epoch": "<string>",
"source_sequence": 1,
"observed_at": "2023-11-07T05:31:56Z",
"check_in": True,
"guard_version": "<string>",
"guard_signed": True,
"verify_request_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
schema_version: 'kombify.guard-posture/v1',
source_epoch: '<string>',
source_sequence: 1,
observed_at: '2023-11-07T05:31:56Z',
check_in: true,
guard_version: '<string>',
guard_signed: true,
verify_request_id: '<string>'
})
};
fetch('https://api.kombify.io/v1/homelab/api/v1/workers/{id}/posture', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.kombify.io/v1/homelab/api/v1/workers/{id}/posture",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'schema_version' => 'kombify.guard-posture/v1',
'source_epoch' => '<string>',
'source_sequence' => 1,
'observed_at' => '2023-11-07T05:31:56Z',
'check_in' => true,
'guard_version' => '<string>',
'guard_signed' => true,
'verify_request_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kombify.io/v1/homelab/api/v1/workers/{id}/posture"
payload := strings.NewReader("{\n \"schema_version\": \"kombify.guard-posture/v1\",\n \"source_epoch\": \"<string>\",\n \"source_sequence\": 1,\n \"observed_at\": \"2023-11-07T05:31:56Z\",\n \"check_in\": true,\n \"guard_version\": \"<string>\",\n \"guard_signed\": true,\n \"verify_request_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.kombify.io/v1/homelab/api/v1/workers/{id}/posture")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"schema_version\": \"kombify.guard-posture/v1\",\n \"source_epoch\": \"<string>\",\n \"source_sequence\": 1,\n \"observed_at\": \"2023-11-07T05:31:56Z\",\n \"check_in\": true,\n \"guard_version\": \"<string>\",\n \"guard_signed\": true,\n \"verify_request_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kombify.io/v1/homelab/api/v1/workers/{id}/posture")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"schema_version\": \"kombify.guard-posture/v1\",\n \"source_epoch\": \"<string>\",\n \"source_sequence\": 1,\n \"observed_at\": \"2023-11-07T05:31:56Z\",\n \"check_in\": true,\n \"guard_version\": \"<string>\",\n \"guard_signed\": true,\n \"verify_request_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"posture": {
"state": "disabled",
"verify_requested": true,
"verify_request_id": "<string>",
"verify_interval_seconds": 1,
"local_policy": {
"contract_version": "guard.local-repair/v1",
"policy_id": "<string>",
"policy_version": 2,
"tenant_id": "<string>",
"worker_id": "<string>",
"generation": 2,
"action": "stackkit.host-security-repair",
"controls": [
"bruteforce.fail2ban"
],
"release": {
"version": "<string>",
"platform_os": "<string>",
"platform_arch": "<string>",
"archive_sha256": "<string>",
"release_index_sha256": "<string>"
},
"policy_expires_at": "2023-11-07T05:31:56Z",
"issued_at": "2023-11-07T05:31:56Z",
"bounds": {
"cooldown_seconds": 123,
"max_attempts_per_day": 123,
"breaker_failures": 123,
"breaker_open_seconds": 123
},
"history": [
{
"controls": [
"<string>"
],
"requested_at": "2023-11-07T05:31:56Z",
"operation_id": "<string>",
"finished_at": "2023-11-07T05:31:56Z",
"failed": true
}
],
"key_id": "<string>",
"signature": "<string>",
"server_id": "<string>"
}
}
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}Report kombify Guard host security and backup observations
The Guard’s posture channel. A full report carries what the Guard observed through the privileged executor’s read-only StackKits operations: the stackkit.host-security-evidence/v1 document of stackkit host security verify and the receipt states of stackkit backup status. A check-in (check_in: true) carries nothing and only asks whether a fresh observation was requested. The identity is the authenticated worker’s; the control plane recomputes the verdict from the controls, judges time by its own clock, and records a document it cannot read (unknown schema version, unknown control or state, bad freshness window) as evidence_rejected, which leaves no earlier pass standing. A StackKits release without the command is reported as unsupported and shows as security.state: unknown with reason_code: stackkit_cli_unsupported. The answer is the directive: verify_requested and the routine cadence, and while the owner’s approval of automatic repair is active, local_policy: the signed grant of that policy version. Editions without posture answer state: disabled. The same channel carries the evidence of a repair the Guard ran on its own under a local policy while the control plane was unreachable (a body with operation_id, GuardLocalOperationEvidence). It is accepted only against the registered policy version it names (same tenant, worker and exact expiry, a credential generation no newer than the authenticating one, started inside that version’s lifetime, for controls it covers, within the persisted cooldown, attempt budget and circuit breaker) and acknowledged only after it is recorded in the server’s repair journal. An identical repeat is acknowledged again (duplicate: true); anything else is refused with a structured reason and leaves no record.
curl --request POST \
--url https://api.kombify.io/v1/homelab/api/v1/workers/{id}/posture \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"schema_version": "kombify.guard-posture/v1",
"source_epoch": "<string>",
"source_sequence": 1,
"observed_at": "2023-11-07T05:31:56Z",
"check_in": true,
"guard_version": "<string>",
"guard_signed": true,
"verify_request_id": "<string>"
}
'import requests
url = "https://api.kombify.io/v1/homelab/api/v1/workers/{id}/posture"
payload = {
"schema_version": "kombify.guard-posture/v1",
"source_epoch": "<string>",
"source_sequence": 1,
"observed_at": "2023-11-07T05:31:56Z",
"check_in": True,
"guard_version": "<string>",
"guard_signed": True,
"verify_request_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
schema_version: 'kombify.guard-posture/v1',
source_epoch: '<string>',
source_sequence: 1,
observed_at: '2023-11-07T05:31:56Z',
check_in: true,
guard_version: '<string>',
guard_signed: true,
verify_request_id: '<string>'
})
};
fetch('https://api.kombify.io/v1/homelab/api/v1/workers/{id}/posture', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.kombify.io/v1/homelab/api/v1/workers/{id}/posture",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'schema_version' => 'kombify.guard-posture/v1',
'source_epoch' => '<string>',
'source_sequence' => 1,
'observed_at' => '2023-11-07T05:31:56Z',
'check_in' => true,
'guard_version' => '<string>',
'guard_signed' => true,
'verify_request_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kombify.io/v1/homelab/api/v1/workers/{id}/posture"
payload := strings.NewReader("{\n \"schema_version\": \"kombify.guard-posture/v1\",\n \"source_epoch\": \"<string>\",\n \"source_sequence\": 1,\n \"observed_at\": \"2023-11-07T05:31:56Z\",\n \"check_in\": true,\n \"guard_version\": \"<string>\",\n \"guard_signed\": true,\n \"verify_request_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.kombify.io/v1/homelab/api/v1/workers/{id}/posture")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"schema_version\": \"kombify.guard-posture/v1\",\n \"source_epoch\": \"<string>\",\n \"source_sequence\": 1,\n \"observed_at\": \"2023-11-07T05:31:56Z\",\n \"check_in\": true,\n \"guard_version\": \"<string>\",\n \"guard_signed\": true,\n \"verify_request_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kombify.io/v1/homelab/api/v1/workers/{id}/posture")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"schema_version\": \"kombify.guard-posture/v1\",\n \"source_epoch\": \"<string>\",\n \"source_sequence\": 1,\n \"observed_at\": \"2023-11-07T05:31:56Z\",\n \"check_in\": true,\n \"guard_version\": \"<string>\",\n \"guard_signed\": true,\n \"verify_request_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"posture": {
"state": "disabled",
"verify_requested": true,
"verify_request_id": "<string>",
"verify_interval_seconds": 1,
"local_policy": {
"contract_version": "guard.local-repair/v1",
"policy_id": "<string>",
"policy_version": 2,
"tenant_id": "<string>",
"worker_id": "<string>",
"generation": 2,
"action": "stackkit.host-security-repair",
"controls": [
"bruteforce.fail2ban"
],
"release": {
"version": "<string>",
"platform_os": "<string>",
"platform_arch": "<string>",
"archive_sha256": "<string>",
"release_index_sha256": "<string>"
},
"policy_expires_at": "2023-11-07T05:31:56Z",
"issued_at": "2023-11-07T05:31:56Z",
"bounds": {
"cooldown_seconds": 123,
"max_attempts_per_day": 123,
"breaker_failures": 123,
"breaker_open_seconds": 123
},
"history": [
{
"controls": [
"<string>"
],
"requested_at": "2023-11-07T05:31:56Z",
"operation_id": "<string>",
"finished_at": "2023-11-07T05:31:56Z",
"failed": true
}
],
"key_id": "<string>",
"signature": "<string>",
"server_id": "<string>"
}
}
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}Autorizaciones
Cuerpo
- Option 1
- Option 2
