Repository navigation
Authenticate the desktop bb CLI after a server move - #5486
Closed
timurkhakhalev wants to merge 1 commit into
Closed
timurkhakhalev wants to merge 1 commit into
timurkhakhalev wants to merge 1 commit into
Conversation
Prefer the daemon-provided proxy for agent CLI calls, and resolve saved connections for ordinary terminals using either packaged CLI entry point. Keep daemon/server URL precedence unchanged. Bind saved machine headers to the selected server, drop inherited headers for proxy/foreign overrides, reject authenticated redirects, and redact invalid private headers. Add regression coverage and update the guides. Fixes get-bb#4243 Continues get-bb#4277. Co-authored-by: Sawyer Hood <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Contributor
|
This is an automated message. We have closed this pull request because it has been open for more than two weeks. |
Contributor
Author
|
@SawyerHood hey! could you please merge this? |
3 tasks done
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.
Human comments
What was wrong
After a server move, the packaged launcher replaced the agent's authenticated proxy URL with the saved Connect URL, while the bundled CLI ignored authentication headers. The desktop command can also invoke the bundled CLI directly, bypassing the launcher; without connection environment variables it kept targeting the local default instead of the saved server. This continues #4277, which was closed without merge, and covers the additional desktop entry point reported in #4243.
What changed
BB_SERVER_URL. Daemon and server launches retain saved-config precedence.BB_DATA_DIR(default~/.bb). Saved credentials are only applied when the selected URL matches the saved server; proxy/foreign overrides do not inherit them.The original #4277 patch is retained with its authorship. The desktop resolver and credential protections extend that patch.
How you verified
@bb/config,@bb/cliandbb-app: final CLI suite 874 passed, config 112 passed, bb-app 222 passed. Two existing tests are skipped.bb-app,@bb/cli,@bb/config,@bb/sdkand@bb/templates: passes; affected checks rerun after review fixes.pnpm exec turbo run build:host --filter=bb-app --concurrency=2 --output-logs=errors-only: passes.Live Connect migration and real Windows execution were not tested. Installed applications and production services were not modified.
Fixes #4243
Continues #4277 and addresses the reproduction and transport review recorded in those discussions.