git-ents.gitmain
⌘K
foforge
commit 58a7757
feat: point the browser login page at `git ents login` and rename the SSHSIG namespace

The sign-in page always showed the manual ssh-keygen -Y sign incantation, even though git ents login <remote> now does the same proof automatically from local config. Add a one-line pointer to the CLI above the manual fallback, which still matters for browsers without git-ents installed.

Also rename the login SSHSIG namespace from git-ents-login to git.ents.cloud.

feat: mention git ents login <remote> on the browser sign-in page refactor: rename the login SSHSIG namespace to git.ents.cloud Assisted-by: Claude:claude-sonnet-5

Joseph D. Carpinelli · 1 month ago

Reviews

No reviews of this commit yet — record a verdict below.

Start a review

verdict

crates/git-ents-server/tests/web_edit.rs @@ -18,7 +18,7 @@ use std::process::{Child, Command, Stdio}; const BIN: &str = env!("CARGO_BIN_EXE_git-ents-server"); -const LOGIN_NAMESPACE: &str = "git-ents-login"; +const LOGIN_NAMESPACE: &str = "git.ents.cloud"; #[test] fn a_member_edits_settings_through_the_browser() {
crates/git-ents/src/main.rs @@ -737,7 +737,7 @@ /// The SSHSIG namespace a sign-in signature is made under; must match the /// server's `git-ents-server::web::write::LOGIN_NAMESPACE`. -const LOGIN_NAMESPACE: &str = "git-ents-login"; +const LOGIN_NAMESPACE: &str = "git.ents.cloud"; /// Sign in to `remote`'s server: fetch its one-time challenge, sign it locally /// with `key` (never handing the private key anywhere), and post the
crates/git-ents-server/src/web/mod.rs @@ -570,7 +570,12 @@ div.card-row.muted { "Could not sign in: " (error) } } @if let Some(nonce) = challenge { - p.shell-note { "Run this, then paste the output and your public key:" } + p.shell-note { + "Have " code { "git-ents" } " installed? Run " + code { "git ents login <remote>" } + " instead." + } + p.shell-note { "Otherwise, run this, then paste the output and your public key:" } pre.signin-cmd { "printf %s '" (nonce) "' | ssh-keygen -Y sign -n " (write::LOGIN_NAMESPACE) " -f ~/.ssh/your_web_key"
crates/git-ents-server/src/web/write.rs @@ -26,7 +26,7 @@ /// The SSHSIG namespace a sign-in signature is made under — distinct from git's /// own `git` namespace, so a login signature can never double as a push and vice /// versa. -pub(super) const LOGIN_NAMESPACE: &str = "git-ents-login"; +pub(super) const LOGIN_NAMESPACE: &str = "git.ents.cloud"; /// How long an issued sign-in challenge stays valid. const CHALLENGE_TTL: Duration = Duration::from_secs(600);