Giter Site home page Giter Site logo

git-ssh-sign's People

Contributors

amigus avatar craiglurey avatar dependabot[bot] avatar endlesstrax avatar idimov-keeper avatar imartinkeeper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

the-migus-group

git-ssh-sign's Issues

[Question] How did you build this?

Hi ๐Ÿ‘‹

For educational purpose, I'd like to know if you still had documentation about how git interacts with ssh-keygen to sign commits, unless you reverse-engineered the way git was doing it?

I can't seem to find any documentation about the steps git follows to sign commits with an SSH key, and I am really curious about how you knew what to build ๐Ÿ˜Š

Make Public Key Optional in Keeper Record

Feature / Enhancement proposed

Currently a successful signing of the git commit can only occur if both the private and public keys are available in the Keeper Record. As the public key can always be derived from the private key, then if no public key is explicitly set in the Keeper record, then one will be automatically derived from private key.

Workarounds

Can you achieve the same result doing it in an alternative way? Nope

Has the feature been requested before?

No.

If the feature request is approved, would you be willing to submit a PR?

(Help can be provided if you need assistance submitting a PR)

[x] Yes [] No

Add the ability to verify locally

If using the default ssh-keygen for signing commits, you can use it to verify commits locally with commands like:

git log --show-signature -1

As this project is a direct replacement for ssh-keygen with the benefit of using a key stored in the Keeper Vault, it should also verify commits locally.

Panic Error when binary ran by a user has no context.

When the user calls the binary directly, a panic error is shown.

panic: runtime error: index out of range [-1]

goroutine 1 [running]:
main.main()
	/home/runner/work/git-ssh-sign/git-ssh-sign/cmd/ssh-sign/main.go:37 +0x2ac

This should be more elegant and feedback to the user this is a binary intended to be ran by git itself, not the user.

Update command line parsing & Error handling

Command line inputs should be appropriately parsed, and error handling should be added. It should return a non-zero exit status if:

  • the namespace is not git
  • the action (-Y) is not to sign

This is required before adding additional features such as supporting verification.

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.