Integrate SPIFFE credentials and live fleet authorization into DNS #3

Merged
ams-tech merged 1 commit from codex/spiffe-dns-integration into main 2026-10-01 00:06:30 -04:00
ams-tech commented 2026-09-29 00:52:48 -04:00 (Migrated from github.com)

Add an explicit SPIFFE mode to the DNS updater and controller. Both consume rotating Workload API credentials; clients require exact server identities, and the controller revalidates the client certificate and requests a fresh authenticated fleet decision before each protected request. The assigned DNS device number remains separate from the fleet logical device ID.

File credentials remain the explicit compatibility default. SQLite intent, idempotency, generation, lease, publication and TSIG behavior are preserved. Publisher credentials and Workload API access remain separated.

Depends on the DNSWorkloadAuthorization draft in https://github.com/pd-codex/kaiba-contracts/pull/14. This adds operational workload authorization, not production enrollment or hardware qualification.

Validation: Go tests (including real mTLS rotation, exact peer identity, fresh nonce and decision validation), pinned contract fixtures, Nix package build, and module evaluation passed locally. The combined SPIRE/fleet/PostgreSQL/DNS VM in https://github.com/PseudoDesign/kaiba-fleet/pull/28 also passed locally, including actual publication and denial after quarantine, replacement, or database outage. Remote CI passed the seven-VM file-mode compatibility topology and ARM64 package build. Hardware qualification remains open.

Add an explicit SPIFFE mode to the DNS updater and controller. Both consume rotating Workload API credentials; clients require exact server identities, and the controller revalidates the client certificate and requests a fresh authenticated fleet decision before each protected request. The assigned DNS device number remains separate from the fleet logical device ID. File credentials remain the explicit compatibility default. SQLite intent, idempotency, generation, lease, publication and TSIG behavior are preserved. Publisher credentials and Workload API access remain separated. Depends on the DNSWorkloadAuthorization draft in https://github.com/pd-codex/kaiba-contracts/pull/14. This adds operational workload authorization, not production enrollment or hardware qualification. Validation: Go tests (including real mTLS rotation, exact peer identity, fresh nonce and decision validation), pinned contract fixtures, Nix package build, and module evaluation passed locally. The combined SPIRE/fleet/PostgreSQL/DNS VM in https://github.com/PseudoDesign/kaiba-fleet/pull/28 also passed locally, including actual publication and denial after quarantine, replacement, or database outage. Remote CI passed the seven-VM file-mode compatibility topology and ARM64 package build. Hardware qualification remains open.
Sign in to join this conversation.
No description provided.