feat: publish Tend v0.2 Preview 2 source
Export the reviewed allowlisted snapshot from private source commit 8aab3db43f35e6a49aa497f45d73701b13fc9f32 and tree 992132ea4703437dc13ffdbb04a077816c02caf9. This includes routed singleton continuity, deployment evidence, strict schema-2 configuration, restricted transport, and the independently compilable public-tree guard. AI-Assisted: OpenAI Codex Signed-off-by: Cole Speelman <crspeelman@gmail.com>
This commit is contained in:
+17
-4
@@ -9,10 +9,14 @@ binary at `/usr/local/bin/tend`; it does not need Git or Go.
|
||||
1. Create `/etc/tend/services`, `/etc/tend/environment`, and
|
||||
`/var/lib/tend/incoming`. The incoming and environment directories are
|
||||
root-owned mode `0700`.
|
||||
2. Install one schema-2 file per service and one root-owned mode-`0600`
|
||||
2. Install one schema-2 file per service, one per-service deployment-event log,
|
||||
and one root-owned mode-`0600`
|
||||
environment file per service. A singleton's shared environment file must
|
||||
not define its configured listen key; its installed unit owns the live
|
||||
address and Tend overrides only the transient candidate.
|
||||
address and Tend overrides only the transient candidate. Give each
|
||||
singleton an imported Caddy handler and a root-owned handler template with
|
||||
exactly one `{{UPSTREAM}}` marker; this is the bounded traffic handoff while
|
||||
its fixed-address unit restarts.
|
||||
3. Install the receive policy, forced `authorized_keys` entry, and exact sudoers
|
||||
rule from `examples/server/` after replacing every placeholder. The sudoers
|
||||
fragment preserves only `SSH_ORIGINAL_COMMAND`; the root receiver requires
|
||||
@@ -46,9 +50,18 @@ services share Caddy. Tend does not stop the other application.
|
||||
|
||||
## Failure and recovery exercises
|
||||
|
||||
- Change a candidate marker: activation must fail before state is stored.
|
||||
- Change a candidate marker: activation must fail, preserve the active release,
|
||||
and record the failed attempt without calling the candidate active.
|
||||
- Make a Caddy template invalid: validation must fail and restore prior bytes.
|
||||
- Make the public marker unavailable: Tend must restore the former slot/pointer.
|
||||
- Make the public marker fail after an initially successful request: the
|
||||
activation window must catch the transient routed failure and restore the
|
||||
former slot/pointer.
|
||||
- For a singleton, verify repeated canonical-origin requests remain successful
|
||||
while Tend routes to the candidate, restarts the fixed-address unit, and
|
||||
returns traffic to it. Inject failure at both Caddy reloads and require the
|
||||
prior handler and pointer to be restored.
|
||||
- Stop the previous blue/green slot during the activation window: Tend must
|
||||
restore the old Caddy handler instead of accepting reduced continuity.
|
||||
- Run `tend rollback --activate` for one service and verify the other service's
|
||||
units, pointers, and public origin did not change.
|
||||
- Interrupt a transfer: no release becomes active and the incomplete incoming
|
||||
|
||||
Reference in New Issue
Block a user