libsecret | Secret management abstraction library | Identity Management library
kandi X-RAY | libsecret Summary
kandi X-RAY | libsecret Summary
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
Top functions reviewed by kandi - BETA
- 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 .
libsecret Key Features
libsecret Examples and Code Snippets
Community Discussions
Trending Discussions on libsecret
QUESTION
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.
Install
libsecret
usingsudo apt-get install libsecret-1-0 libsecret-1-dev
Build the "credential manager" using
sudo make --directory=/usr/share/doc/git/contrib/credential/libsecret
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.
Download .deb package
sudo dpkg -i git-credential-manager-core configure
configure the "credential store"
git config credential.credentialStore secretservice
(as I use libsecret).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
.
ANSWER
Answered 2021-May-05 at 17:24Any 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
QUESTION
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:33We 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.
QUESTION
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:59Solution 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.
QUESTION
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:21Try to enable gnome-keyring daemon in your NixOS configuration:
QUESTION
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:27There 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
APT instructionssudo -s
and press return to enter a super-user session. Run the installer for your current distribution:(including Debian, Raspbian, Ubuntu and Linux Mint)
QUESTION
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:16Write 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
QUESTION
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:24I think the easiest way to install docker-compose is via pip:
QUESTION
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:45Passing the following user options seems to do the trick:
QUESTION
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:18First, make sure to understand where that setting is coming from
QUESTION
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 begit-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 rundbus-uuidgen > /var/lib/dbus/machine-id
- I (probably?) solved it by installing
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 rundbus-launch --sh-syntax
(from here) but with no luck this time. The error continues.
- I tried to install
In conclusion, I would like to know:
- Am I on a right direction (using git credential helper) to achieve my goal?
- If so, how can I resolve the X11 problem?
- Are there any other quick and clean methods to backup data in docker with version control?
ANSWER
Answered 2018-Jan-13 at 07:37It 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:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install libsecret
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page