Repository navigation
feat(operations): add guarded host-only mode transitions - #15
Merged
Merged
Conversation
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.
Add a root-authorized host-only Promod/Zombies controller using existing snapshot_runtime/apply_runtime and runtime.py adaptation. It requires independently qualified immutable image records for both target and rollback, takes a nonblocking host lock, saves exact runtime/private backups and phase journals, verifies Docker/private runtime/local UDP plus an independent external probe, and restores the exact baseline once on failure. Interrupted/failed rollback transactions block new requests.
RCON activation remains disabled: existing invoker context does not establish authenticated ingress provenance. No privileged game plugin, Docker socket exposure, arbitrary game-request execution, build or download path is added. Root-owned installation, reviewed qualification/authorization/rollback evidence and actual-client qualification are mandatory; the controller has not been installed or enabled on EC2.
Depends on ghptc/cod4x-server#20 before merging packaging enforcement: original BTD death and wave-spawn defects are fixed using private pinned overlays; workspace packaging now rejects their absence/tampering. No config-server behavior change is needed.
Validation: operations suite passes with 50 Python tests, including 19 host-controller tests. Transaction fixtures cover mocked Promod→Zombies→Promod, exact rollback, failed rollback/interruption blocking, concurrent-operator denial, nonroot denial, malformed mode rejection and Docker/private/UDP checks. This does not claim real Compose transition qualification. Operator runbook describes the remaining deployment and gameplay gates, external observer, exact commands and manual recovery boundary.
Production remains on sha256:ed51e1a28884e49a0f9a73f51787797e61e931d6466e407be9137a60747ad16d. Preserved incident evidence, credentials, .state/approved and Zombies homologation are untouched. No merge or deployment is requested by this PR.
Test report and exact commands: docs/zombies-p0-test-report.md and docs/zombies-recovery-and-modes.md. Independent human review remains pending.