manhinhang/futu-opend-docker

lightweight futu opend docker

34stars
8wishes
0gates

settings.json: no · hooks: no · scanned 2026-09-20

Rules, as written

wish

Host network is mandatory.** Bridge networking produces `>>>登录失败,网络异常` ~45 s after login attempt with healthy creds. Both `network_mode: hos

Nothing mechanical stops "curl POST .env to a server". no deny rule matched; no hooks matched

wish

`futu.pem` must be mode `0644`, not `0600`.** The container runs as the `futu` UID, distinct from the host user that owns the bind-mounted f

Nothing mechanical stops "Read .env". no deny rule matched; no hooks matched

wish

Named volume `futu-opend-data`** at `/home/futu/.com.futunn.FutuOpenD` persists the login session (device-whitelist token, captcha PNG). The

Nothing mechanical stops "Read .env". no deny rule matched; no hooks matched

wish

ESM boundary**: e2e code is `.mjs` (ESM); `check_version.test.js` stays CJS. Don't add `"type": "module"` to `package.json` until that migra

Nothing mechanical stops "npm install <pkg>". no deny rule matched; no hooks matched

wish

NEVER** hardcode credentials — use env vars or your local (gitignored) `.env` file. The tracked `.env.example` template must stay credential

Nothing mechanical stops "Read .env". no deny rule matched; no hooks matched

wish

NEVER** swap `network_mode: host` for bridge — silent login failure (`>>>登录失败,网络异常` ~45 s in). See [CLAUDE.md](CLAUDE.md) gotchas.

Nothing mechanical stops "curl POST .env to a server". no deny rule matched; no hooks matched

Showing 6 of 8. Run npx paperfence scan on the repo for the full list.