Repository navigation
feat(sync): 同期の設定をファイルとQRコードで書き出し、暗号化キーを入力して取り込めるようにする - #830
Merged
Merged
Conversation
設定済みのマシンは、同期先とS3の認証情報を、Vaultにある暗号化キーで封じた文書として 書き出す。入力するものは無い。別のマシンは、ファイルを選ぶかQRコードを読み取り、 暗号化キーを入力すると、接続の確認から参加までを続けて行う。 - engine: POST /api/v1/sync/setup/export と /import。文書はスナップショットと同じ envelope で封じ、 取り込みは OpenRemote の上限で開いて ValidateTarget に通し、既存の同期先だけに参加する - QRコードのマス目は engine が rsc.io/qr で作る。入り切らない長さのときはファイルだけにする - Web: Sync の未設定の画面に「書き出した設定を取り込む」、[同期設定を管理]に「設定を書き出す」。 QRコードはカメラの映像を jsqr で読む - Android: CAMERA の権限を足し、engine の origin からの映像だけの要求に限ってカメラを許可する - 自分で決めた暗号化キーのときは、書き出しの画面に総当たりの注意を出す - 設定を保存したあとも[自分で決める]のチェックが残る表示を直す Claude-Session: https://claude.ai/code/session_014WPnWuU8Uy5fNoLiCY89Ei
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.
何を変えたか
同期の設定を設定済みのマシンから別のマシンへ渡せるようにしました。
sshc-sync-settings.json)にもできます。仕組み
sync_setup_target_emptyで断ります。足した依存
rsc.io/qrv0.2.0(QRコードの生成、BSD)jsqr1.4.0(QRコードの読み取り、Apache-2.0)。読み取りを始めたときにだけ読み込みます。ついでに直したこと
確かめたこと
確かめていないこと
https://claude.ai/code/session_014WPnWuU8Uy5fNoLiCY89Ei