{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/react-native-code-push/issues/185","repository_url":"https://api.github.com/repos/Microsoft/react-native-code-push","labels_url":"https://api.github.com/repos/Microsoft/react-native-code-push/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/react-native-code-push/issues/185/comments","events_url":"https://api.github.com/repos/Microsoft/react-native-code-push/issues/185/events","html_url":"https://github.com/Microsoft/react-native-code-push/issues/185","id":131605241,"number":185,"title":"Feature request: override CodePushDeploymentKey for a deployment","user":{"login":"talkol","id":6762255,"avatar_url":"https://avatars.githubusercontent.com/u/6762255?v=3","gravatar_id":"","url":"https://api.github.com/users/talkol","html_url":"https://github.com/talkol","followers_url":"https://api.github.com/users/talkol/followers","following_url":"https://api.github.com/users/talkol/following{/other_user}","gists_url":"https://api.github.com/users/talkol/gists{/gist_id}","starred_url":"https://api.github.com/users/talkol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talkol/subscriptions","organizations_url":"https://api.github.com/users/talkol/orgs","repos_url":"https://api.github.com/users/talkol/repos","events_url":"https://api.github.com/users/talkol/events{/privacy}","received_events_url":"https://api.github.com/users/talkol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-05T10:18:46Z","updated_at":"2016-02-05T10:18:46Z","closed_at":null,"body":"As far as I understand, when a new deployment is created via the CLI, a new random key is generated.\r\n\r\nIt will be great if we can override the deployment key for a specific deployment manually.\r\n\r\nConsider the following use-case (that actually happened to us):\r\n1. Code-push setup in the project and key pair generated and put into Info.plist\r\n2. App was uploaded to the app store\r\n3. Since a new code-push update was accidentally pushed into this deployment *before* Apple review, the deployment was deleted to avoid having the reviewer receive an update when launching\r\n4. The app passed review and went live\r\n5. Due to some code changes, we wanted to publish a new code-push update\r\n6. The deployment was re-created but a new key was generated which is different from the key in the live app rendering this app un-updatable\r\n\r\nTLDR: There are some cases where users will have live apps locked to specific deployment keys. For various reasons, these deployments could be lost in the code-push server and need to be able to be reconstructed without changing the key."}}