Overlays no longer replace service: each names the Core apps it needs in
.depends, merged into DEPENDS. The sign-in code is a module (oidc.py)
that examples import; templates/postgres-sso is the combined example
(sign-in, each person's visits counted in PostgreSQL). Tested with
team-visits, including sign-in in a browser.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A template overlay (templates/sso) registers the app as an OpenID Connect
client in Authelia's idproviders.yml (between markers, secret hashed by
the running Authelia), checks the configuration before restarting
Authelia and restores it if the check fails; uninstall removes the client.
The app reaches Authelia's https address through traefik (@TRAEFIK_IP@,
provided by the template's install and by redeploys). The example is a
standard-library Python OIDC client (code flow with PKCE). Tested by
install, redeploy, remove and reinstall, and a real sign-in in a browser.
Also: the postgres overlay appends to the base install, uninstall and
env.in; database names get a coreapp_ prefix (PostgreSQL reserves pg_*);
deploy waits until the app answers on its own address.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A template overlay (templates/postgres) adds DEPENDS="postgresql", DB_*
settings with a random password, an install that creates the user and
database on the Core's PostgreSQL (safe to re-run), an uninstall that
drops them, and a Python example that counts visits. Tested with a
throwaway app: deploy, redeploy and a reboot of the Core keep the data,
remove drops the database and user.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apps are folders in Federated Core's generic services format (service,
docker-compose.yml.in, env.in, install, uninstall, icon.png) plus their
own Dockerfile. coreapp new scaffolds one from templates/app with an
address in 192.168.200.x; deploy builds the image, copies it to the Core
over SSH, installs it with installapp (and starts it, since the Core's
start only knows its own apps) or updates it keeping .env; check, status,
logs, shell and remove work on the Core.
Apps in development aren't registered with Federated's monitoring: deploy
drops MONITOR from the Core's copy of service. installapp/uninstallapp
traces go to private logs, not the terminal.
update.sh installs docker and docker-buildx and links coreapp into
~/.local/bin. PLAN.md: how the Core runs apps, and corrected evidence for
the Core's timers running their jobs at every boot.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- bin/coreapp-vm replaces scripts/create-coreserver-vm.sh: create (downloads
and checks the CoreServer image when it's missing, resumes an interrupted
download), list, ip, ssh (own known_hosts), start, stop, delete (asks for
the name). update.sh symlinks it into ~/.local/bin.
- uninstall.sh removes coreapp-vm, the coreapp network, its hook and ufw
rules; asks before deleting VMs, the image and keys.
- install.sh runs CoreDesktop's update first when the system wasn't
upgraded in the last day, as `sibling add` does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A CoreDesktop sibling project. install.sh and update.sh install libvirt
and QEMU/KVM and set up the coreapp VM network (10.123.0.0/24, open mode,
with a libvirt hook for NAT and firewall rules, and ufw rules for DHCP,
DNS and forwarding). scripts/create-coreserver-vm.sh creates a CoreServer
VM with root's SSH keys from cloud-init, at 10.123.0.10, with
systemd-resolved masked so the Core's DNS server survives reboots.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>