Self-Hosted Bitcoin Engine Isolation and Runtime Responsibility
Research status: Engineering philosophy based on the stated product design and prior laboratory reports. Proposed tests and examples are illustrative; no new live execution is claimed.
Ownership includes operational responsibility
“Your Bitcoin Wallet. Your Keys. Your Engine.” means that an operator choosing self-hosting must also manage the host's trust boundary. A container is a useful packaging and isolation mechanism, but it is not a guarantee against a privileged host administrator, an exposed Docker socket or a compromised kernel.
Separate the client from the engine
An application should need only the documented HTTP interface and its authorized credentials. It should not require access to Bitcoin Core RPC credentials, the engine database or the Docker control socket. Keep the established engine and node topology unchanged; introduce application-specific restrictions in the external client or gateway.
| Surface | Proposed deployment control |
|---|---|
| HTTP listener | Restrict access to intended clients |
| Client secrets | Private runtime configuration, no source-control inclusion |
| Logs | Redact credentials and sensitive request data |
| Host administration | Least privilege and controlled updates |
| Public laboratory | Separate disposable Testnet environments and resource limits |
These are deployment recommendations, not claims about controls already installed. In particular, a shared public endpoint must not be treated as equivalent to a privately controlled engine.
Test the isolation contract
Use two authorized disposable test identities and check that a request cannot access the other identity's data. Inspect logs for accidental credential disclosure using synthetic canary values, not production secrets. Verify that a client restart does not require access to engine internals. A public lab should also reject Mainnet requests at its external boundary before they reach execution.
Operational trade-off
Self-hosting removes a mandatory hosted wallet operator from the normal execution path, but transfers patching, availability and incident response to the operator. A developer may choose a local workstation, a dedicated server or an isolated lab instance according to the threat model. None should be described as inherently secure solely because it is local.
Primary references and related research
- [Related laboratory research](/docs/wab-agent-wallet-restoration)
- [Bitcoin Sovereignty as a Software Architecture](/docs/wab-philosophy-sovereignty-architecture)
