Repository navigation
feat(servers): 已登记服务器可重新登录(换 IP / 密码) - #14
Open
momijineko wants to merge 4 commits into
Open
momijineko wants to merge 4 commits into
momijineko wants to merge 4 commits into
Conversation
Add a same-id reauth path so a registered box that moved IP (or needs a new password) can restore the dedicated key without creating a second server record. Detail sheet exposes Re-login; probe/apply rewrite the pubkey, update host/user/fingerprint, and clear backoff. Co-authored-by: 紅葉猫 <momijineko@users.noreply.github.com>
When the presented fingerprint differs from the pin for this server id, reauth_probe now closes the connection before authenticate. The UI must ack the mismatch and re-probe with ack_mismatch before any password or user key is sent. Co-authored-by: 紅葉猫 <momijineko@users.noreply.github.com>
Require expected_fingerprint with ack_mismatch so a TOCTOU host-key swap cannot inherit approval. Keep the alt-panel dedicated-key path across the confirm re-probe, and surface post-ack auth failures on the credential step. Co-authored-by: 紅葉猫 <momijineko@users.noreply.github.com>
After the host key is accepted for an attempt, a rejected password must not report mismatch — that sent the UI back to the trust screen and hid the credential error. Prefer probeError over mismatch in the sheet. Co-authored-by: 紅葉猫 <momijineko@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
已登记的远程服务器换 IP 或换密码时,不必删掉重加。详情页新增「重新登录」:可改地址 / 端口 / 用户名并重新输入密码或密钥,同一条记录上恢复专用密钥
tokenme_ed25519并清退避。指纹与已记录 pin 不一致时,先确认再发送密码/私钥。
Changes
server_reauth_probe/server_reauth_apply(只跑 keygen→pubkey→reconnect→clear_pw;ack_mismatch门禁)Test plan
pnpm exec tsc --noEmit?srv=preset: 失败机 edge-node → 重新登录 → 改 IP → 密码 → 信任 → 成功;列表仍只有一条 edge-nodeFork PR: momijineko#3