Infisical / infisical

♾ Infisical is the open-source secret management platform: Sync secrets across your team/infrastructure, prevent secret leaks, and manage internal PKI
https://infisical.com
Other
12.93k stars 667 forks source link

[ENG-155] CLI login fails when using Safari #1057

Open peterson79 opened 9 months ago

peterson79 commented 9 months ago

Describe the bug

Unable to login with the CLI tools when using Safari as the default browser on OSX. If the default browser is changed to Chrome it works fine.

To Reproduce

Steps to reproduce the behavior:

  1. Install the Infisical CLI Tools
  2. Attempt to login with: % infisical login or % infisical login -i
  3. Both login attempts fail with errors, see Errors

Expected behavior

I expect the login process on the browser to comlete and the CLI tools to log me in.

Errors

% infisical login -i
Unable to authenticate with the provided credentials, please try again
error: CallLogin1V3: Unsuccessful response: [response={}]

% infisical login Safari opens, login is attempted a popup in the bottom right of the window show an error: Login unsuccessful. Double-check your master password and try again.

Platform you are having the issue on:

Apple M1 Pro macOS Sonoma 14.0 (23A344) Safari 17.0 (19616.1.27.211.1)

From SyncLinear.com | ENG-155

maidul98 commented 9 months ago

We are investigating this. I will get back to you with our findings

maidul98 commented 8 months ago

Findings:

Brave and Safari by default block localhost resource access. Even though Infisical has a legitimate reason to access localhost, it is being blocked. To overcome this, please use either firefox or chrome browser.

It looks like a lot of the Brave community has also brought of this issue here https://github.com/brave/brave-browser/issues/27346.

We’ll be looking to see how we can adopt the feature listed in that Github post

aktienautobahn commented 5 months ago

same here, I could authenticate in Firefox, but in Brave and Safari not possible. Any solutions yet?