Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--domain not working correctly. #2659

Open
en3sis opened this issue Oct 29, 2024 · 1 comment
Open

--domain not working correctly. #2659

en3sis opened this issue Oct 29, 2024 · 1 comment
Labels
help wanted Open for contributions from the community

Comments

@en3sis
Copy link

en3sis commented Oct 29, 2024

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

@maidul98 maidul98 added the help wanted Open for contributions from the community label Nov 1, 2024
@hauskens
Copy link

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

vishwamartur added a commit to vishwamartur/infisical that referenced this issue Dec 30, 2024
Related to Infisical#2659

Update the `--domain` flag functionality in infisical CLI version 0.31.4 to correctly point to the specified domain.

* **cli/packages/util/helper.go**
  - Import `config` package.
* **cli/packages/cmd/login.go**
  - Update the `handleUniversalAuthLogin` function to consider the `--domain` flag and update the `infisicalClient` with the domain flag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Open for contributions from the community
Projects
None yet
Development

No branches or pull requests

3 participants