HostVault 隐私政策 / Privacy Policy
版本:1.3 | Version 1.3
生效日期 / Effective date:2026-12-03
HostVault 是本地优先、默认离线运行的个人 SSH 客户端:你的主机与凭据默认只加密保存在你自己的设备上;同步为可选功能,由你自行填写自建同步服务地址或明确授权个人 GitHub 私有仓库。开发者不收集、不追踪、不向开发者服务器回传你的任何个人数据或使用行为。
HostVault is a local-first, offline-by-default personal SSH client. Your hosts and credentials are stored encrypted solely on your own devices by default. Synchronization is optional and connects only to a self-hosted sync server you specify or a private GitHub repository you explicitly authorize. The developer does not collect, track, or transmit any of your personal data or usage analytics to developer-operated servers.
本文件是唯一正文;应用内「关于 HostVault → 隐私政策」展示与本文件完全一致的副本(client/assets/privacy_policy.md)。
This document is the canonical text; the in-app "About HostVault → Privacy Policy" screen displays a byte-identical copy (client/assets/privacy_policy.md).
一、保存在本机的数据 / Data Stored Locally on Your Device
- 加密保险库 / Encrypted Vault:主机地址、用户名、密码、私钥、主机指纹信任记录,以及链接、账号密码、API Key 和服务配置文件,经 Argon2id + AES-256-GCM 加密后存放在本机 SQLite 数据库中,数据库内仅有密文。
Hosts, usernames, passwords, private keys, host-key trust records, links, account credentials, API keys, and service configurations are encrypted with Argon2id + AES-256-GCM and stored solely as ciphertext in the local SQLite database.
- 系统钥匙串 / System Keychain:保险库解锁密钥、你选择记住的自建同步会话 token 和 GitHub 访问 token 保存在系统安全存储(iOS/macOS Keychain)中,不会以明文落盘,也不会随保险库上传。
The vault unlock key, optional remembered self-hosted sync session tokens, and GitHub access tokens are stored in the OS Keychain and are never uploaded as part of the vault payload.
- 会话日志 / Session Logs:默认关闭。开启后,终端输出加密存放在保险库内;主动导出的日志文本和主机 CSV 为明文,请自行妥善保管。
Disabled by default. When enabled, terminal output is stored encrypted in the vault; manually exported log files and CSV files are plaintext and should be safeguarded by you.
- 恢复码与加密备份 / Recovery Code & Backups:恢复码仅在本机向你显示,应用绝不上传;加密备份文件由你自行导出与保管。
Your recovery code is shown only locally on your device and never uploaded. Encrypted backup files are exported and stored solely under your control.
二、可选同步服务与 GitHub / Optional Sync & GitHub Private Repository
同步默认关闭且无需任何账号。仅当你主动配置并触发同步时,客户端才会连接你指定的自建同步服务或 GitHub API:
Sync is optional and no account is required to use HostVault. Only when you explicitly configure and trigger sync will the client connect to your chosen self-hosted server or GitHub:
- 自建同步服务 / Self-Hosted Sync Server:接收保险库端到端密文快照、版本号与你自建服务的账号/设备会话元数据;服务端由你或你信任的管理员自行运行与管理,无法解密密文。
Receives end-to-end encrypted vault snapshots, revision numbers, and account/device session metadata on the server operated by you or your administrator. The server cannot decrypt your vault.
- GitHub 私有仓库 / GitHub Private Repository:使用你手动填入的 fine-grained Personal Access Token(仅授权目标私有仓库 Contents 读写),将完整保险库端到端密文上传到该仓库的
.hostvault/vault.json。GitHub 仅可见仓库/分支名、请求时间、IP 与密文提交记录,无法查看任何明文凭据;token 不参与加密且不上传。
Uses a fine-grained Personal Access Token you enter (scoped solely to Contents read/write on your chosen private repository) to upload the complete end-to-end encrypted vault to .hostvault/vault.json. GitHub sees only repository metadata and encrypted ciphertext, never plaintext secrets. The token is not uploaded.
三、由你主动触发的其他网络连接 / Other User-Initiated Connections
以下功能仅在你明确配置并操作时直连你指定的目标服务:
The following optional features connect directly to endpoints you configure only when initiated by you:
- SSH / SFTP / 端口转发:直连你添加的目标主机,不经过开发者的任何中转服务器。
SSH / SFTP / Port Forwarding: Connects directly to your target hosts without passing through any developer relay server.
- AI 命令生成 / AI Command Generation:仅将你输入的问题描述发送到你自行配置的 HTTPS 接口;终端上下文默认不发送,仅在你显式打开「包含终端上下文」开关后附带。
Sends your prompt only to the HTTPS endpoint you configure; terminal context is excluded unless you explicitly enable it.
- 云主机发现 / Cloud Host Discovery:使用你配置的公有云凭据直连 AWS / DigitalOcean / Azure API 获取主机列表。
Queries AWS / DigitalOcean / Azure APIs directly using credentials you supply.
- 企业单点登录(SSO):仅在连接支持 SAML 的自建 V2 服务端时,通过系统浏览器跳转至你配置的身份提供商(IdP)。
Opens the system browser to your configured IdP only when signing in to a self-hosted V2 server with SAML enabled.
四、我们明确不做的事 / What We Never Do
- 不内置任何统计、埋点、广告、第三方追踪或崩溃上报 SDK。
No analytics, telemetry, advertising, third-party tracking, or crash-reporting SDKs.
- 不向开发者回传任何主机信息、凭据、命令历史或使用数据。
No host data, credentials, command history, or usage data is ever sent to the developer.
- 不自动扫描或导入你设备上的现有 SSH 密钥与配置;私钥仅在你主动粘贴或选择文件时保存。
Never scans or auto-imports existing SSH keys or configs; private keys are saved only when you explicitly enter or pick them.
五、系统权限用途 / System Permissions
- 网络与局域网(Local Network):直连你选择的局域网或公网 SSH 主机及自建同步服务。
Connect directly to local-network or remote SSH hosts and self-hosted sync servers you specify.
- Face ID / Touch ID:用于本机解锁保险库或硬件安全区设备 SSH 密钥签名,可随时关闭。
Used locally to unlock your vault or sign with Secure Enclave SSH device keys; optional and toggleable at any time.
- 文件访问 / File Access:仅在你主动选择文件时用于导入/导出加密备份、SSH 私钥、日志或 SFTP 传输。
Used only when you explicitly pick or export files (encrypted backups, SSH keys, logs, or SFTP transfers).
六、数据保留与删除 / Data Retention and Deletion
- 本机数据 / Local Data:删除主机、清空日志、断开同步或卸载应用即可彻底清除本机数据。
Deleting hosts, clearing logs, disconnecting sync, or uninstalling the app removes local data immediately.
- 自建服务端数据 / Self-Hosted Server Data:连接 V2 自建服务端时,可在应用内「账号安全 → 删除账号」彻底删除云端账号与密文,或直接由你的服务器管理员删除。
On V2 self-hosted servers, use in-app "Account Security → Delete Account" to permanently erase your server account and ciphertext, or remove it directly as server administrator.
- GitHub 数据 / GitHub Data:移除本机 token 会立即清除本机凭据;撤销 token 或删除仓库/提交历史请在 GitHub 管理界面操作。
Removing the local token clears it from your device immediately; revoke the token or delete the repository in GitHub settings.
七、联系方式 / Contact
如对本隐私政策或安全问题有任何疑问,请联系开发者 Jinlong Wang:lukewang.dev@hotmail.com。
If you have any questions about this Privacy Policy or security matters, please contact Jinlong Wang at lukewang.dev@hotmail.com.