No project description provided
Project description
git-credential-netconf
Git credentials management made easy.
Installation
Use pip
or pip3
to install git-credential-netconf
pip install git-credential-netconf
or
pip3 install git-credential-netconf
Introduction
Credential management in Git should not be difficult to use or configure, but (unfortunately) looking at the existing tools, it is difficult to even think about it, let alone configure them without errors.
NOT. ANY. MORE!
Presenting git-credential-netconf
, an easy yet powerful way to manage your
Git credentials by harnessing the power of GnuPG!
Usage Overview
The following guide assumes you have a GPG key and you have installed git-credential-netconf
.
-
Create a
.netconf
file in your home directory.touch ~/.netconf
-
Start by filling in your username and password:
[conf] login = yourname password = very-secret-password
The
.netconf
file uses configuration file format. -
Encrypt your
.netconf
file withgpg
gpg --recipient yourname@example.com --output ~/.netconf.gpg --encrypt \ --sign ~/.netconf
-
And remove your original
.netconf
for security:shred -u ~/.netconf
-
-
Tell Git to use it
⚠️ Make sure that
~/.local/bin
is in$PATH
git config --global credential.helper 'netconf --debug'
-
Now use git without hassle!
git push
This will prompt
git-credential-netconf
to decrypt the~/.netconf
file usingGPG
and fetch theusername
andpassword
, among other values.You'll be asked for the password to
GPG
private key when decrypting.
Usage Details
usage: git-credential-netconf [-h] [-g GPG] [-d] [-f FILE] [-q]
{get,store,erase} ...
Easy credential management using GPG.
positional arguments:
{get,store,erase} The credential operation to use.
optional arguments:
-h, --help show this help message and exit
-g GPG, --gpg GPG The `gpg` program to use.
-d, --debug Show output of `gpg` (it prints into `stderr`).
-f FILE, --file FILE The `.netconf.gpg` file to use.
-q, --quit-on-failure
Do not let Git consult any more helpers if an error is
encountered while decryption.
git-credential-netconf is licensed under MIT license. Visit
<https://github.com/arunanshub/git-credential-netconf> for more info.
About .netconf
file
.netconf
can be used as a direct replacement for .netrc
file, with the
advantage of being more convenient to use.
The section name
You can use any name for the section name, but using conf
is the convention.
The keys
This table shows the equivalent values for .netconf
, .netrc
and
git-credential
keys:
.netconf |
.netrc like |
git-credential |
---|---|---|
login , user , username |
login |
username |
machine , host |
machine |
host |
path |
path |
|
password |
password |
password |
port 1, protocol |
protocol |
1: If port
is an integer, it is used as a host:port
format.
Why another tool?
- All other tools are very hard to configure properly.
- Using
Perl
is as clear as mud. - Python is easy to use, maintain and is very portable.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file git-credential-netconf-1.0.3.tar.gz
.
File metadata
- Download URL: git-credential-netconf-1.0.3.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74063d63d526f8706883b7b1610e4747c591020af4f4021f7e87d7e7962be1d4 |
|
MD5 | b7c5e28e81cb7f03ab9a44adb3abe674 |
|
BLAKE2b-256 | e7aa72d2df44963193dc4d02797fd466970a7b4a65aa7f80b7b6bbd5469f437d |
File details
Details for the file git_credential_netconf-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: git_credential_netconf-1.0.3-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 717b6964ca83a1a3316124c175ef07838be2432c194e797d746574c4db607865 |
|
MD5 | ced729602195f8725ea6312a45b85930 |
|
BLAKE2b-256 | 1fc30a39ee7745a9bf3d9788713d2076f49304cd501fc17711510e7055ced434 |