dashPi: a self-hosted home dashboard, its sync server and phone app
The dashboard (Raspberry Pi 3.5" screen + web pages), the end-to-end encrypted sync mailbox (PHP + SQLite) and the Android companion app (Flutter), with docs, clean-install checks and screenshots made from demo data. Built mostly with an AI coding assistant; not yet reviewed line by line by a human (see README and SECURITY.md). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
fb3c01cdd7
333 changed files with 45151 additions and 0 deletions
31
SECURITY.md
Normal file
31
SECURITY.md
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# Security
|
||||
|
||||
> **Not reviewed by a human.** Most of this code was written with an AI coding assistant and hasn't been
|
||||
> audited line by line. The design below is deliberate and the checks in [docs/testing.md](docs/testing.md)
|
||||
> pass, but expect bugs a careful review would catch. Don't expose the dashboard to the internet. A review
|
||||
> of the crypto (`dashboard/sync.py`, `app/lib/sync/crypto.dart`) and the auth (`dashboard/auth.py`,
|
||||
> `dashboard/web.py`) is the most useful contribution.
|
||||
|
||||
## What it's built for
|
||||
|
||||
The dashboard runs on your **home network**. The sync server is on the internet, but it only stores
|
||||
data it can't read.
|
||||
|
||||
| Part | Protects | Doesn't protect |
|
||||
|---|---|---|
|
||||
| Dashboard web pages | Logins (PBKDF2, a lockout per address), writes only from its own pages (JSON + `Origin`), only its own host names (against DNS rebinding), a setup code for the first admin | **Plain HTTP:** passwords and session cookies cross your LAN unencrypted. Put it behind a TLS reverse proxy if your network isn't trusted. Don't port-forward it. |
|
||||
| Users | The household view is read only; members only see the sections they're given | Members **share the owner's data** in those sections. It's one household's dashboard, not a multi-tenant app |
|
||||
| Sync | End-to-end encrypted (XChaCha20-Poly1305); the key is wrapped with Argon2id; the server sees sizes and times only | Someone with your passphrase or recovery key. The server can delay or withhold batches, but it can't read or forge them |
|
||||
| Secrets | `dash_config.json` and `dash_data/` are mode 600; Settings never shows a stored password | Anyone with access to the machine as the service user |
|
||||
|
||||
## Before you start
|
||||
|
||||
- Create the admin account right away (Settings ▸ Users). Until then, everyone on the network is admin.
|
||||
- Choose the household view's calendars on purpose. It's what anyone on your Wi-Fi sees without a login.
|
||||
- Use a passphrase of 4+ random words for sync, and store the recovery key offline.
|
||||
- Keep the sync server's folder outside any other site's document root ([docs/server.md](docs/server.md)).
|
||||
|
||||
## Reporting a problem
|
||||
|
||||
Please don't open a public issue for a security bug. Email it to **bashynx@bashynx.com** instead, with
|
||||
"dashPi security" in the subject.
|
||||
Loading…
Add table
Add a link
Reference in a new issue