38 lines
1.1 KiB
Markdown
38 lines
1.1 KiB
Markdown
# Security
|
||
|
||
## Trust boundaries
|
||
|
||
| Component | Privilege | Trust |
|
||
|---|---|---|
|
||
| React UI | user | untrusted input |
|
||
| `ld-fdpi` Rust core | user | validated commands |
|
||
| `ld-fdpi-helper` | root | allowlist daemon |
|
||
| `spoofdpi` | user | local proxy only |
|
||
|
||
## Helper rules
|
||
|
||
- Unix socket at `/run/ld-fdpi/helper.sock`
|
||
- mode `0660`, group `ld-fdpi`
|
||
- peer credentials checked with `SO_PEERCRED`
|
||
- only root or members of `ld-fdpi`
|
||
- JSON allowlist
|
||
- no `shell=True`, no string-built command lines
|
||
- fixed `awg`/`nft` paths
|
||
|
||
## Network safety
|
||
|
||
- Do not apply nftables rules on the development host without a VM.
|
||
- Phase 4 kill-switch must include an SSH lockout guard.
|
||
- All firewall changes must have a `--restore-only` equivalent.
|
||
- Helper crashes must not leave a drop-all rule active.
|
||
|
||
## Secrets
|
||
|
||
- No `APP_SECRET`, private key, `.conf`, or token is committed.
|
||
- VPN keys will use Secret Service/keyring in Phase 3.
|
||
- Config files are user-readable only (`0600`).
|
||
|
||
## Known gaps
|
||
|
||
This MVP does **not** implement the VPN kill-switch or QUIC guard. Do not
|
||
describe it as a hardened VPN client until Phases 3–4 are complete.
|