Skip to content

feat(fleet): Attest RPC + enrollment write RPCs + managed-state config#46

Merged
Bugs5382 merged 1 commit into
mainfrom
feat/45-enrollment-contract
Jul 15, 2026
Merged

feat(fleet): Attest RPC + enrollment write RPCs + managed-state config#46
Bugs5382 merged 1 commit into
mainfrom
feat/45-enrollment-contract

Conversation

@Bugs5382

Copy link
Copy Markdown
Contributor

What and why

Phase 1 (contract) of FM enrollment slice B (manager #21) — the wire surface the engine, manager, and web consume in later phases.

  • Node Attest(nonce) — the node signs a manager nonce with its CA identity key (challenge-response attestation). Response carries the ECDSA signature + the identity public key (PKIX/DER). ek_pub/ek_cert are reserved for v1.1 TPM-EK attestation (not populated in v1.0.0).
  • Fleet write RPCsCreateEnrollment / ApproveEnrollment / RejectEnrollment; EnrollmentRequest gains kind (LINK|SUBORDINATE) + pinned_key_sha256 (TOFU pin).
  • MachineConfig.Management { manager_cn, trust_pem, operator_surface_readonly } — the LINK target, carried through ApplyConfig.
  • Refreshed the FleetService doc to reflect read + write.

Contract-only; no behavior. Merge order: this lands first, then cryptos (Attest handler + config round-trip) → manager → web.

Closes #45

Verification

  • buf generate produces Go + TS; only proto + generated files changed (13 files)
  • go build ./... clean
  • New surface present in generated code (Attest in NodeService; Create/Approve/Reject in fleetv1connect; Management in config.pb.go)

@Bugs5382 Bugs5382 self-assigned this Jul 15, 2026
@github-actions github-actions Bot added the enhancement New feature (feat). Minor version bump. label Jul 15, 2026
@Bugs5382 Bugs5382 added this to the v1.0.0 milestone Jul 15, 2026
@Bugs5382 Bugs5382 merged commit 2f0e771 into main Jul 15, 2026
12 checks passed
@Bugs5382 Bugs5382 deleted the feat/45-enrollment-contract branch July 15, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature (feat). Minor version bump.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(fleet): Attest RPC + enrollment write RPCs + managed-state config

1 participant