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
15.7k stars 981 forks source link

--domain not working correctly. #2659

Open en3sis opened 3 weeks ago

en3sis commented 3 weeks ago

Describe the bug

After updating infisical cli to version 0.31.4 I can no longer use the --domain flag or setting the environment variable to point to the SASS or Self-Hosted instance.

To Reproduce

Steps to reproduce the behavior:

  1. export INFISICAL_TOKEN=$(infisical login --domain=https://foo.bar.com --method=universal-auth --client-id=$INFISICAL_CLIENT_ID --client-secret=$INFISICAL_API_KEY --plain --silent)'
error: unable to authenticate with universal auth 
[err=APIError: CallUniversalAuthLogin unsuccessful response 
[POST https://app.infisical.com/api/v1/auth/universal-auth/login] 
[status-code=404] [message="No identity with specified client ID was found"]]

If this issue continues, get support at https://infisical.com/slack

Notice the POST https://app.infisical.com/api/v1/auth/universal-auth/login and not https://foo.bar.com

Expected behavior

Before, it would point to the specified --domain but now it will use whatever you have set on our infisical login and the only options is to overwrite

Platform you are having the issue on:

MacOs

Temporal Fix

downgrade to brew install infisical@0.30.0

hauskens commented 14 hours ago

FYI, I just tested infisical-0.31.4 on NixOS and was not able to reproduce the problem with --domain, however i can confirm it did not work when running 0.31.4 on MacOS