Ports CoreDesktop's security checks (05b13b2, d5925fa, 53c6c8b) as smoketest/scenarios/80-security.sh: - The sandbox: a fake opencode, Hermes and Cline Desktop, run through sandbox/bin's wrappers, can't read secrets or an SMB password through sudo, write outside their project (home, ~/.bashrc, ~/.local/bin, systemd units, autostart, the connector, its sandbox config or yours, the settings srt starts with, their project's git hooks and config), reach domains, LAN addresses or loopback servers that aren't allowed, or see other processes or the session's D-Bus. Each check also runs outside, so a pass means the sandbox blocked it. - Root: what configure installs for root to run or read is root's alone and names no home folder, and with a security key and fingerprint set up, a password user's sudo still takes the password and only it. - The install path: every hop from federated.sh/pop is HTTPS, and plain HTTP doesn't serve the script. CoreDesktop's network exposure checks (ufw, Docker, sshd) don't apply. Writing it found that sandbox/agent put the settings srt starts with in /tmp/federated-sandbox when XDG_RUNTIME_DIR wasn't set, and every sandbox can write /tmp, so an agent could put its own settings, or a link, where the next one's go. They're now always in /run/user/<uid>, which no sandbox can write, and it won't start without it. The smoketest's runner gives each scenario what a login does: USER, /run/user/<uid>, and the session bus in it, as on Pop!_OS. PLAN.md: CoreDesktop compared at 4e9b962, everything that applies ported. Neither lint nor the Docker smoketest has run on these ports yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
70 lines
3.4 KiB
Markdown
70 lines
3.4 KiB
Markdown
# Plan
|
|
|
|
What's left to do in the Federated Connector for Pop!_OS. Delete an item once
|
|
it's done; git history keeps the record. How to test is in [TEST.md](TEST.md).
|
|
|
|
This project stays separate from CoreDesktop: Pop!_OS needs its own setup
|
|
(apt, Flathub, COSMIC, Evolution), but it keeps roughly in step with
|
|
CoreDesktop's `configure`, with the same items, working the same way.
|
|
|
|
## Federated Calendar
|
|
|
|
CoreDesktop installs Federated Calendar (based on GNOME Calendar, adds
|
|
invitations and Jitsi meetings) from the `[federated]` pacman repo. It isn't
|
|
built for Pop!_OS yet: the
|
|
[federated-calendar](https://gitea.federated.computer/Federated_Computer/federated-calendar)
|
|
repo only has `build-aux/arch/`.
|
|
|
|
- [ ] Choose how to ship it. A Flatpak is the likely choice: upstream's
|
|
`build-aux/org.gnome.Calendar.json` is a starting point, it runs
|
|
the same on any Pop!_OS release, and it updates in the COSMIC Store with
|
|
Element. The other choice is a `.deb` in an apt repo on Gitea, which
|
|
would need building for each Ubuntu release.
|
|
- [ ] Build it in federated-calendar's Gitea Actions next to the Arch package,
|
|
and publish it (a Flatpak repo on Gitea, or a `.flatpakref`)
|
|
- [ ] Federated Calendar finds the Core in `~/.config/coredesktop/cores/*.conf`;
|
|
the connector writes `~/.config/federated-connector/cores/*.conf`. Have
|
|
Federated Calendar look in both, or the connector write both. A Flatpak
|
|
also needs read access to that folder (`--filesystem=xdg-config/...:ro`).
|
|
- [ ] Check that, without GNOME, it sees the Core's calendars in GNOME Online
|
|
Accounts and Evolution Data Server, as Evolution does. A Flatpak talks to
|
|
them over D-Bus (`--talk-name=org.gnome.OnlineAccounts`,
|
|
`org.gnome.evolution.dataserver.*`).
|
|
- [ ] Install it in `configure core`, after the calendars are added, and say
|
|
so in the README, alongside Evolution
|
|
- [ ] `update`: restart it after a new version, as CoreDesktop's PLAN.md
|
|
describes (it keeps running in the background after its window closes)
|
|
|
|
## Keep in step with CoreDesktop
|
|
|
|
Last compared with CoreDesktop at `4e9b962` (2026-11-28). Port what applies to
|
|
Pop!_OS, then move this marker to the CoreDesktop commit compared with. To see
|
|
what's new:
|
|
|
|
```
|
|
git -C ../coredesktop log --oneline <marker>..HEAD -- configure configure.d sandbox system
|
|
```
|
|
|
|
Nothing to port since `4e9b962`.
|
|
|
|
Not ported, and why:
|
|
|
|
- `ffbaf71` Keep other machines on the network from reaching Docker
|
|
containers: only if the connector ever installs Docker
|
|
- From `9dc5eb1`: the pacman guard, unowned files and `hardware.sh` (System76
|
|
does its own), and "Send with Tailscale" (COSMIC Files has no Scripts menu)
|
|
- From `05b13b2`'s security checks: network exposure (ufw, Docker, sshd), which
|
|
the connector doesn't install
|
|
- Arch or GNOME only: `e14a345` and `ba4dc17` (login screen logo), `1e2581d`
|
|
(kernel modules), `d456e31` (initramfs), `5d7db2c` (reboot after update:
|
|
Pop!_OS' own updates handle this)
|
|
|
|
## Pop!_OS-specific
|
|
|
|
- [ ] `make lint` and `smoketest/run --tier all` haven't run since the ports
|
|
from CoreDesktop at `4e9b962`: they were written on a machine without
|
|
shellcheck or Docker. The new scenarios' quick checks were run by hand;
|
|
`50-sandbox` and `80-security` (srt, PAM) never have been.
|
|
- [ ] The manual checks in [TEST.md](TEST.md) on a real Pop!_OS 24.04 machine,
|
|
against a real Core. None have been done yet.
|