Repository navigation
AMT と RDP のパスワードをブラウザに保存できるようにし、電源オンを 1 回押しにする - #120
Merged
Merged
Conversation
パスワードの保存 - つなぐ前の画面に「パスワードをこの端末に保存する」(既定はオフ)。チェックを入れて つながったあとに、つなぐ先と種類(AMT / RDP)ごとにユーザー名とパスワードを保存する - 置くのはブラウザの中だけ。WebCrypto の取り出せない AES-GCM の鍵を IndexedDB に置き、 その鍵で暗号化したものを IndexedDB に置く(web/saved-login.ts)。mado には送らない - 保存があれば欄に入れる。自動ではつながない。保存したもので認証を断られたら入れ直さず、 入力し直す(上書き)か「保存を消去」で消せる - 画面のログアウトで、保存と鍵を消す。一覧に無くなった先の保存も消す - IndexedDB か WebCrypto が使えないブラウザではチェックを出さない 電源 - AMT の「電源オン」だけ 1 回押しで実行する(two-press.ts の once)。 動いている PC に影響する操作は 2 回押しのまま 試験は bun(fake-indexeddb を devDependencies に追加)と tools/amt-e2e/ui.cjs。 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T8TqVdo6LUrWKdVQgbScVU
|
Claude finished @5ym's task in 23s —— View job レビュー結果変更を読み、 良い点
要確認・軽微な点(いずれも修正必須ではありません)
まとめ設計と実装は一貫していて、テストも十分です。上の 1 の確認だけお願いします。 |
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.
パスワードの保存(AMT・RDP)
extractable: false)AES-GCM 256 の鍵を IndexedDB に置き、その鍵で暗号化したもの(保存ごとに新しい IV、追加の認証データに「種類:つなぐ先」)を IndexedDB に置く(web/saved-login.ts)。localStorage には置かないLogonError)だけ見分ける/logoutへ)/ 一覧から無くなった先は次に開いたときに消すdocs/amt.mdの「ユーザー名とパスワードの保存」に書いた(docs/rdp-client.mdと README からも)電源オンは 1 回押し
two-press.tsにonce)。シャットダウン・再起動・強制再起動・強制電源オフと、Talos の電源の操作は 2 回押しのまま試験
web/saved-login.test.ts(保存・読み出し・上書き・消去・先と種類ごとの分離・平文が無いこと・鍵を取り出せないこと・2 つのタブの同時の保存・使えない環境)。IndexedDB の偽物に fake-indexeddb を devDependencies に足した(比べた結果はdocs/amt.mdの「IndexedDB の偽物を選んだ理由」)web/two-press.test.ts(2 回押しと、1 回押しのonce)tools/amt-e2e/ui.cjs: 電源オンの 1 回押し、保存の一連(違うパスワードは保存しない、つながると保存、開き直しても入る、自動ではつながない、IndexedDB に平文が無い、断られたら 1 度でやめる、上書き、消去、ログアウトで消える)、保存が使えないブラウザbun run lint・bunx tsc --noEmit・bun test web(369 件)・bun run build:web・dotnet run --project tests/Mado.Tests.csproj(159 件、Windows だけの 3 件はスキップ)・tools/amt-e2eのe2e.tsとui.cjsを通した本物の AMT・Windows の RDP・実機のブラウザでは確かめていない。
🤖 Generated with Claude Code
https://claude.ai/code/session_01T8TqVdo6LUrWKdVQgbScVU