R6: static-binary packaging + remote-relay deploy docs#5
Merged
Conversation
Completes beacon R6. - Makefile: `make build` produces a static (CGO_ENABLED=0), trimmed, version-stamped binary in dist/; cross-compiles via GOOS/GOARCH. `make check` mirrors the CI quality gates. - deploy/beacon.service: a hardened systemd unit for a remote relay — unprivileged service account, strict sandbox (beacon holds no database and writes nothing at runtime). - docs/DEPLOY.md: end-to-end guide for a remote relay — build, host prep, CSR-over-SSH enrolment, the unit, the inbound-only firewall surface, and cert rotation. The embedded relay needs no deployment; helm runs it in-process. Signed-off-by: Khalefa <Khalefa@alahmad.org>
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.
beacon milestone R6 — packaging & deploy
The final beacon milestone: package the relay as a static binary and
document deploying a remote relay.
Added
Makefile—make buildproduces a static (CGO_ENABLED=0),-trimpath, version-stamped binary indist/; cross-compiles viaGOOS/GOARCH.make checkruns the same gates as CI(
fmt/vet/test/lint).deploy/beacon.service— a hardened systemd unit: unprivilegedbeaconservice account,ProtectSystem=strictand a full sandbox.beacon holds no database and writes nothing at runtime, so it needs
no write access.
docs/DEPLOY.md— end-to-end remote-relay guide: build, hostprep, CSR-over-SSH enrolment, installing the unit, the inbound-only
firewall surface (
--client-addrfor caravel,--tunnel-addrforhelm), verification, and cert rotation.
The embedded relay needs no deployment — helm runs it in-process
(docs/HELM-INTEGRATION.md).
Quality
gofmt/go vet/go test -race/golangci-lintclean. Verifiedmake buildyields a working version-stamped binary.Milestone status
With this, R1–R6 are all complete — skeleton, transparent proxy,
embedded + remote transports, relay enrolment, and packaging.