Skip to content

config for custom providers #5

Description

@steverweber

it's sad to see the hard coded paths for two providers and lack of custom providers setup in config /etc/ssh/ssh_import_id.

I would have expected... something like the following for the config file. Keep in mind you should almost never hardcore url's in source code files.

{
     "_comment_": "default provider URL",
     "URL": "https://myprovider.yahoo/%s/sshkeys",
     "provider": {
          "lp": "https://launchpad.net/~%s/+sshkeys",
          "gh": "https://api.github.com/users/%s/keys",
          "myprovider": "https://myprovider.com/%s/sshkeys"
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions