Repository navigation
Conversation
serverosd enrol --panel-ca=FILE trusts only that CA for the panel, for a self-hosted panel on Caddy's own certificates (a home network with no public domain). The panel's install script checks the CA against the SHA-256 in the install command before it gets here. The CA is kept in /etc/serveros/panel-ca.crt and used for the release feed checks too; disconnect removes it. A TLS failure at enrolment says what to do, and a pinned CA file with no certificate in it is refused up front.
This branch has not been deployed
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.
A self-hosted panel with no public domain, like a homelab on
192.168.1.20orpanel.lan, runs on Caddy's own certificates.serverosd enrolonly trusted publicly trusted certificates, so enrolment failed the TLS check before the panel ever saw the request.serverosd enrol --panel-ca=FILEtrusts only that CA for the enrol request. The panel's install script downloads the CA and checks it against the SHA-256 in the install command before it gets here (Connect machines to a panel on a local certificate (homelab, no domain) panel#52)./etc/serveros/panel-ca.crtand used for the release feed checks too (serverosd updateand the automatic check), since those also go straight to the panel.serverosd disconnectremoves it.--panel-caworks as it does today.Tested with a build of this branch:
local_certs(its real root and intermediate), by hostname and by IP: it enrols with the root pinned and is refused without it.serverosd update --checkagainst the panel works with the pinned CA and fails the TLS check without it.cargo fmt --check,cargo clippy --workspace --all-targets -- -D warningsandcargo test --workspacepass.Fixes #16. It's the daemon half of serveroshq/panel#52.
Most of this was generated by Claude.