Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
a3ab560
feat(auth): hand a browser its key from dg, one warning on every phra…
PastaPastaPasta Oct 4, 2026
d803b27
fix(auth): never leave a browser key live and unheld after a dg handoff
PastaPastaPasta Oct 4, 2026
cbc5875
fix(dg): warn that a browser key request may come from a look-alike page
PastaPastaPasta Oct 4, 2026
8289ef5
Merge remote-tracking branch 'origin/master' into feat/e6-phrase-handoff
PastaPastaPasta Oct 4, 2026
60e5ba4
feat(web): Devices & keys page, a new-key alert on sign-in, and a per…
PastaPastaPasta Oct 4, 2026
b7e48e9
fix(web): disable only Forge keys, never alert on keys this browser a…
PastaPastaPasta Oct 4, 2026
4822a86
Merge remote-tracking branch 'origin/master' into feat/e6-phrase-handoff
PastaPastaPasta Oct 4, 2026
cf60bf5
Merge branch 'feat/e6-phrase-handoff' into feat/e6-devices-keys
PastaPastaPasta Oct 4, 2026
935e6a1
Merge remote-tracking branch 'origin/master' into feat/e6-phrase-handoff
PastaPastaPasta Oct 4, 2026
998b05f
Merge branch 'feat/e6-phrase-handoff' into feat/e6-devices-keys
PastaPastaPasta Oct 4, 2026
c2cd237
feat(dg): replace the encryption key after a lost device, and say how…
PastaPastaPasta Oct 4, 2026
5809afb
fix(dg): every rekey adds a fresh key, and a repository counts as mov…
PastaPastaPasta Oct 4, 2026
f970afa
Merge remote-tracking branch 'origin/master' into feat/e6-phrase-handoff
PastaPastaPasta Oct 4, 2026
fbfd8b3
Merge branch 'feat/e6-phrase-handoff' into feat/e6-devices-keys
PastaPastaPasta Oct 4, 2026
32d6e0a
Merge branch 'feat/e6-devices-keys' into feat/e6-encryption-rekey
PastaPastaPasta Oct 4, 2026
8f13855
Merge remote-tracking branch 'origin/master' into feat/e6-phrase-handoff
PastaPastaPasta Oct 4, 2026
cda7abf
Merge branch 'feat/e6-phrase-handoff' into feat/e6-devices-keys
PastaPastaPasta Oct 4, 2026
75c8c3b
Merge branch 'feat/e6-devices-keys' into feat/e6-encryption-rekey
PastaPastaPasta Oct 4, 2026
376ed87
docs: say recovery phrase in the rekey section
PastaPastaPasta Oct 4, 2026
dcc0eba
Merge remote-tracking branch 'origin/master' into feat/e6-phrase-handoff
PastaPastaPasta Oct 4, 2026
80bb7f6
Merge branch 'feat/e6-phrase-handoff' into feat/e6-devices-keys
PastaPastaPasta Oct 4, 2026
f7d8716
fix(web): Devices & keys copy passes the copy lint, and says why the …
PastaPastaPasta Oct 4, 2026
2a83cb4
Merge branch 'feat/e6-devices-keys' into feat/e6-encryption-rekey
PastaPastaPasta Oct 4, 2026
5bcbb7f
fix(web): Lost a device? fits the copy lint, and the encryption key's…
PastaPastaPasta Oct 4, 2026
dbbe71a
Merge remote-tracking branch 'origin/master' into feat/e6-phrase-handoff
PastaPastaPasta Oct 4, 2026
9d76814
Merge branch 'feat/e6-phrase-handoff' into feat/e6-devices-keys
PastaPastaPasta Oct 4, 2026
d208a57
Merge branch 'feat/e6-devices-keys' into feat/e6-encryption-rekey
PastaPastaPasta Oct 4, 2026
182a68f
Merge remote-tracking branch 'origin/master' into feat/e6-phrase-handoff
PastaPastaPasta Oct 4, 2026
9f72353
merge: origin/master into feat/e6-phrase-handoff
PastaPastaPasta Oct 5, 2026
5ee925b
fix(auth): take a dg key only for the identity the page asked about, …
PastaPastaPasta Oct 5, 2026
faab35d
fix(auth): report a vault another tab changed as such, not as a stage…
PastaPastaPasta Oct 5, 2026
6a3da91
Merge branch 'feat/e6-phrase-handoff' into feat/e6-devices-keys
PastaPastaPasta Oct 5, 2026
10d8e6b
Merge branch 'feat/e6-devices-keys' into feat/e6-encryption-rekey
PastaPastaPasta Oct 5, 2026
3ff8ed2
merge: origin/master into feat/e6-phrase-handoff
PastaPastaPasta Oct 5, 2026
078c75d
merge: origin/master into feat/e6-phrase-handoff
PastaPastaPasta Oct 5, 2026
15adb37
Merge branch 'feat/e6-phrase-handoff' into feat/e6-devices-keys
PastaPastaPasta Oct 5, 2026
dc74fe7
Merge branch 'feat/e6-devices-keys' into feat/e6-encryption-rekey
PastaPastaPasta Oct 5, 2026
76dd8e2
fix(dg): dg auth keys rotate help passes the help lint
PastaPastaPasta Oct 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
337 changes: 333 additions & 4 deletions crates/dg/src/auth/keys.rs

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions crates/dg/src/auth/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
pub mod group;
mod keys;
mod new;
mod rekey;
pub mod store;

use std::path::PathBuf;
Expand Down Expand Up @@ -297,6 +298,8 @@ pub fn read_mnemonic() -> Result<Secret> {
.into(),
);
}
// The same words before every phrase prompt, here and in the web app (TS-06).
eprintln!("{}", forge_core::browser_key::RECOVERY_PHRASE_WARNING);
let words =
rpassword::prompt_password("Recovery words (12, hidden as you type): ").map_err(|e| {
// Ctrl-D or Ctrl-C: the user left, nothing was written (E803), not "no terminal".
Expand All @@ -315,7 +318,7 @@ pub fn read_mnemonic() -> Result<Secret> {
/// What [`master_identity`] says before it asks for the recovery words: a user who signed in
/// with an identity file has no words at hand, and `--master <file>` takes that file instead
/// (L-34).
const MASTER_PROMPT: &str =
pub(crate) const MASTER_PROMPT: &str =
"This needs your master key once. It is used for this one signature and not stored.\n\
Type your 12-word recovery phrase below, or press Ctrl-C and run the command again with \
--master <identity file> (the file from the bridge, or a `dg auth new --backup-file`).";
Expand Down Expand Up @@ -360,7 +363,7 @@ pub fn master_identity(

/// The identity's master identity loaded when only words are available and the id is unknown
/// yet: derive, then find the identity by its master key on chain.
async fn identity_from_words(
pub(crate) async fn identity_from_words(
ctx: &Ctx,
client: &PlatformClient,
words: &Secret,
Expand Down
Loading
Loading