Repository navigation
Ask Key 0.7.0
Approve from your iPhone, and back up your library. · 可以在 iPhone 上审批了,凭证库也能备份了。 English · 中文
English
Added
- Approve from iPhone. Settings → Devices pairs the Mac with Ask Key for iPhone, a public TestFlight beta at https://askkey.sudohg.com/iphone. Both devices use iCloud with the same Apple Account. Choose Pair a Device…, scan the QR code with the iPhone Camera, type the code the iPhone shows on the Mac, and confirm on both devices.
- A read request waiting for a decision also goes to paired iPhones: at once while the Mac is locked, otherwise after 20 seconds or when the Mac locks. The first decision on either device counts. Allow on the iPhone needs Face ID or Touch ID. Writes and group changes stay on the Mac.
- The approval card counts down to the send and shows when the iPhone approved or denied. Access records name the iPhone that decided.
- Backup. Settings → Backup exports every credential to one encrypted
.askkeybackupfile, with a recovery key that Ask Key shows once and never stores. Import Backup…, or Restore from Backup… on the first-run screen, brings the library to another Mac.
Changed
- The approval card's footer reads "This request expires in 4:59" instead of "Esc to decide later". Esc still decides later.
Fixed
- With Launch at Login on, Ask Key starts with only its menu bar icon instead of opening the management window.
askkey openstarts it the same way. - Saving Agent access settings no longer fails after a renamed copy of the app, such as
Ask Key 2.app, has saved them.
Security
- Until you choose Pair a Device…, update checks stay Ask Key's only outbound network requests. After pairing, Ask Key also uses your iCloud account's private CloudKit database and Apple's push service; messages are end-to-end encrypted between the devices.
- A request sent to the iPhone never carries a credential's value, file contents, the rest of the environment, a write's content or anything about Hidden credentials. A remote Allow needs a fresh Face ID or Touch ID signature and applies only to that request while it is still waiting. Removing the iPhone on the Mac ends its approval at once.
- Decide on the card in the iPhone app: anyone who can write to your iCloud can show a notification with any text under Ask Key's name.
- A backup is sealed with AES-256-GCM under its recovery key. Anyone with both the file and the key can read every credential in it; without the key nobody can open it, Ask Key included. An import never deletes or overwrites a credential, and credentials that were Allow arrive as Ask every time. Agents cannot export or import backups.
Upgrading from 0.6.0
- Choose Check for Updates… in Settings → General or in the menu bar icon's menu, or wait for the daily check.
- There is no library migration. Credentials, permissions and settings are kept without a Resume step, and connected agents need no setup change.
- Downgrading to 0.6.0 keeps the library and settings. Remove any paired iPhone in Settings → Devices first, because 0.6.0 sends it no requests.
Upgrading from 0.5.0 or earlier? Install this version by hand as below, and read the 0.6.0 and 0.5.0 notes first.
Install
- Download
AskKey.dmgandAskKey.dmg.sha256below; runshasum -a 256 -c AskKey.dmg.sha256to verify the image. - Open the DMG and drag Ask Key into Applications. Keep its name and location, or agents cannot connect and Ask Key does not check for updates.
- Open Ask Key and follow the welcome page.
Good to know
- Export a new backup after you change credentials, and keep the recovery key apart from the file.
- Ask Key requires macOS 14 or later.
- An approved program can print, copy or forward what it receives.
If something in Ask Key gets in your way, or you have an idea for it, please open an issue. Bug reports, feature ideas and questions are all welcome.
Full details: Changelog · README · Security · ADR 0012: encrypted backup · ADR 0013: device pairing · ADR 0014: remote approval
中文
新增
- 在 iPhone 上审批。 在“设置 → 设备”里把 Mac 和请旨 iPhone 版配对。iPhone 版目前是 TestFlight 公开测试版:https://askkey.sudohg.com/iphone。两台设备需要登录同一个 Apple 账户并使用 iCloud。点“配对设备…”,用 iPhone 相机扫二维码,把 iPhone 上显示的配对码输进 Mac,然后在两台设备上确认。
- 等待审批的读取请求也会发到已配对的 iPhone:Mac 锁屏时立即发送,否则 20 秒后或 Mac 锁屏时发送。哪台设备先做决定就以哪台为准。在 iPhone 上允许需要面容 ID 或触控 ID。写入和分组改动仍只在 Mac 上审批。
- 审批卡片会倒数发往 iPhone 的时间,iPhone 批准或拒绝后也会显示出来。访问记录会写明是哪台 iPhone 做的决定。
- 备份。 在“设置 → 备份”里把所有凭证导出成一个加密的
.askkeybackup文件。恢复密钥只显示一次,请旨不会保存它。用“导入备份…”,或首次启动页上的“从备份恢复…”,就能把凭证库搬到另一台 Mac。
改动
- 审批卡片底部改为显示“审批请求将于 4:59 后失效”,不再显示“Esc 稍后处理”。按 Esc 仍然是稍后处理。
修复
- 开启“登录时启动”后,请旨开机只显示菜单栏图标,不再打开管理窗口。
askkey open也是这样启动。 - 改过名的应用副本(例如
Ask Key 2.app)保存过 Agent 访问设置之后,再保存不会失败了。
安全
- 点“配对设备…”之前,检查更新仍是请旨唯一的对外网络请求。配对之后,请旨还会使用你 iCloud 账户的 CloudKit 私有数据库和 Apple 推送服务,设备之间的消息端到端加密。
- 发到 iPhone 的请求不含凭证的值、文件内容、其余环境变量、写入的内容,也不含任何“隐藏”凭证的信息。在 iPhone 上允许,需要一次新的面容 ID 或触控 ID 签名,而且只对这一条仍在等待的请求生效。在 Mac 上移除这台 iPhone 后,它立即失去审批权。
- 请在 iPhone App 的卡片上做决定:任何能写入你 iCloud 的人,都能以请旨的名义弹出任意文字的通知。
- 备份文件用恢复密钥派生的 AES-256-GCM 密钥加密。同时拿到文件和恢复密钥的人能读出其中所有凭证;没有恢复密钥,谁都打不开,包括请旨自己。导入从不删除或覆盖已有凭证,原来是“允许”的凭证导入后变成“每次询问”。Agent 无法导出或导入备份。
从 0.6.0 升级
- 在“设置 → 通用”或菜单栏图标的菜单里点“检查更新…”,或者等每天的自动检查。
- 这次没有凭证库迁移。凭证、权限和设置都会保留,无需“恢复 Agent 访问”。已连接的 Agent 无需重新配置。
- 降级到 0.6.0 会保留凭证库和设置。降级前请先在“设置 → 设备”里移除已配对的 iPhone,因为 0.6.0 不会给它发请求。
从 0.5.0 或更早版本升级?请按下面的步骤手动安装,并先阅读 0.6.0 和 0.5.0 的发布说明。
安装
- 下载下面的
AskKey.dmg和AskKey.dmg.sha256,运行shasum -a 256 -c AskKey.dmg.sha256校验镜像。 - 打开 DMG,把“Ask Key”拖进“应用程序”。不要改名或更换位置,否则 Agent 连不上,请旨也不会检查更新。
- 打开请旨,按欢迎页操作。
请注意
- 改过凭证后请重新导出备份,恢复密钥和备份文件分开保存。
- 需要 macOS 14 或更高版本。
- 获准的程序可以打印、复制或转发收到的内容。
用请旨时遇到不顺手的地方,或者有任何想法,欢迎提交 issue。问题反馈、功能建议和使用疑问都可以。
详细信息:更新日志 · README · 安全说明 · ADR 0012:加密备份 · ADR 0013:设备配对 · ADR 0014:远程审批