{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/43203","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/43203/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/43203/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/43203/events","html_url":"https://github.com/kubernetes/kubernetes/issues/43203","id":214633648,"number":43203,"title":"empty array fields change to null when storing as protobuf","user":{"login":"cduchesne","id":7872650,"avatar_url":"https://avatars2.githubusercontent.com/u/7872650?v=3","gravatar_id":"","url":"https://api.github.com/users/cduchesne","html_url":"https://github.com/cduchesne","followers_url":"https://api.github.com/users/cduchesne/followers","following_url":"https://api.github.com/users/cduchesne/following{/other_user}","gists_url":"https://api.github.com/users/cduchesne/gists{/gist_id}","starred_url":"https://api.github.com/users/cduchesne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cduchesne/subscriptions","organizations_url":"https://api.github.com/users/cduchesne/orgs","repos_url":"https://api.github.com/users/cduchesne/repos","events_url":"https://api.github.com/users/cduchesne/events{/privacy}","received_events_url":"https://api.github.com/users/cduchesne/received_events","type":"User","site_admin":false},"labels":[{"id":435667038,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/release-blocker","name":"release-blocker","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/kubernetes/kubernetes/milestones/31","html_url":"https://github.com/kubernetes/kubernetes/milestone/31","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/milestones/31/labels","id":2130587,"number":31,"title":"v1.6","description":"","creator":{"login":"saad-ali","id":10052848,"avatar_url":"https://avatars2.githubusercontent.com/u/10052848?v=3","gravatar_id":"","url":"https://api.github.com/users/saad-ali","html_url":"https://github.com/saad-ali","followers_url":"https://api.github.com/users/saad-ali/followers","following_url":"https://api.github.com/users/saad-ali/following{/other_user}","gists_url":"https://api.github.com/users/saad-ali/gists{/gist_id}","starred_url":"https://api.github.com/users/saad-ali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saad-ali/subscriptions","organizations_url":"https://api.github.com/users/saad-ali/orgs","repos_url":"https://api.github.com/users/saad-ali/repos","events_url":"https://api.github.com/users/saad-ali/events{/privacy}","received_events_url":"https://api.github.com/users/saad-ali/received_events","type":"User","site_admin":false},"open_issues":66,"closed_issues":1246,"state":"open","created_at":"2016-11-12T00:35:38Z","updated_at":"2017-03-17T00:23:26Z","due_on":"2017-03-22T07:00:00Z","closed_at":null},"comments":25,"created_at":"2017-03-16T08:48:40Z","updated_at":"2017-03-17T00:23:35Z","closed_at":null,"body":"**Is this a request for help?** (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.): No\r\n\r\n\r\n**What keywords did you search in Kubernetes issues before filing this one?** (If you have found any duplicates, you should instead reply there.): subsets null\r\n\r\n---\r\n\r\n**Is this a BUG REPORT or FEATURE REQUEST?** (choose one): Bug Report\r\n\r\n<!--\r\nIf this is a BUG REPORT, please:\r\n  - Fill in as much of the template below as you can.  If you leave out\r\n    information, we can't help you as well.\r\n\r\nIf this is a FEATURE REQUEST, please:\r\n  - Describe *in detail* the feature/behavior/change you'd like to see.\r\n\r\nIn both cases, be ready for followup questions, and please respond in a timely\r\nmanner.  If we can't reproduce a bug or think a feature already exists, we\r\nmight close your issue.  If we're wrong, PLEASE feel free to reopen it and\r\nexplain why.\r\n-->\r\n\r\n**Kubernetes version** (use `kubectl version`): 1.6.0 beta3\r\n\r\n\r\n**Environment**:\r\n- **Cloud provider or hardware configuration**: local environment\r\n- **OS** (e.g. from /etc/os-release): CentOS 7.3\r\n- **Kernel** (e.g. `uname -a`): 3.10.0-514.6.1.el7.x86_64\r\n- **Install tools**: manual\r\n- **Others**:\r\n\r\n\r\n**What happened**: Starting with Kubernetes 1.6.0 the /api/v1/endpoints endpoint returns subsets as a null value instead of an empty list when there are no values to show.\r\nexample from 1.6\r\n```\r\n{\r\n      \"metadata\": {\r\n        \"name\": \"kube-controller-manager\",\r\n        \"namespace\": \"kube-system\",\r\n        \"selfLink\": \"/api/v1/namespaces/kube-system/endpoints/kube-controller-manager\",\r\n        \"uid\": \"0fa97080-06b3-11e7-86c2-0237b2d87d14\",\r\n        \"resourceVersion\": \"536232\",\r\n        \"creationTimestamp\": \"2017-03-11T23:32:58Z\",\r\n        \"annotations\": {\r\n          \"control-plane.alpha.kubernetes.io/leader\": \"{\\\"holderIdentity\\\":\\\"k8s\\\",\\\"leaseDurationSeconds\\\":15,\\\"acquireTime\\\":\\\"2017-03-11T23:32:58Z\\\",\\\"renewTime\\\":\\\"2017-03-16T03:48:58Z\\\",\\\"leaderTransitions\\\":0}\"\r\n        }\r\n      },\r\n      \"subsets\": null\r\n},\r\n```\r\n\r\n**What you expected to happen**: In Kubernetes before 1.6, response would show like below:\r\n```\r\n{\r\n    \"metadata\": {\r\n        \"name\": \"kube-controller-manager\",\r\n        \"namespace\": \"kube-system\",\r\n        \"selfLink\": \"/api/v1/namespaces/kube-system/endpoints/kube-controller-manager\",\r\n        \"uid\": \"39d5f51a-05fb-11e7-be44-0237b2d87d14\",\r\n        \"resourceVersion\": \"75186\",\r\n        \"creationTimestamp\": \"2017-03-11T01:37:02Z\",\r\n        \"annotations\": {\r\n            \"control-plane.alpha.kubernetes.io/leader\": \"{\\\"holderIdentity\\\":\\\"k8s\\\",\\\"leaseDurationSeconds\\\":15,\\\"acquireTime\\\":\\\"2017-03-11T01:37:02Z\\\",\\\"renewTime\\\":\\\"2017-03-11T16:26:04Z\\\",\\\"leaderTransitions\\\":0}\"\r\n        }\r\n        },\r\n        \"subsets\": []\r\n}\r\n```\r\n\r\n\r\n**How to reproduce it** (as minimally and precisely as possible):\r\nSimply hit api endpoint @ http://kube-apiserver:8080/api/v1/endpoints\r\n\r\n**Anything else we need to know**:\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/287232063","html_url":"https://github.com/kubernetes/kubernetes/issues/43203#issuecomment-287232063","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/43203","id":287232063,"user":{"login":"eparis","id":8093535,"avatar_url":"https://avatars0.githubusercontent.com/u/8093535?v=3","gravatar_id":"","url":"https://api.github.com/users/eparis","html_url":"https://github.com/eparis","followers_url":"https://api.github.com/users/eparis/followers","following_url":"https://api.github.com/users/eparis/following{/other_user}","gists_url":"https://api.github.com/users/eparis/gists{/gist_id}","starred_url":"https://api.github.com/users/eparis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eparis/subscriptions","organizations_url":"https://api.github.com/users/eparis/orgs","repos_url":"https://api.github.com/users/eparis/repos","events_url":"https://api.github.com/users/eparis/events{/privacy}","received_events_url":"https://api.github.com/users/eparis/received_events","type":"User","site_admin":false},"created_at":"2017-03-17T00:23:35Z","updated_at":"2017-03-17T00:23:35Z","body":"Assuming I'm Coke and want to attack Pepsi, could i somehow use this to prove what node coke's app is on? And then use that information to better attack them? It's just an information leak, but some people don't want proof that others exist..."}}
{"actor":{"display_login":"eparis"}}