{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/coreos-baremetal/issues/202","repository_url":"https://api.github.com/repos/coreos/coreos-baremetal","labels_url":"https://api.github.com/repos/coreos/coreos-baremetal/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/coreos/coreos-baremetal/issues/202/comments","events_url":"https://api.github.com/repos/coreos/coreos-baremetal/issues/202/events","html_url":"https://github.com/coreos/coreos-baremetal/issues/202","id":154757768,"number":202,"title":"/metadata endpoint should properly quote variables for shell env","user":{"login":"rothgar","id":371796,"avatar_url":"https://avatars.githubusercontent.com/u/371796?v=3","gravatar_id":"","url":"https://api.github.com/users/rothgar","html_url":"https://github.com/rothgar","followers_url":"https://api.github.com/users/rothgar/followers","following_url":"https://api.github.com/users/rothgar/following{/other_user}","gists_url":"https://api.github.com/users/rothgar/gists{/gist_id}","starred_url":"https://api.github.com/users/rothgar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rothgar/subscriptions","organizations_url":"https://api.github.com/users/rothgar/orgs","repos_url":"https://api.github.com/users/rothgar/repos","events_url":"https://api.github.com/users/rothgar/events{/privacy}","received_events_url":"https://api.github.com/users/rothgar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-05-13T17:02:33Z","updated_at":"2016-08-04T18:30:44Z","closed_at":null,"body":"If I download the metadata file for a host from bootcfg I get the key values as expected but some values are not formatted properly for injection into the shell.\r\n\r\ne.g.\r\n```SSH_AUTHORIZED_KEYS=[ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpGinBIqbhSm0...]```\r\n\r\nIs not properly sourced and cannot be used in the shell. It also will echo everything after the space and throw an error `: No such file or directory`\r\n\r\nI'm not sure how these are expected to be used but I use them in my systemd unit files for environment variables. With that I would expect them to be quoted and formatted to be used as an array.\r\n\r\ne.g.\r\n```\r\nSSH_AUTHORIZED_KEYS=(\"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpGinBIqbhSm0...\", \\\r\n    \"ssh-rsa SOMEOTHERKEY...\")\r\n```\r\nAny further parsing of the variables can be done with awk with something like `echo $SSH_AUTHORIZED_KEYS[0] | awk '{print $2}'`"},"comment":{"url":"https://api.github.com/repos/coreos/coreos-baremetal/issues/comments/237641827","html_url":"https://github.com/coreos/coreos-baremetal/issues/202#issuecomment-237641827","issue_url":"https://api.github.com/repos/coreos/coreos-baremetal/issues/202","id":237641827,"user":{"login":"urzds","id":15085501,"avatar_url":"https://avatars.githubusercontent.com/u/15085501?v=3","gravatar_id":"","url":"https://api.github.com/users/urzds","html_url":"https://github.com/urzds","followers_url":"https://api.github.com/users/urzds/followers","following_url":"https://api.github.com/users/urzds/following{/other_user}","gists_url":"https://api.github.com/users/urzds/gists{/gist_id}","starred_url":"https://api.github.com/users/urzds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urzds/subscriptions","organizations_url":"https://api.github.com/users/urzds/orgs","repos_url":"https://api.github.com/users/urzds/repos","events_url":"https://api.github.com/users/urzds/events{/privacy}","received_events_url":"https://api.github.com/users/urzds/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T18:30:43Z","updated_at":"2016-08-04T18:30:43Z","body":"Duplicate of #84 and #85?"}}
{"actor":{"display_login":"urzds"}}