Skip to content

feat: device-code login for SSH and headless Linux - #41

Merged
freelw merged 3 commits into
flash3/linux-support-1117from
flash3/device-login-1117
Nov 17, 2026
Merged

freelw merged 3 commits into
flash3/linux-support-1117from
flash3/device-login-1117

Conversation

@freelw

@freelw freelw commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

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; --browser forces loopback, --no-open retains 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.

@freelw
freelw merged commit d4410f2 into flash3/linux-support-1117 Nov 17, 2026
4 checks passed
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant