libgit2 / libgit2/rugged

add SshInteractive credential

Open
#693 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
2.3k
Forks
293
PR merge metrics
No merged PRs in 30d

Description

In reference to https://libgit2.github.com/libgit2/#HEAD/group/cred/git_cred_ssh_interactive_new

It would be great to have this implemented so I can fetch the passphrase for an ssh key and allow libgit2 to ask for the passphrase.

Note: this does not include a default prompt_callback. Which I think would be great to add since many people will probably struggle with this.

I would make a PR but I have no idea how to call the associated libgit methods.

module Rugged
  module Credentials
    class SshInteractive
      def initialize(username, prompt_callback)
        @username = username
        @prompt_callback = prompt_callback
      end

      def call(url, username_from_url, allowed_types)
        self
      end
    end
  end
end

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the referenced libgit2 git_cred_ssh_interactive_new API and the Rugged::Credentials::SshInteractive entry point shown in the issue. Compare the surrounding credential implementations, then verify that fetching can obtain an SSH passphrase through the supplied prompt_callback and that the credential is accepted by libgit2.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, ruby
Domain
authentication
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.