Private PKI Support#48
Merged
Merged
Conversation
…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>
…ates to help with private pki testing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.