{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/59775","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/59775/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/59775/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/59775/events","html_url":"https://github.com/kubernetes/kubernetes/issues/59775","id":296555684,"number":59775,"title":"Consider removing UID mutation from request.context","user":{"login":"enj","id":7001223,"avatar_url":"https://avatars0.githubusercontent.com/u/7001223?v=4","gravatar_id":"","url":"https://api.github.com/users/enj","html_url":"https://github.com/enj","followers_url":"https://api.github.com/users/enj/followers","following_url":"https://api.github.com/users/enj/following{/other_user}","gists_url":"https://api.github.com/users/enj/gists{/gist_id}","starred_url":"https://api.github.com/users/enj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enj/subscriptions","organizations_url":"https://api.github.com/users/enj/orgs","repos_url":"https://api.github.com/users/enj/repos","events_url":"https://api.github.com/users/enj/events{/privacy}","received_events_url":"https://api.github.com/users/enj/received_events","type":"User","site_admin":false},"labels":[{"id":778118404,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/lifecycle/stale","name":"lifecycle/stale","color":"795548","default":false},{"id":173493835,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/api-machinery","name":"sig/api-machinery","color":"d2b48c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-12T23:01:14Z","updated_at":"2018-05-17T03:25:20Z","closed_at":null,"author_association":"MEMBER","body":"Injecting a UID into the context of a request via `WithUID` will cause it to override the UID of an object (nothing does this currently):\r\n\r\nhttps://github.com/kubernetes/kubernetes/blob/d4eaf0b6801900d2b2f80036e267a1d3d86fd3a8/staging/src/k8s.io/apiserver/pkg/registry/rest/meta.go#L28-L30\r\n\r\nIt is unclear when this would be useful or safe.  There is also concern in regards to `MutatingWebhooks` that set a UID on the object (`FillObjectMetaSystemFields` prevents this from being an issue):\r\n\r\nhttps://groups.google.com/d/msg/kubernetes-sig-architecture/mVGobfD4TpY/vIJXeQTMAQAJ\r\n\r\nPerhaps we should remove `WithUID`?\r\n\r\n@kubernetes/sig-api-machinery-misc "},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/389732917","html_url":"https://github.com/kubernetes/kubernetes/issues/59775#issuecomment-389732917","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/59775","id":389732917,"user":{"login":"hzxuzhonghu","id":13374016,"avatar_url":"https://avatars3.githubusercontent.com/u/13374016?v=4","gravatar_id":"","url":"https://api.github.com/users/hzxuzhonghu","html_url":"https://github.com/hzxuzhonghu","followers_url":"https://api.github.com/users/hzxuzhonghu/followers","following_url":"https://api.github.com/users/hzxuzhonghu/following{/other_user}","gists_url":"https://api.github.com/users/hzxuzhonghu/gists{/gist_id}","starred_url":"https://api.github.com/users/hzxuzhonghu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzxuzhonghu/subscriptions","organizations_url":"https://api.github.com/users/hzxuzhonghu/orgs","repos_url":"https://api.github.com/users/hzxuzhonghu/repos","events_url":"https://api.github.com/users/hzxuzhonghu/events{/privacy}","received_events_url":"https://api.github.com/users/hzxuzhonghu/received_events","type":"User","site_admin":false},"created_at":"2018-05-17T03:25:20Z","updated_at":"2018-05-17T03:25:20Z","author_association":"MEMBER","body":"/assign"}}
{"actor":{"display_login":"hzxuzhonghu"}}