Repository navigation
Conversation
mrgoonie
force-pushed
the
feat/managed-application-deployment
branch
from
November 16, 2026 05:16
7201d81 to
504eadc
Compare
38 tasks
… deployment Signed-off-by: Goon <duy@wearetopgroup.com>
…s over Signed-off-by: Goon <duy@wearetopgroup.com>
sisf adopt reads a Compose project or a Go program and writes sisf-app.yaml. Runtime, data, dependencies and secrets come from Compose for every stack; what one stack knows lives only in its detector (WordPress, Go program). Secret values are never copied: a plain-text password is refused by name. Signed-off-by: Goon <duy@wearetopgroup.com>
…d facts Signed-off-by: Goon <duy@wearetopgroup.com>
Build a managed application's content bundle in trusted factory code: parse the lockfile, fetch each pinned archive and check its sha256 before reading it, unpack it under its kind's directory, apply prune paths, copy repository sources, and write a reproducible tar with its digest. Entries that escape, link or are not plain files are refused, and sizes are bounded while read. Classify lockfile changes against the Owner-approved baseline, and let the supervisor verify a candidate-influenced bundle tar and its digest. Signed-off-by: Goon <duy@wearetopgroup.com>
…ules Signed-off-by: Goon <duy@wearetopgroup.com>
…app bundle Signed-off-by: Goon <duy@wearetopgroup.com>
Signed-off-by: Goon <duy@wearetopgroup.com>
…ies to Signed-off-by: Goon <duy@wearetopgroup.com>
…ndle Signed-off-by: Goon <duy@wearetopgroup.com>
…bundle Signed-off-by: Goon <duy@wearetopgroup.com>
… volume
A managed application's revision is a pair: the runtime image the Owner
pinned and a content bundle assembled by trusted code. This makes the pair
deployable through the Compose backend and the Docker request filter
without any host path.
Shared contract change in pkg/deploy/deploy.go: Artifact gains Bundle, a
sha256 digest that is empty for an image-only artifact. When it is set,
Validate requires the image on one line and Digest equal to
PairDigest(image, bundle) = sha256("sisf.pair.v1\n" + image + "\n" +
bundle), so the release record binds the pair. SigningPayload binds the
bundle last and moves to version 3; every earlier signature stops
verifying.
The Compose backend loads each bundle once into a named volume,
<factory>-bundle-<12 hex>: it creates the volume, creates a loader of the
runtime image that is never started, uploads the verified tar into it,
and removes the loader, with the anonymous volumes its image declares, on
every path. Loads are serialised. A failed load also removes the volume,
and a loader left by a load that was cut off makes the next Stage load the
bundle again. Revisions mount the volume read-only at the
configured target, run as the configured uid:gid and get the configured
environment and data volumes. Image-only artifacts are unchanged.
The deploy role of the filter enforces the mount rule itself. A revision
mounts at most one bundle volume, read-only, at the bundle target, plus
only the configured data volumes. A loader mounts only its bundle's
volume read-write, has no command, environment or network, and is never
started; only a loader may be removed with its anonymous volumes. Uploads
go only into a stopped loader at the fixed path and are streamed within a
size bound. Volumes are created only as labelled bundle
volumes with no driver options. A user must be a numeric uid:gid other
than root, and the environment must match the configured list exactly.
The runner role is unchanged and refuses every new endpoint.
Signed-off-by: Goon <duy@wearetopgroup.com>
Signed-off-by: Goon <duy@wearetopgroup.com>
Signed-off-by: Goon <duy@wearetopgroup.com>
Signed-off-by: Goon <duy@wearetopgroup.com>
…review Signed-off-by: Goon <duy@wearetopgroup.com>
…tored builds still verify Signed-off-by: Goon <duy@wearetopgroup.com>
…ine before release Signed-off-by: Goon <duy@wearetopgroup.com>
…dles that match their digest Signed-off-by: Goon <duy@wearetopgroup.com>
…s image and bundle Signed-off-by: Goon <duy@wearetopgroup.com>
… Docker Signed-off-by: Goon <duy@wearetopgroup.com>
…dled for a managed application Signed-off-by: Goon <duy@wearetopgroup.com>
…he accepted set Signed-off-by: Goon <duy@wearetopgroup.com>
…ervisor's probe reads Signed-off-by: Goon <duy@wearetopgroup.com>
…e bytes the supervisor holds Signed-off-by: Goon <duy@wearetopgroup.com>
…ore releasing it Signed-off-by: Goon <duy@wearetopgroup.com>
…ch release Signed-off-by: Goon <duy@wearetopgroup.com>
…ed by container name Signed-off-by: Goon <duy@wearetopgroup.com>
… real traffic Signed-off-by: Goon <duy@wearetopgroup.com>
…w that counts it Signed-off-by: Goon <duy@wearetopgroup.com>
… unhealthy, not unjudged Signed-off-by: Goon <duy@wearetopgroup.com>
Signed-off-by: Goon <duy@wearetopgroup.com>
…ld on Signed-off-by: Goon <duy@wearetopgroup.com>
mrgoonie
force-pushed
the
feat/managed-application-deployment
branch
from
November 19, 2026 04:54
504eadc to
e783ddb
Compare
…ec through one derivation shared with the deploy filter Signed-off-by: Goon <duy@wearetopgroup.com>
… supervisor Signed-off-by: Goon <duy@wearetopgroup.com>
Contributor
Author
Release-side wiring of a managed application (commits
|
…n Owner change only on the Owner's approval of its build Signed-off-by: Goon <duy@wearetopgroup.com>
Signed-off-by: Goon <duy@wearetopgroup.com>
…it to the issue Signed-off-by: Goon <duy@wearetopgroup.com>
Signed-off-by: Goon <duy@wearetopgroup.com>
…nce its tests pass Signed-off-by: Goon <duy@wearetopgroup.com>
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.
Draft. Managed application deployment, first trial on WordPress + WooCommerce (#66). Must not merge before the v0.1.0-alpha tag; needs its own security review.
What is in it so far
pkg/managedapp: thesisf-app.yamlcontract (runtime image pinned by digest, content bundle, data volumes, Owner-declared dependencies such as the database, checks, sensitive-change policy). Strict parsing.sisf adopt: writes the Spec from a Compose project (WordPress detector) or a Go program; refuses plain-text secrets without printing them.pkg/managedapp/checkrun,sisf app check: HTTP journeys (health, home, catalogue, sandbox purchase); results carry measured facts only.pkg/appbundle,sisf app bundle: reproducible bundle from pinned archives checked by sha256; nothing is executed; traversal, links, devices and size bombs refused; data-volume mountpoints included.sisf app advisories: pinned advisory snapshot scan (finds CVE-2020-35489 in Contact Form 7 5.3.1).pkg/deploy,adapters/deploy/compose,internal/dockerfilter: artifact = (image digest, bundle digest) viaPairDigest, signing payload v3; bundle loaded once into a digest-named read-only volume by a never-started loader; the deploy role of the Docker filter enforces the mount rules.examples/woocommerce-app, mirrored to the private repobestagentkits/sisf-trial-woocommerce.Evidence
plans/reports/onboarding-261113-2023-three-cycles.md.Still to come in this PR
Supervisor wiring, fault injection, good/failing/sensitive updates, backup/restore, an AI fix with independent QA, 72h observation. Decisions are recorded in
plans/261113-1443-managed-application-deployment/decisions.md.Not edited (proposal for the Owner)
DECISIONS.mdshould index ADR 0027.Release smoke on real Docker (2026-11-16)
examples/woocommerce-app/bin/release-smoke.shruns the shop through the factory's own deploy path (deploy-role Docker filter, Compose backend, edge, release pipeline) on OrbStack. Passed on run 10; report inplans/reports/smoke-261116-1435-managed-shop-real-docker-release.md.BlockRolledBackto v2; the edge then serves v2. The test now requires that cause, so a rollback for low traffic no longer passes.mariadb-dumprestored into a copy matches the live database.