CLI-3556: confluent cli does not take BROWSER environment variable into account within wsl

Open
#2,691 1 comment 1 reaction 1 assignee View on GitHub

Maintainers usually reply within 1 day

@sgagniere is already working on this.

Since Mar 20, 2024.

Assessment

This issue has not been assessed yet.

Description

bug

I try to run confluent login within wsl and it opens the browser within wsl.
The problem with this is that I cannot login with SSO, because I get an Azure error my device is unmanaged.
For other commands I solved this by setting BROWSER=wslview, but it looks like confluent cli does not take this environment variable into account.

The workaround is to use the --no-browser flag, but it would be still nice if it can be fixed.
My second workaround is removing Firefox within wsl.

Dominant language
Go
Stars
82
Forks
37
Avg merge
1d 13h
Merged PRs (30d)
22

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from confluentinc/cli

All issues in confluentinc/cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.