Repository navigation
[M3.8a] Fail-closed Compose validator - #195
Merged
Merged
Conversation
Signed-off-by: review <[email protected]>
samuelmbabhazi
added a commit
that referenced
this pull request
Nov 7, 2026
## What changed Rewrites the PLAN's "Next tasks" list, which still named work merged in #182 to #195. It now groups what remains by what it is waiting on: a VM, an owner decision, billing, or nothing. ## Why So the next person, or session, starts from what is true. ## How it was tested Documentation only. For the record, the final `main` at #195 was run locally against PostgreSQL 18.4: - Integration suite: 314 passed, 3 failed. The 3 expect `23503` for `ON DELETE RESTRICT`, which PostgreSQL 18 reports as `23001`. - Browser suite: 17 of 17 passed. ## Security considerations None. Signed-off-by: review <[email protected]> Co-authored-by: review <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
apps/api/src/modules/apps/domain/compose.ts: a pure parser and validator for Compose files, producing typed services. No route reaches it yet. Acceptingcompose:applications and deploying several services per release are M3.8b and M3.8c, now split out in the PLAN.Why
PLAN M3.8, and the "Compose injection" row of the threat model.
Design: stricter than the SPEC's list, so the SPEC is updated
It is an allow list that fails closed, not a list of rejected keys. A key is translated to what the agent's typed
ContainerSpeccan express, ignored with a warning when that has no effect on safety, or refused with its reason. A new Compose key is refused by default.What the spec's shape settled:
ContainerSpecmounts only named volumes and tmpfs. This is the decision most likely to hurt adoption, because many real files use./data:/data. Allowing them would be an agent action change, which is the owner's call.entrypointandcap_dropare refused because the spec cannot express them, rather than silently run without them.curlorwgeton localhost is read for its URL; anything else is dropped with a warning.${NAME}expands only inenvironment. A bare name that would inherit from the host's environment is refused.How it was tested
compose.spec.ts, 97 tests, 90% line coverage:privileged, traversal, injected images and users, reservedsk.labels, prototype keys, dependency cycles.Security considerations
Checklist