Repository navigation
feat(soc): a data disk for odin and a Velociraptor removal procedure (#439) - #657
Merged
Merged
Conversation
…439) Both halves of #439, written before odin is built. Storage: odin is now built with a 32 GB OS disk and a 96 GB data disk, mounted by UUID at /srv/soc-data. indexer-data and velociraptor-datastore become named volumes bound to ${SOC_DATA_DIR}/indexer and /velociraptor, so no service definition changes. The empty mountpoint is chattr +i: with the disk unmounted neither directory can exist, and Docker refuses to start the two services ("failed to mount local volume ... no such file or directory") instead of writing the evidence store onto /. Tried locally against Docker: a missing bind directory is refused and not created; a present one is written through. Removal: build-the-soc-guest.md §13 takes Velociraptor out in an order that leaves no C2 behind. The GPO uninstalls the clients first, and the GUI confirms they stopped checking in. Then the server container and volume go, then server.config.yaml (the CA private key) is shredded, so no later server can speak to a client that was missed. After that, the datastore, the SYSVOL MSI and the lab scrape job; a port check from alexander confirms. stacks/soc/README.md and .env.example (SOC_DATA_DIR) follow, plus a changelog entry. validate.sh: all pass except backup-offsite's /tmp fixture, which fails on this host's tmpfs /tmp and on main alike. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…emoval-439 # Conflicts: # docs/changelog.md
…emoval-439 # Conflicts: # docs/changelog.md
This was referenced Sep 26, 2026
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
odinisn't built yet, so nothing running changes. When it is built, it gets a 32 GB OS disk and a 96 GB data disk mounted by UUID at/srv/soc-data. The indexer's data and Velociraptor's datastore live on the data disk.build-the-soc-guest.mdalso gains §13, a Velociraptor removal procedure written alongside the install.Why
Closes #439.
/and makes that assumption checkable. Instacks/soc/compose.yaml,indexer-dataandvelociraptor-datastorebecome named volumes bound to${SOC_DATA_DIR}/indexerand/velociraptor, so no service definition changes.server.config.yaml, holding the CA's private key, is shredded, so no later server can speak to a client that was missed.alexanderconfirms.Blast radius
odinandstacks/soconly, and only onceodinexists. The guard: the empty mountpoint ischattr +i. With the data disk unmounted, neither directory can exist, and Docker refuses to start the indexer and Velociraptor (failed to mount local volume … no such file or directory) instead of writing the evidence store to/. §8 says what that error means. The removal is destructive by design; it runs only when the tool is being retired.secrets/*.sops.yamlVerification
docker compose configonstacks/socresolves both volumes to/srv/soc-data/{indexer,velociraptor};check_compose_health.pypassesscripts/lint.shandscripts/check_docs.pypassmake validate: passes exceptbackup-offsite.sh's/tmpfixture, which fails on this host's tmpfs/tmponmaintooodinis built, per the runbook)build-the-soc-guest.md(§0, §1, §2, §8, new §13),stacks/soc/README.md,.env.example,changelog.md🤖 Generated with Claude Code