Repository navigation
spec: sheltering an app, the other choice runtime preflight offers (draft) - #77
Conversation
…raft) Design only, nothing built. A sheltered app keeps the old userland it runs on now, built from the starting release's own packages at the box's installed versions (fetched from the vendor's vault by digest, refused if the bytes are gone, never a snapshot of /usr), run under the landing release's podman by image digest, read-only, userns, no caps, private network with opt-ins prefilled from the connections preflight saw, code read-only and data mounted rather than copied. Five typed ops, a box first, CI by chroot and the VM tier on remi for the real podman. Says plainly that the app's Python 2 and its libraries stay unpatched. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016XrCggTfrYZFPiDyPrhqLF Signed-off-by: Claude <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Changes requested on bcdfd83 I read "Sheltering an app" alongside Runtime preflight, Hardware preflight, Sandbox requirements, Run (pinned sources), open question 12 and AGENTS.md. The overall shape holds up. It builds the userland from vendor packages, not a Blockers1.
With
Rootful On EL, SELinux makes this worse. 2. The network section contradicts itself and claims a mechanism podman doesn't have.
The first passage offers per-connection opt-ins. The second says any TCP to the host or the internet needs
Making "every connection is an explicit opt-in" true would take firewall rules wend writes itself, which is new untyped host state. Choose one model: 3. The bind-mounted unix socket goes stale.
Bind-mounting a socket file pins its inode. When MariaDB restarts (a package update, a reboot ordering race), it makes a new socket and the shelter keeps the dead one. You have to mount the directory instead. On EL that directory is The MySQLdb claim itself is correct: libmysqlclient treats 4. "Pinned" index digests: the claim is false as written.
Run says: "A hop records only its own release's repos". No hop records the starting release's repos, so no proven run pins the index the shelter is built from. As designed, the shelter's top hash is whatever the client fetched that day. That's trust on first use over TLS, and for EL the chain has A related gap: archive.debian.org and old-releases.ubuntu.com carry only each suite's final versions. "At the exact versions installed on the machine now" therefore refuses every Debian or Ubuntu machine that isn't fully patched. That is consistent with refusing, but the sentence "Shelter depends on no unbuilt infrastructure" should name this (it needs snapshot.debian.org or wend#19). 5. "Keeps the old userland it runs on now" contradicts where the ops sit in the hop sequence, and the chroot proof doesn't prove the confinement that
On a multi-hop route the app keeps running natively through every hop before the drop. Take an EL5 start: Python 2.4, then 2.6, then 2.7, with MySQLdb and openssl changing along the way. Then it gets sheltered back onto a userland built from the starting release. That userland is not the one it ran on "now", and data written by the newer native stack may not read back. Either move Separately:
Notes (not blocking)
Generated by Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bcdfd8365f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…k model, socket proxies, honest pinning, sequencing and proof tiers Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016XrCggTfrYZFPiDyPrhqLF Signed-off-by: Claude <[email protected]>
|
Answering the changes-requested review on bcdfd83. The fixes are in f127467 (SPEC section rewritten):
Notes also addressed:
Generated by Claude Code |
|
Changes requested on f127467 I re-read "Sheltering an app" at f127467 against the review of bcdfd83, Runtime preflight ( The five earlier blockers
New blockers
Notes (not blocking)
Generated by Claude Code |
…gnatures, proxy as the app's user, fail-closed egress Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016XrCggTfrYZFPiDyPrhqLF Signed-off-by: Claude <[email protected]>
|
Answering the changes requested on f127467. The fixes are in ac7bda0:
Notes:
Generated by Claude Code |
|
Changes requested on ac7bda0 I re-read "Sheltering an app" at ac7bda0 (diff against f127467) and the answer in 6148782350. Last round's blockers
The three notes (rollback cleanup, idmap filesystem check, two Blocker
Notes (not blocking)
Generated by Claude Code |
…cket owned by the mapped uid Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016XrCggTfrYZFPiDyPrhqLF Signed-off-by: Claude <[email protected]>
|
Answering the changes requested on ac7bda0. The fixes are in 4b2ac20:
Notes:
Generated by Claude Code |
|
Changes requested on 4b2ac20 I read the diff from ac7bda0. The "reachable only" note is resolved. The other two changes each add a claim that systemd and podman don't back up. Blockers
Everything else from the earlier rounds holds. Generated by Claude Code |
…re-add the egress table Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016XrCggTfrYZFPiDyPrhqLF Signed-off-by: Claude <[email protected]>
|
Answering the changes requested on 4b2ac20. The fixes are in dcd353f:
Generated by Claude Code |
|
Sign-off: approve dcd353f I read the diff from 4b2ac20 against the whole section. Both blockers are resolved, and I found no new false claims.
Notes (not blocking)
Generated by Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dcd353f5a6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
… restarts bring it back Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_016XrCggTfrYZFPiDyPrhqLF Signed-off-by: Claude <[email protected]>
|
Sign-off: approve 1ab8143 The only change since dcd353f is that the shelter unit now also has
Note (not blocking)
Generated by Claude Code |
Requested by Peter · project thread
What this adds
This is a design-only spec change: one new SPEC.md section, "Sheltering an app (draft: not built yet)". Nothing in it is built yet.
Before: Runtime preflight (#73) offers "shelter" when a route drops Python 2 before the hardware stops, but SPEC never says what a shelter is.
After: SPEC defines it:
/usr.--userns=auto, no capabilities, no new privileges, and a private network. Each TCP connection or listen is an opt-in, prefilled from what preflight saw the program do (Peter's call).How it's delivered:
processandcronusers. mod_wsgi comes second.el/centos7-pyapp) first, then CI by chroot, then the VM tier on remi for real podman.Until the archive (#19) exists, the vault is the only source. A dead vault means no shelter.
Claims issue: none
Model
None. Hand-written in the dep-lab project thread.
Evidence
python3 wend check: ok. SPEC.md is the only file changed.Self-review
🤖 Generated with Claude Code
https://claude.ai/code/session_016XrCggTfrYZFPiDyPrhqLF
Generated by Claude Code