Repository navigation
feat: device-code login for SSH and headless Linux - #41
Merged
Merged
Conversation
freelw
added a commit
that referenced
this pull request
Nov 17, 2026
* fix: support Linux skill installation and headless login * feat: device-code login for SSH and headless Linux (#41) * feat: authorize headless terminals with device codes * fix: save credentials atomically and reject unsafe device credentials * chore: bump browser-cli and bootstrap defaults to 1.4.0
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.
Adds
auth login --device: approve a short code on another device and receive credentials through outbound HTTPS polling, with no local callback listener. SSH/headless Linux selects it automatically;--browserforces loopback,--no-openretains its old behavior. CI gets an actionable credential-configuration error unless device login is explicitly requested.Handles pending/slow_down, timeout, denial, expiry, transport backoff and selected-project mismatch without printing secrets. Credentials keep existing Unix 0600 storage. Verification URLs must stay on the selected console origin.
Dependencies/order: this PR is stacked on #40 (base flash3/linux-support-1117). Merge #40 first and retarget this to main. Deploy LexHome #617 before releasing this CLI, otherwise the console lacks the device endpoints. Existing project API-key privileges remain unchanged.
Validation: 80 Rust tests passed, including 8 new real-CLI/local-HTTP device tests; 3 real-Chrome tests ignored. Clippy -D warnings and formatting passed. Human cross-device website approval is still pending a deployed console. No merge, release, image build or deployment performed.
Review follow-up: credential files are created privately and renamed atomically (symlink destinations rejected). Empty credentials and non-HTTPS API origins are rejected. Added regressions for those cases; full suite and Clippy passed. Latest head CI is separate from the prior head’s successful checks.
Version: package, lock entry and both bootstrap defaults are now 1.4.0. Linux bootstrap fixture passed and a local locked Cargo build reports version 1.4.0. PowerShell validation is delegated to Windows CI (pwsh unavailable locally). No tag or release published.