Skip to content

fix: use workstation auth for background commands - #55

Merged
scottcrawford03 merged 2 commits into
mainfrom
scrawford/background-workstation-auth
Dec 3, 2026
Merged

scottcrawford03 merged 2 commits into
mainfrom
scrawford/background-workstation-auth

Conversation

@scottcrawford03

@scottcrawford03 scottcrawford03 commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Why

bl apps background status and off require a saved local login even on a workstation that already authenticates as its owner.

What

Use the configured workstation proxy for both commands, without local login or organization settings. Preserve the existing login path elsewhere.

How

Reuse the trusted Kgoose workstation origin and configured service prefix. Send no local credentials through the proxy, and report workstation authentication failures without asking for a local login.

Risk

The proxy path applies only to the configured workstation origin. Turning background access on still requires the owner's browser approval.

Testing

No live workstation testing. After rollout, check status and revocation from a managed workstation without a local login.

Bigger picture

Deploy Kgoose scope support first, then the Roxy route policy and this CLI update.

Generated with Codex

@scottcrawford03
scottcrawford03 marked this pull request as ready for review December 3, 2026 20:26
@scottcrawford03
scottcrawford03 requested a review from a team as a code owner December 3, 2026 20:26
@atishpatel

Copy link
Copy Markdown

🤖 AI-assisted PR review

Summary

This PR lets bl apps background status and off use the configured workstation proxy without a local login or organization settings, while retaining the stored-session path elsewhere and the existing revocation safeguards; reviewed head: ebb695b. No subagent tool was available, so StampMaster9000 ran the behavior, reliability, and security passes sequentially.

Verdict

✅ Recommend approval — workstation authentication is restricted to the configured proxy origin, no local credential is delegated, and direct-login behavior and conservative revocation handling remain intact.

Review area Status Assessment
🧠 Behavior & Contracts ✅ Reviewed Both background actions bypass organization setup only on a trusted workstation, default to the internal service prefix with flag/environment overrides, and preserve existing direct-login URLs, response normalization, exit codes, and off confirmation.
🏗️ Reliability & Performance ✅ Reviewed Existing timeouts, response-size limits, redirect policy, network-error semantics, and revocation-race handling are unchanged; workstation 401s produce a specific operator-facing error instead of a misleading local-login prompt.
🔒 Security & Trust Boundaries ✅ Reviewed Parsed-origin matching permits proxy auth only for the configured workstation origin and rejects credentialed URLs; other origins retain local authentication, no session header is sent through the proxy, and response sanitization remains in place.
🚀 Deployment & Staging ℹ️ Advisory No live workstation exercise was performed; the documented server scope and proxy route prerequisites must be deployed before this CLI path is used. Browser-only approval for enabling background access is unchanged.
🧪 Validation & CI ✅ Reviewed DCO, Rust checks, Semgrep OSS, and zizmor pass. Inspected tests cover status/off with and without JSON, absent local credentials, service-path precedence, workstation 401s, and rejection of delegation outside the configured origin.

Findings

No material findings.

🤖 Review by StampMaster9000 · not a substitute for human review · reviewed at commit ebb695b

@scottcrawford03
scottcrawford03 merged commit 9f14b8a into main Dec 3, 2026
4 checks passed
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.

2 participants