Post

Classify protected Talos route inventory failures

Classify protected Talos route inventory failures

This push adds structured failure classification to Talos route inventory checks in the platform maintenance pipeline. When a Talos route read fails, the CI stage now records the reviewed node name and a fixed failure category instead of leaking raw transport diagnostics into the receipt. I made this change to keep unclassified transport output out of the operational receipt while still giving operators enough signal to distinguish certificate, TLS, authorization, resource, timeout, and connection failures.

Talos route inventory failure classification

The new read_talos_routes function in scripts/ci/platform-maintenance-stage.sh runs talosctl get routes -o json against each reviewed node. On success it decodes route destinations with jq. On failure it inspects the stderr diagnostic and maps it to one of seven fixed categories: certificate-validity, tls, authorization, resource-not-found, timeout, connection, or unclassified. The receipt records only the node name and the reason category. Raw diagnostic output is never written to the receipt.

Receipt safety and evidence boundaries

The validation gates documentation now states that a failed Talos route read records the reviewed node name and a fixed failure category such as certificate validity or timeout, and that the receipt omits raw transport output. The OPA policy in policy/workflows.rego and its test in policy/workflows_test.rego were adjusted to match the new receipt shape, and scripts/ci/offline-checks.sh received a corresponding line change. These are code and test changes, not deployment or runtime verification results. The merge represents committed CI logic; it does not by itself confirm that a route inventory failure occurred in production.

Platform team transfer

A platform team could reuse this pattern wherever a privileged control-plane call must be observed without exposing transport internals. Classify stderr against an allowlist of known failure modes, emit only the subject identifier and the category, and route everything else to unclassified rather than passthrough. This keeps audit receipts safe while retaining actionable triage signal.

This post is licensed under CC BY 4.0 by the author.