Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
3601566
Delete the second install chain and the LUKS scripts
claude Nov 19, 2026
a09bb23
Remove Raspberry Pi Connect
claude Nov 19, 2026
056a015
Remove safe mode
claude Nov 19, 2026
bb79f01
Remove the refresh-stream client
claude Nov 19, 2026
9b70350
enroll: drop the WebSocket port-restore hack
claude Nov 19, 2026
4741d6e
Move packages into internal/core and internal/online
claude Nov 19, 2026
75fcddd
Merge agentupdate into selfupdate
claude Nov 19, 2026
91c4ae5
Merge cdp, updatescreen and the kiosk healer into one kiosk package
claude Nov 19, 2026
1fabf4c
Merge telemetry into wsclient: one struct per heartbeat
claude Nov 19, 2026
79d70c3
Follow the release channels without a device key
claude Nov 19, 2026
869be4f
Run the board without enrollment
claude Nov 19, 2026
4113db6
Embed the system files; install-system writes them
claude Nov 19, 2026
b29ecaa
Remove kiosk-url, its path units and the enrollment splash
claude Nov 19, 2026
60f5ddf
Provision packages: a setup file gives a board its identity
claude Nov 19, 2026
f9c514c
USB helper: room for a LensBridge USB kit
claude Nov 19, 2026
99058f4
Content packages may cover up to 92 days
claude Nov 19, 2026
77d81fd
Claim: a set-up board binds its own key to its device
claude Nov 19, 2026
860748e
content_changed on the agent WebSocket schedules a content sync
claude Nov 19, 2026
3c6ec7c
Payload says when the content has run out
claude Nov 19, 2026
06701ec
Test that the core never imports the online layer
claude Nov 19, 2026
d2a2e26
setup.sh pins LensBridge's content key; the next step is the setup stick
claude Nov 19, 2026
a8aa74d
Test the backend's own setup file end to end
claude Nov 19, 2026
dad4078
CLI help and comments: boards are set up by their setup file
claude Nov 19, 2026
251b30c
Remove code only the enrollment splash used
claude Nov 19, 2026
5cd189b
Docs: the v3 board as it is
claude Nov 19, 2026
365a02b
gofmt two test files
claude Nov 19, 2026
8bc989d
Setup screen: refresh the address line while waiting for the setup stick
claude Nov 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions .claude/settings.local.json

This file was deleted.

6 changes: 0 additions & 6 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,3 @@
*.toml text eol=lf
*.go text eol=lf
Makefile text eol=lf

# Extensionless executables that run inside an initramfs. Without these,
# `* text=auto` hands a Windows checkout CRLF line endings and the kernel then
# looks for an interpreter literally named "/bin/sh\r" — in an environment with
# no useful error message and no way to log in and find out.
packaging/luks/* text eol=lf
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
cache-dependency-path: agent/go.sum

- name: Regenerate the API client
working-directory: agent/internal/api
working-directory: agent/internal/online/api
run: |
go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@v2.8.0 \
-config oapi-codegen.yaml \
Expand All @@ -35,10 +35,10 @@ jobs:
- name: Fail if the generated client is stale
working-directory: agent
run: |
if ! git diff --exit-code --stat -- internal/api/client.gen.go; then
echo "::error::internal/api/client.gen.go is out of date with the backend contract."
echo "Run 'go generate ./internal/api' and commit the result."
git diff -- internal/api/client.gen.go
if ! git diff --exit-code --stat -- internal/online/api/client.gen.go; then
echo "::error::internal/online/api/client.gen.go is out of date with the backend contract."
echo "Run 'go generate ./internal/online/api' and commit the result."
git diff -- internal/online/api/client.gen.go
exit 1
fi
echo "Generated client matches the backend contract."
Expand All @@ -58,6 +58,6 @@ jobs:
- name: Shell syntax
working-directory: agent
run: |
for f in setup.sh uninstall.sh packaging/*.sh packaging/lib/*.sh; do
for f in setup.sh uninstall.sh packaging/*.sh vm/mbvm; do
bash -n "$f"
done
7 changes: 0 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ jobs:
- name: Test
run: go test ./...

- name: Build release tarballs
run: |
make package
make package-amd64

- name: Build and sign agent packages
run: |
make package-mbu
Expand All @@ -84,8 +79,6 @@ jobs:
with:
fail_on_unmatched_files: true
files: |
build/musallahboard-agent-${{ env.VERSION }}-arm64.tar.gz
build/musallahboard-agent-${{ env.VERSION }}-amd64.tar.gz
build/musallahboard-agent-${{ env.VERSION }}-arm64.mbu
build/musallahboard-agent-${{ env.VERSION }}-amd64.mbu
build/agent-channel-arm64.json
Expand Down
77 changes: 1 addition & 76 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ RELEASE_KEYS ?=
# here ships a binary that reports "dev" forever (or trusts no release key).
PKG := github.com/LensBridge/agent
LDFLAGS := -s -w -X $(PKG)/internal/version.Version=$(VERSION) \
-X $(PKG)/internal/trust.BuiltinReleaseKeys=$(RELEASE_KEYS)
-X $(PKG)/internal/core/trust.BuiltinReleaseKeys=$(RELEASE_KEYS)
# Where the release channel points boards at (docs/architecture.md 9.4).
RELEASE_DOWNLOAD := https://github.com/LensBridge/agent/releases/download/$(RELEASE_TAG)

.PHONY: build build-arm64 build-amd64 tidy test clean \
deploy install-remote install-remote-x86 package package-amd64 \
mbpush mbpush-windows mbpush-macos mbpush-linux \
mbpack package-mbu package-mbu-amd64

Expand Down Expand Up @@ -86,77 +85,3 @@ test:

clean:
rm -rf build/

# Replace the binary on a remote host and restart the service (preserves enrollment).
# Usage: make deploy PI=admin@brothers-board.local
deploy: build-arm64
@if [ -z "$(PI)" ]; then echo "Usage: make deploy PI=user@host"; exit 1; fi
scp build/musallahboard-agent-arm64 packaging/update.sh $(PI):/tmp/
ssh -t $(PI) 'sudo bash /tmp/update.sh /tmp/musallahboard-agent-arm64'

# First-time full install on a remote host via the release tarball.
# Usage: make install-remote PI=admin@pi.local TOKEN=xxx BACKEND=https://backend.example.org
# (BACKEND must be https://; for a plain-http dev backend, enroll afterwards on
# the board with `musallahboard-agent enroll ... --insecure-dev`.)
install-remote: package
@if [ -z "$(PI)" ]; then echo "Usage: make install-remote PI=user@host [TOKEN=xxx BACKEND=url]"; exit 1; fi
scp build/musallahboard-agent-$(VERSION)-arm64.tar.gz $(PI):/tmp/
ssh -t $(PI) 'cd /tmp && tar xzf musallahboard-agent-$(VERSION)-arm64.tar.gz && \
sudo bash musallahboard-agent-$(VERSION)-arm64/packaging/install.sh \
$(if $(TOKEN),--token=$(TOKEN)) $(if $(BACKEND),--backend=$(BACKEND))'

# First-time full install on a remote x86-64 host via the release tarball.
# Usage: make install-remote-x86 HOST=admin@server TOKEN=xxx BACKEND=https://backend.example.org
install-remote-x86: package-amd64
@if [ -z "$(HOST)" ]; then echo "Usage: make install-remote-x86 HOST=user@host [TOKEN=xxx BACKEND=url]"; exit 1; fi
scp build/musallahboard-agent-$(VERSION)-amd64.tar.gz $(HOST):/tmp/
ssh -t $(HOST) 'cd /tmp && tar xzf musallahboard-agent-$(VERSION)-amd64.tar.gz && \
sudo bash musallahboard-agent-$(VERSION)-amd64/packaging/install.sh \
$(if $(TOKEN),--token=$(TOKEN)) $(if $(BACKEND),--backend=$(BACKEND))'

# Build a self-contained release tarball ready to ship to a Pi:
# musallahboard-agent-$(VERSION)-arm64.tar.gz
# containing the binary, install/uninstall/update scripts, the systemd units
# (agent, kiosk, self-updater, USB import), the udev rules and the sudoers
# allow-list. On the Pi:
# tar xzf musallahboard-agent-*.tar.gz
# sudo bash musallahboard-agent-*/packaging/install.sh --token=X --backend=Y
package: build-arm64
@rm -rf build/pkg && mkdir -p build/pkg/musallahboard-agent-$(VERSION)-arm64
@cp build/musallahboard-agent-arm64 \
build/pkg/musallahboard-agent-$(VERSION)-arm64/musallahboard-agent
@cp -r packaging build/pkg/musallahboard-agent-$(VERSION)-arm64/
@sed -i 's/\r//' build/pkg/musallahboard-agent-$(VERSION)-arm64/packaging/*.sh \
build/pkg/musallahboard-agent-$(VERSION)-arm64/packaging/*.service \
build/pkg/musallahboard-agent-$(VERSION)-arm64/packaging/*.path \
build/pkg/musallahboard-agent-$(VERSION)-arm64/packaging/udev/*.rules
@chmod +x build/pkg/musallahboard-agent-$(VERSION)-arm64/packaging/*.sh
# setup.sh is the whole point of the arm64 tarball: the one-line installer
# fetches this archive and runs it. Not shipped in the amd64 one — it is a
# Raspberry Pi wrapper and the x86 host is provisioned by the Packer image.
@cp setup.sh build/pkg/musallahboard-agent-$(VERSION)-arm64/
@sed -i 's/\r//' build/pkg/musallahboard-agent-$(VERSION)-arm64/setup.sh
@chmod +x build/pkg/musallahboard-agent-$(VERSION)-arm64/setup.sh
# packaging/luks/ holds three extensionless scripts that run inside an
# initramfs, where a stray CR in a shebang produces no diagnosable error at all.
@sed -i 's/\r//' build/pkg/musallahboard-agent-$(VERSION)-arm64/packaging/luks/*
@chmod +x build/pkg/musallahboard-agent-$(VERSION)-arm64/packaging/luks/*
@cp README.md build/pkg/musallahboard-agent-$(VERSION)-arm64/ 2>/dev/null || true
@tar czf build/musallahboard-agent-$(VERSION)-arm64.tar.gz \
-C build/pkg musallahboard-agent-$(VERSION)-arm64
@echo "Wrote build/musallahboard-agent-$(VERSION)-arm64.tar.gz"

package-amd64: build-amd64
@rm -rf build/pkg && mkdir -p build/pkg/musallahboard-agent-$(VERSION)-amd64
@cp build/musallahboard-agent-amd64 \
build/pkg/musallahboard-agent-$(VERSION)-amd64/musallahboard-agent
@cp -r packaging build/pkg/musallahboard-agent-$(VERSION)-amd64/
@sed -i 's/\r//' build/pkg/musallahboard-agent-$(VERSION)-amd64/packaging/*.sh \
build/pkg/musallahboard-agent-$(VERSION)-amd64/packaging/*.service \
build/pkg/musallahboard-agent-$(VERSION)-amd64/packaging/*.path \
build/pkg/musallahboard-agent-$(VERSION)-amd64/packaging/udev/*.rules
@chmod +x build/pkg/musallahboard-agent-$(VERSION)-amd64/packaging/*.sh
@cp README.md build/pkg/musallahboard-agent-$(VERSION)-amd64/ 2>/dev/null || true
@tar czf build/musallahboard-agent-$(VERSION)-amd64.tar.gz \
-C build/pkg musallahboard-agent-$(VERSION)-amd64
@echo "Wrote build/musallahboard-agent-$(VERSION)-amd64.tar.gz"
Loading
Loading