Support for importing public SSH keys from GitHub
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 974
- Forks
- 296
- Avg merge
- 6d 14h
- Merged PRs (30d)
- 9
Description
Feature Request
I hope Ignition can support the import of public SSH keys from GitHub (or other trusted online identities).
To do that, we just need to call this opening API Endpoint:
$ curl -L https://api.github.com/users/mogeko/keys
[
{
"id": 64006488,
"key": "ssh-rsa ..."
}
]
Desired Feature
We can allow passwd.sshAuthorizedKeys to accept an identity Object:
{
"passwd": {
"users": {
"name": "mogeko",
"sshAuthorizedKeys": [
{ "server": "github", "user": "mogeko" },
"other ssh keys..."
]
}
}
}
Or an identity String:
{
"passwd": {
"users": {
"name": "mogeko",
"sshAuthorizedKeys": [
"gh:mogeko",
"other ssh keys..."
]
}
}
}
Other Information
Here is a software with similar functions as a reference: ssh-import-id.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the passwd.sshAuthorizedKeys handling and review the GitHub REST endpoint for listing a user's public keys. Use the object and string examples to define the accepted identity forms; the work is done when the configured identity resolves to imported public keys alongside existing SSH keys.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github, go
- Domain
- authentication, backend, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100