Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for importing public SSH keys from GitHub #1718

Open
mogeko opened this issue Oct 1, 2023 · 0 comments
Open

Support for importing public SSH keys from GitHub #1718

mogeko opened this issue Oct 1, 2023 · 0 comments

Comments

@mogeko
Copy link

mogeko commented Oct 1, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant