{"id":19438988,"url":"https://github.com/spacejam/scary-black-box","last_synced_at":"2026-02-28T22:31:14.530Z","repository":{"id":149786429,"uuid":"65090847","full_name":"spacejam/scary-black-box","owner":"spacejam","description":"lightweight fault injection containerization via systemd-nspawn","archived":false,"fork":false,"pushed_at":"2016-08-06T17:10:01.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-28T10:55:51.215Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spacejam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-08-06T16:12:47.000Z","updated_at":"2016-08-06T16:12:47.000Z","dependencies_parsed_at":"2023-06-02T14:45:21.105Z","dependency_job_id":null,"html_url":"https://github.com/spacejam/scary-black-box","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spacejam/scary-black-box","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacejam%2Fscary-black-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacejam%2Fscary-black-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacejam%2Fscary-black-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacejam%2Fscary-black-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spacejam","download_url":"https://codeload.github.com/spacejam/scary-black-box/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacejam%2Fscary-black-box/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29953280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T18:42:55.706Z","status":"ssl_error","status_checked_at":"2026-02-28T18:42:48.811Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T15:20:31.952Z","updated_at":"2026-02-28T22:31:14.495Z","avatar_url":"https://github.com/spacejam.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# :ghost: scary black box :scream:\n\n## what?\n\nlightweight in-memory isolated process launcher for use with fault injection\ntooling for distributed systems. we need to support:\n\n* giving a process its own hostname and filesystem\n* degrade networks\n* degrade name resolution\n* slam disks into RO\n* corrupt disks\n* mess with IO\n* messing with clocks\n* simple configuration for the common case of starting N processes that are \nconfigured to know about some of each other\n\n## why?\n\nI want to containerize different systems quickly, so that I can focus on \nfault injection for clients.\n\n## how?\n\nthis is pretty lightweight wrapper around systemd-nspawn, tc, echo, and mount.\n\n## usage\n\nwe've got a database binary, `kvd`, which takes a `--peers=h1,h2,h3...`\nargument with all of the other peers. we want to stand up 3 instances that \nknow about each other, then start messing with it.\n\n```\nsbb -d /path/to/kvd_dir -n 3 -c './kvd --peers={{otherpeers}}'\n```\n\nthis will create a tmpfs for each `-n`, copy the files in the directory\nspecified with `-d` into it, use systemd-nspawn to rig up a network and kick \noff the command.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacejam%2Fscary-black-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspacejam%2Fscary-black-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacejam%2Fscary-black-box/lists"}