Giter Club home page Giter Club logo

gfh's Introduction

THE DEVELOPER IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE PARENTS OR
GUARDIANS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE DEVELOPER OR THE USE OR OTHER DEALINGS IN THE DEVELOPER.

gfh's People

Contributors

ovyerus avatar wale avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gfh's Issues

Rename `gfh-keygen`

The current name for the binary that gets inserted into gpg.ssh.program as a shim to transform the output from gfh is a bit awkward, and I kinda regret naming it as such originally. I think something like gfh-ssh-shim is probably a better name for it.

`git log --show-signature` shows error when using GFH

When you have a gpg.ssh.allowedSignersFile set in Git and you try to run git log --show-signature, instead of being able to see the validated signatures above each commit, you instead get an error along the lines of this, highlighted in red:

Unable to open allowed keys file "<contents of gpg.ssh.allowedSignersKey has been snipped for the issue>": No such file or directory^M
sig_find_principals: sshsig_find_principal: No such file or directory^M
No principal matched.
thread 'main' panicked at 'git did not provide -f somehow', src/bin/gfh-keygen.rs:16:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

It appears that Git calls gpg.ssh.program when using this flag, and since GFH has not been set up to properly handle this scenario it causes this problem. gfh-keygen should handle this situation gracefully, and pass options off to ssh-keygen as normal.

`gfh -a` or `gfh` does not find connected FIDO keys

I compiled version 0.0.4 with cargo on my linux system (openSUSE Aeon/Fedora 40) and configured my ~/.config/gfh/keys file correctly (I think):

cat ~/.config/gfh/keys
serial::~/.ssh/id_ed25519_sk_rk_yk-5c
serial::~/.ssh/id_ed25519_sk_rk_yk-5n

When executing gfh, I get:

Error: no matching FIDO key found in the config at /home/$USER/.config/gfh/keys

Stack backtrace:
   0: gfh::main
   1: std::sys_common::backtrace::__rust_begin_short_backtrace
   2: std::rt::lang_start::{{closure}}
   3: std::rt::lang_start_internal
   4: main
   5: __libc_start_call_main
   6: __libc_start_main_impl
   7: _start

gfh -a gives me:

Error: was not able to find any connected FIDO keys

Stack backtrace:
   0: anyhow::error::<impl anyhow::Error>::msg
   1: gfh::add_key::run
   2: gfh::main
   3: std::sys_common::backtrace::__rust_begin_short_backtrace
   4: std::rt::lang_start::{{closure}}
   5: std::rt::lang_start_internal
   6: main
   7: __libc_start_call_main
   8: __libc_start_main_impl
   9: _start

At first, I had some issues because of missing pcscd (pcsc-lite on rpm distros). I fixed them and got to this. ssh works fine with both of my keys, which is why I believe the error to be in gfh.

Is this description sufficient or should I check some more things on my system?

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.