cloud-config-deprecated.md 998 B

Deprecated Cloud-Config Features

Retrieving SSH Authorized Keys

From a GitHub User

Using the coreos-ssh-import-github field, we can import public SSH keys from a GitHub user to use as authorized keys to a server.

#cloud-config

users:
  - name: elroy
    coreos-ssh-import-github: elroy

From an HTTP Endpoint

We can also pull public SSH keys from any HTTP endpoint which matches GitHub's API response format. For example, if you have an installation of GitHub Enterprise, you can provide a complete URL with an authentication token:

#cloud-config

users:
  - name: elroy
    coreos-ssh-import-url: https://github-enterprise.example.com/api/v3/users/elroy/keys?access_token=<TOKEN>

You can also specify any URL whose response matches the JSON format for public keys:

#cloud-config

users:
  - name: elroy
    coreos-ssh-import-url: https://example.com/public-keys