about summary refs log tree commit diff
path: root/etc
AgeCommit message (Collapse)Author
2026-09-27services: pin the SSH host key of the containersPjotr
Each container build generated fresh host keys (ssh-keygen -A at activation), so clients saw a REMOTE HOST IDENTIFICATION HAS CHANGED warning after every rebuild. Install the pre-generated ECDSA host key from etc/ssh-container-key into /etc/ssh at activation and set (generate-host-keys? #f) so every container presents the same host key. All keys now live in etc/ -- move the hello-container client key there as well and reference ../etc/ from the OS definitions. Verified: a rebuilt container serves SHA256:udYFFCT57uEdY1wDQgs8mvrB Vl2BLrq227eMSons2Mo and ssh login works with hello printing 'Hello, world!'.
2026-09-26run-guix-container: new toolPjotr Prins
A C daemon (run as root) that starts Guix system containers on request over a line-based network protocol, plus an unprivileged Ruby client. * START/KILL/LOG/FINGERPRINT protocol; one request per connection * strict validation of store items before exec (HASH-run-container name, guile shebang, container markers, immutable store file) * --fingerprint WORD identifies the daemon instance (random hash when unset); verified by clients and passed to containers in GUIX_CONTAINER_FINGERPRINT * on SIGINT/SIGTERM: SIGTERM all started containers, 10s timeout, then SIGKILL * container boot output appended to /var/log/guix-containers/ * unit tests for launcher and fingerprint logic