{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/beats/issues/4914","repository_url":"https://api.github.com/repos/elastic/beats","labels_url":"https://api.github.com/repos/elastic/beats/issues/4914/labels{/name}","comments_url":"https://api.github.com/repos/elastic/beats/issues/4914/comments","events_url":"https://api.github.com/repos/elastic/beats/issues/4914/events","html_url":"https://github.com/elastic/beats/issues/4914","id":250611415,"number":4914,"title":"Add support for PKI auth in Kubernetes module","user":{"login":"trondhindenes","id":1747120,"avatar_url":"https://avatars0.githubusercontent.com/u/1747120?v=4","gravatar_id":"","url":"https://api.github.com/users/trondhindenes","html_url":"https://github.com/trondhindenes","followers_url":"https://api.github.com/users/trondhindenes/followers","following_url":"https://api.github.com/users/trondhindenes/following{/other_user}","gists_url":"https://api.github.com/users/trondhindenes/gists{/gist_id}","starred_url":"https://api.github.com/users/trondhindenes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trondhindenes/subscriptions","organizations_url":"https://api.github.com/users/trondhindenes/orgs","repos_url":"https://api.github.com/users/trondhindenes/repos","events_url":"https://api.github.com/users/trondhindenes/events{/privacy}","received_events_url":"https://api.github.com/users/trondhindenes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-16T12:36:10Z","updated_at":"2017-08-16T12:36:10Z","closed_at":null,"body":"Kubernetes pods can interact with the kubernetes api given that they're authenticated. The (imho) best way to set up this, is to create a ServiceAccount, which will then inject a client cert into the pod, at the path \"/var/run/secrets/kubernetes.io/serviceaccount/ca.crt\". A pod can then issue requests against the kubernetes api simply using a request like:\r\ncurl -v --cacert /var/run/secrets/kubernetes.io/serviceaccount/ca.crt -H \"Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)\" https://kubernetes/\r\n\r\nIt would be great if the Kubernetes module in Metricbeats supported this, as it would allow us to set up completely self-contained systems without having to rely on kubectl-proxy sidecar containers."}}
{"actor":{"display_login":"trondhindenes"}}