libsecret | Secret management abstraction library | Identity Management library

 by   ehazlett Go Version: Current License: No License

kandi X-RAY | libsecret Summary

kandi X-RAY | libsecret Summary

libsecret is a Go library typically used in Security, Identity Management applications. libsecret has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

libsecret provides a Go native library to store secrets. libsecret has the ability to use multiple backends for secret storage. Currently implemented is the Vault backend. There is a sample CLI application for reference. Note: this is currently in development. Not yet for production use.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              libsecret has a low active ecosystem.
              It has 28 star(s) with 5 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 1 open issues and 0 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of libsecret is current.

            kandi-Quality Quality

              libsecret has no bugs reported.

            kandi-Security Security

              libsecret has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              libsecret does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              libsecret releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi has reviewed libsecret and discovered the below as its top functions. This is intended to give you an instant insight into libsecret implemented functionality, and help decide if they suit your requirements.
            • main is the main entry point for testing
            • NewVault returns a new Vault instance
            • getStoreOpts extracts store options from command line
            • GetAction is a wrapper for getAction
            • setAction handles a set action
            • getStore returns the secret store
            • rmAction is a wrapper for rm command .
            • supportedBackends returns a string representation of all supported backends .
            • simple log formatter
            • backend returns the backend for the backend .
            Get all kandi verified functions for this library.

            libsecret Key Features

            No Key Features are available at this moment for libsecret.

            libsecret Examples and Code Snippets

            No Code Snippets are available at this moment for libsecret.

            Community Discussions

            QUESTION

            How to store multiple PATs/passwords for use by git?
            Asked 2021-May-05 at 17:24
            One password is no problem

            I wanted to store my credentials "safely" for use by git so I did as instructed here. This way I don't have to input password/PAT every single time, I perform any git operation.

            1. Install libsecret using sudo apt-get install libsecret-1-0 libsecret-1-dev

            2. Build the "credential manager" using sudo make --directory=/usr/share/doc/git/contrib/credential/libsecret

            3. and then configure my local git folder using git config --global credential.helper \ /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret

            Works superb.

            How to do the above with many passwords?

            What I don't get is how to do the same for many passwords associated with different accounts/repositories. I was suggested to use gcm core.

            I tried installing gcm core as instructed here.

            1. Download .deb package

            2. sudo dpkg -i git-credential-manager-core configure

            3. configure the "credential store" git config credential.credentialStore secretservice (as I use libsecret).

            4. I removed the Credential helper pointing to /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret from the local git config file.

            It still doesn't work. When I try to push a repo, I get a garbled message with how to use git config followed by request to fill in credentials (shown here). I don't understand what I am doing! namely credential store, credential manager, secret-service and gcm core.

            I looked here and here and I still don't get it.

            ...

            ANSWER

            Answered 2021-May-05 at 17:24

            Any credential helper should follow the same process.

            But if you have multiple account/password for the same domain (say github.com for instance), then you need to change your remote URL

            Source https://stackoverflow.com/questions/67405245

            QUESTION

            Run Api Call Exception Unable to load shared library 'libsecret-1.so.0' or one of its dependencies
            Asked 2021-Mar-19 at 13:33

            We are moving a .net core 3.1 application from a Windows Azure App Service to a Linux Azure App Service.

            We have code that does a webapi call to a rest service, using System.Net.Http.HttpClient.

            When this call runs we get the error message:

            WepApiClient, Run Api Call Exception Unable to load shared library 'libsecret-1.so.0' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibsecret-1.so.0: cannot open shared object file: No such file or directory

            ...

            ANSWER

            Answered 2021-Mar-19 at 13:33

            We have now fixed this.

            When we created the Http client, we read some values from Azure Keyvault. The access to Keyvault was not configured correctly, so that called failed.

            After we fixed the connection information and rights to Keyvault it worked.

            Source https://stackoverflow.com/questions/66692463

            QUESTION

            Azure Pipelines agent running in container throwing error on concurrent builds
            Asked 2021-Mar-05 at 17:59

            I have three Azure Pipeline agents built on Ubuntu 18.04 images and deployed to a Kubernetes cluster. Agents are running the latest version, 2.182.1, but this problem also happened using 2.181.0.

            Executing build pipelines individually works just fine. Build completes successfully every time. But whenever a second pipeline starts while another pipeline is already running, it fails - every time - on the "Checkout" job with the following error:

            The working folder U:\azp\agent\_work\1\s is already in use by the workspace ws_1_34;Project Collection Build Service (myaccount) on computer linux-agent-deployment-78bfb76d.

            These are three separate and distinct agents running as separate containers. Why would a job from one container be impacting a job running on a different container? Concurrent builds work all day long on my non-container Windows servers.

            The container agents are deployed as a standard Kubernetes "deployment" object:

            ...

            ANSWER

            Answered 2021-Mar-05 at 17:59

            Solution has been found. Here's how I resolved this for anyone coming across this post:

            I discovered a helm chart for Azure Pipeline agents - emberstack/docker-azure-pipelines-agent - and after poking around in the contents, discovered what was staring me in the face the last couple of days: "StatefulSets"

            Simple, easy to test, and working well so far. I refactored my k8s manifest as a StatefulSet object and the agents are up and able to run builds concurrently. Still more testing to do, but looking very positive at this point.

            Source https://stackoverflow.com/questions/66482598

            QUESTION

            KeeWeb fails: the name org,freedesktop.secrets was not provided by any .service files on nixos
            Asked 2021-Jan-22 at 01:21

            I am trying to get KeeWeb working in Nixos. It is not in the 20.09 channel, and so I tried writing a derivation for it... and failed. Luckily after some more searching I found out someone else had already done it ! Wonderful!

            So I copied the code from : https://github.com/sikmir/nixpkgs/blob/master/pkgs/applications/misc/keeweb/default.nix . And imported it into my home manager setup. It builds fine but when I run it it only opens an error dialog:

            "Error loading app. Error: the name org,freedesktop.secrets was not provided by any .service files"

            A bit of seaerching points me into the direction of gnome-keyring and libsecret. Even a PR that addresses this issue, so you would think its fixed... but alas.

            I changed the src to point to the latest version, but still no luck.

            So probably something I am missing on my setup.

            Can you help me ?

            ...

            ANSWER

            Answered 2021-Jan-22 at 01:21

            Try to enable gnome-keyring daemon in your NixOS configuration:

            Source https://stackoverflow.com/questions/65824612

            QUESTION

            How to install VSCODE on debian 9? Nothing works
            Asked 2019-Jun-02 at 11:00

            I'm trying to install Visual studio code.

            My Raspb. Version is:

            Distributor ID: Raspbian

            Description: Raspbian GNU/Linux 9.8 (stretch)

            Release: 9.8

            Codename: stretch

            I tried several method (starting to download .deb and using dpkg or install command) but nothing worked.

            How can I fix this problem? I really need VSC because my project is growing and Geany messes up.

            Downloaded .deb and .tar files from the official site, followed the setup instruction but I got this error

            With dpkg (both 32 and 64bit):

            ...

            ANSWER

            Answered 2019-Apr-29 at 09:27

            There are Community builds of Visual Studio Code available (for Raspberry Pi and other ARM and Intel systems).

            The packages are currently available in DEB and RPM format. You can use the scripts provided here to install the packages and add their repository to your system or install it manually.

            Below I summarized the steps:

            Open a new terminal. If you need super-user rights (you probably do), then you can enter sudo -s and press return to enter a super-user session. Run the installer for your current distribution:

            APT instructions

            (including Debian, Raspbian, Ubuntu and Linux Mint)

            Source https://stackoverflow.com/questions/55864205

            QUESTION

            Why do I get Error while loading shared libraries
            Asked 2019-Feb-09 at 11:16

            I installed wxWidgets 3.1.2 from source code on my computer with Fedora in /home/... And I am trying to build and run a Hello world example from https://docs.wxwidgets.org/stable/overview_helloworld.html. It compiles without any error by typing

            ...

            ANSWER

            Answered 2019-Feb-09 at 11:16

            Write export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib on the terminal before opening the executable (from the same terminal). To save having to do this each time, add that line to your ~/.bashrc or similar. https://wiki.wxwidgets.org/Compiling_and_getting_started

            Source https://stackoverflow.com/questions/54589780

            QUESTION

            Not able to install Docker compose in Linux
            Asked 2018-Sep-22 at 19:56

            I am not able to install docker compose on my Linux system.getting below error after running installation command:

            ...

            ANSWER

            Answered 2018-Jun-14 at 15:24

            I think the easiest way to install docker-compose is via pip:

            Source https://stackoverflow.com/questions/50860460

            QUESTION

            Specifying package dependencies in electron-installer-snap
            Asked 2018-Jul-27 at 07:45

            I can successfully build a snap package for my electron app using electron-installer-snap, however, my app depends on the keytar module which subsequently depends on libsecret-1-0 being installed.

            I see no way to pass package dependencies to electron-installer-snap (from their API doc at least). Currently, I am using the following to create the snap

            ...

            ANSWER

            Answered 2018-Jul-27 at 07:45

            Passing the following user options seems to do the trick:

            Source https://stackoverflow.com/questions/51539198

            QUESTION

            General "git-credential-libsecret not found" error
            Asked 2018-Apr-15 at 20:18

            The git repo have no LFS enabled, but I was prepared git to use in another clone, so use the git config --global credential.helper that seems the cause of the problem.

            Seems the same problem here, but I am using updated git (v2.17.0), so it is not a version problem.

            Exemple: after simple git pull the message is

            ...

            ANSWER

            Answered 2018-Apr-15 at 20:18

            First, make sure to understand where that setting is coming from

            Source https://stackoverflow.com/questions/49842895

            QUESTION

            How to bake credential into docker image for git?
            Asked 2018-Jan-13 at 09:39

            This is actually a question following from my previous one.

            I am trying to use docker to host a personal note-taking web service and want to backup data generated by the service (my notes). Currently I plan to use git to commit, pull, and push to a repository for my purpose.

            To do git pull and push, my docker image needs to host my credentials. What is the easiest yet safe way to achieve this?

            What I have done so far:

            • I choose Alpine as the base image of the image of my service.
            • Because I only need credentials for git, I think put a git credential helper into the image may solve my problem. I can save credentials to the helper during the build time and use them during runtime.
            • I googled a while and decided to use libsecret as my git credential helper, according to this article.
            • I have installed libsecret and set my git credential helper to be git-credential-libsecret

            However, I cannot make git-credential-libsecret functional so far. Here are a couple of problems that I encountered:

            • Firstly, I tested git-credential-libsecret get and get the following error:

              CRITICAL **: could not connect to Secret Service: Cannot spawn a message bus without a machine-id: Unable to load /var/lib/dbus/machine-id or /etc/machine-id: Failed to open file */var/lib/dbus/machine-id*: No such file or directory

              • I (probably?) solved it by installing dbus and run dbus-uuidgen > /var/lib/dbus/machine-id
            • Then I try to run git-credential-libsecret get again. This time, it reports that:

              CRITICAL **: could not connect to Secret Service: Cannot autolaunch D-Bus without X11 $DISPLAY

              • I tried to install dbus-x11 and run dbus-launch --sh-syntax(from here) but with no luck this time. The error continues.

            In conclusion, I would like to know:

            1. Am I on a right direction (using git credential helper) to achieve my goal?
            2. If so, how can I resolve the X11 problem?
            3. Are there any other quick and clean methods to backup data in docker with version control?
            ...

            ANSWER

            Answered 2018-Jan-13 at 07:37

            It depends on where you are running git-credential-libsecret: you need to have it installed in your image/container, not on the host.

            Note that another option would be to use a volume (see my answer to your previous question), in which case, git could be installed only on the host.

            But here, you would use git directly in your image, which means, as in this Dockerfile, you need to have in your Dockerfile:

            Source https://stackoverflow.com/questions/48237435

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install libsecret

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/ehazlett/libsecret.git

          • CLI

            gh repo clone ehazlett/libsecret

          • sshUrl

            git@github.com:ehazlett/libsecret.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Identity Management Libraries

            vault

            by hashicorp

            k9s

            by derailed

            keepassxc

            by keepassxreboot

            keycloak

            by keycloak

            uuid

            by uuidjs

            Try Top Libraries by ehazlett

            stellar

            by ehazlettGo

            interlock

            by ehazlettGo

            locksmith

            by ehazlettPython

            conduit

            by ehazlettGo