GithubHelp home page GithubHelp logo

Comments (7)

maidul98 avatar maidul98 commented on July 19, 2024 1

You can read more about Keyring here https://wiki.gnome.org/Projects/GnomeKeyring/RunningDaemon. To auto unlock, you can simply add

export $(dbus-launch) && echo "your wsl password" | gnome-keyring-daemon -r --unlock --components=secrets

to your ~/.bashrc. This will auto unlock your Keyring without having to type it in every time. I'm looking into your reordering issue.

from infisical.

maidul98 avatar maidul98 commented on July 19, 2024

Hello! I have updated the regex to be a bit more accurate when validating the email address.

For reference here is the code i pushed to update it: 3689d75

I have also pushed out a new release: https://github.com/Infisical/infisical/actions/runs/3514837815

Once the release is complete, you may reinstall or update the CLI in your package manager to receive the new change. Please let us know if you continue to have trouble.

from infisical.

abdalem avatar abdalem commented on July 19, 2024

Great ! The email regex is actually passing, but still having an issue for login: Unable to store your credentials in system key ring

I am using Ubuntu through WSL if that helps. WIth the old CLI (node), I had not any issue on login with the same platform.

EDIT
This is the logs i got:

ERRO[0009] Unable to store your credentials in system key ring
DEBU[0009] Unable to store user credentials:%!(EXTRA dbus.Error=The name org.freedesktop.secrets was not provided by any .service files)

from infisical.

maidul98 avatar maidul98 commented on July 19, 2024

The Keyring is used to store your login credentials securely at rest. This must be because you are on a headless Linux on WSL where keyring may not be available. I'm going to work on reproducing this bug and seeing how we can get keyring on your Linux. I will get back to this shortly

from infisical.

maidul98 avatar maidul98 commented on July 19, 2024

I was able to reproduce the issue you mentioned. This is because you are on a headless linux (WSL). Here is my recommendation if you want to continue using WSL.

  1. Install the Keyring on WSL
sudo apt-get update -y

sudo apt-get install -y gnome-keyring
  1. install the CLI (i think you have done that already)

  2. start Keyring

export $(dbus-launch)
gnome-keyring-daemon -r --unlock --components=secrets

Note: The command gnome-keyring-daemon -r --unlock --components=secrets expects you to type your WSL password. Once you entered your password, press Ctrl+D twice.

  1. Login to infisical
infisical login 

Please keep in mind that you will have to run step 3 each time you open a terminal which did not already have the Keyring unlocked. Otherwise, you will get the same error. You do not have to login again after you successfully logged in once; you will just have to run step 3 in the terminal at least once before you run infisical.

Typically, all of this already exists on your system if you have a full linux/windows/mac so you don't have to do anything other than login into infisical. Let me know if this helps.

from infisical.

abdalem avatar abdalem commented on July 19, 2024

Ok ! Thanks ! I will try to find a solution to bypass this. Lot of people are using WSL now, including my whole teams.

EDIT 1
It really became annoying. With the old behavior (push-pull) it was far mor easy to setup envs, even in docker-compose. It make more sense in development environnement to act like this. Moreover, projects were working around Infisical but not becaming dependent of it. With the new logic, we have to edit our dockerfiles or docker-compose to make it work right. Maybe it is just the time to adapt myself to the new paradigm.

EDIT 2
I found out why it is working badly. It is the same behavior as pointed by my other issue: #26
But as I could not see the list of envs in a file, I was unable to reorder them.

from infisical.

maidul98 avatar maidul98 commented on July 19, 2024

If you’ve had issues logging in because of keyring problems, Infisical CLI now supports multiple vaults to save your login credentials at rest. That means if the default store doesn’t work, you can switch to a different vault. Or, if you don’t have any vaults installed at all, you can still store your credentials safely in an encrypted text file with a passphrase that only you know. Check out more info on this here https://infisical.com/docs/cli/commands/vault don’t forget to update your CLI!

from infisical.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.