Skip to content

Private PKI Support#48

Merged
BrandesEric merged 7 commits into
mainfrom
private-pki
Jul 24, 2026
Merged

Private PKI Support#48
BrandesEric merged 7 commits into
mainfrom
private-pki

Conversation

@BrandesEric

Copy link
Copy Markdown
Contributor

This PR adds support for our new Private PKI functionality. It will allow the agent to install private CAs in to the host's trust store when deployments are configured with private certificates.

BrandesEric and others added 7 commits July 2, 2026 13:36
…rt status

The poll response now carries the authoritative set of private root CAs behind
this agent's deploy configs (ca_id, root PEM, sha256, auto_install). The agent:

- persists them to config.json, preserving status fields across polls; entries
  the server drops are removed from config but the root is never uninstalled
  from the OS trust store
- verifies trust on change, on install-error retry, or every 24h (never on
  every 30s poll): Windows via Test-Path/Import-Certificate against
  Cert:\LocalMachine\Root; Linux via ca-certificates anchors
  (Debian update-ca-certificates / RHEL update-ca-trust extract)
- auto-installs missing roots when auto_install is set, otherwise reports
  NOT_TRUSTED; statuses (TRUSTED/INSTALLED/NOT_TRUSTED/ERROR_INSTALL/
  UNSUPPORTED_OS) post on change to the new update-private-ca-status endpoint
- echoes (ca_id, root_sha256, auto_install, status) in the poll request so the
  server can diff and short-circuit with 204 as usual

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@BrandesEric
BrandesEric merged commit 6e6e9e4 into main Jul 24, 2026
2 checks passed
@BrandesEric
BrandesEric deleted the private-pki branch July 24, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant