{"action":"opened","issue":{"url":"https://api.github.com/repos/fabric8io/elasticsearch-cloud-kubernetes/issues/23","labels_url":"https://api.github.com/repos/fabric8io/elasticsearch-cloud-kubernetes/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/fabric8io/elasticsearch-cloud-kubernetes/issues/23/comments","events_url":"https://api.github.com/repos/fabric8io/elasticsearch-cloud-kubernetes/issues/23/events","html_url":"https://github.com/fabric8io/elasticsearch-cloud-kubernetes/issues/23","id":122340246,"number":23,"title":"ES 2.1 plugin has permission issues to %user.home%/elasticsearch/.kube/config","user":{"login":"yoganil","id":4611255,"avatar_url":"https://avatars.githubusercontent.com/u/4611255?v=3","gravatar_id":"","url":"https://api.github.com/users/yoganil","html_url":"https://github.com/yoganil","followers_url":"https://api.github.com/users/yoganil/followers","following_url":"https://api.github.com/users/yoganil/following{/other_user}","gists_url":"https://api.github.com/users/yoganil/gists{/gist_id}","starred_url":"https://api.github.com/users/yoganil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoganil/subscriptions","organizations_url":"https://api.github.com/users/yoganil/orgs","repos_url":"https://api.github.com/users/yoganil/repos","events_url":"https://api.github.com/users/yoganil/events{/privacy}","received_events_url":"https://api.github.com/users/yoganil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-15T18:57:01Z","updated_at":"2015-12-15T18:57:01Z","closed_at":null,"body":"I have been trying to use the plugin for ES 2.1.0 but when I start the container, I get the error below:\r\n[2015-12-15 00:30:28,049][WARN ][io.fabric8.elasticsearch.discovery.kubernetes.KubernetesUnicastHostsProvider] [Freakmaster] Exception caught during discovery: access denied (\"java.io.FilePermission\" \"/home/elasticsearch/.kube/config\" \"read\")\r\n\r\njava.security.AccessControlException: access denied (\"java.io.FilePermission\" \"/home/elasticsearch/.kube/config\" \"read\")\r\nat java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)\r\nat java.security.AccessController.checkPermission(AccessController.java:884)\r\nat java.lang.SecurityManager.checkPermission(SecurityManager.java:549)\r\nat java.lang.SecurityManager.checkRead(SecurityManager.java:888)\r\nat sun.nio.fs.UnixPath.checkRead(UnixPath.java:795)\r\n\r\nWhat I understood is that the plugin is using user's home directory for storing kube config. What I don't understand is that even when I run as the same user, it fails. Permission denied. \r\nI tried on my mac as well as a docker image. All the same. It has no effect when I reset my $HOME to my installation folder. It always points to %USER.HOME% and permission gets denied."}}