{"action":"created","issue":{"url":"https://api.github.com/repos/playframework/playframework/issues/5131","labels_url":"https://api.github.com/repos/playframework/playframework/issues/5131/labels{/name}","comments_url":"https://api.github.com/repos/playframework/playframework/issues/5131/comments","events_url":"https://api.github.com/repos/playframework/playframework/issues/5131/events","html_url":"https://github.com/playframework/playframework/issues/5131","id":108816281,"number":5131,"title":"playUpdateSecret command only replaces the secret if the key is represented as a path","user":{"login":"kpmeen","id":3736963,"avatar_url":"https://avatars.githubusercontent.com/u/3736963?v=3","gravatar_id":"","url":"https://api.github.com/users/kpmeen","html_url":"https://github.com/kpmeen","followers_url":"https://api.github.com/users/kpmeen/followers","following_url":"https://api.github.com/users/kpmeen/following{/other_user}","gists_url":"https://api.github.com/users/kpmeen/gists{/gist_id}","starred_url":"https://api.github.com/users/kpmeen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpmeen/subscriptions","organizations_url":"https://api.github.com/users/kpmeen/orgs","repos_url":"https://api.github.com/users/kpmeen/repos","events_url":"https://api.github.com/users/kpmeen/events{/privacy}","received_events_url":"https://api.github.com/users/kpmeen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/playframework/playframework/labels/community","name":"community","color":"006b75"},{"url":"https://api.github.com/repos/playframework/playframework/labels/defect","name":"defect","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-29T08:13:05Z","updated_at":"2015-10-05T01:58:07Z","closed_at":null,"body":"Configurations like this:\r\n\r\n```\r\nplay {\r\n  crypto.secret = \"changeme\"\r\n}\r\n```\r\nor this:\r\n```\r\nplay {\r\n  crypto {\r\n    secret = \"changeme\"\r\n  }\r\n}\r\n```\r\n\r\nend up with the \"updated\" key on top of the file\r\n```\r\nplay.crypto.secret = \"some generated secret\"\r\nplay {\r\n  crypto.secret = \"changeme\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/playframework/playframework/issues/comments/145410265","html_url":"https://github.com/playframework/playframework/issues/5131#issuecomment-145410265","issue_url":"https://api.github.com/repos/playframework/playframework/issues/5131","id":145410265,"user":{"login":"gmethvin","id":171663,"avatar_url":"https://avatars.githubusercontent.com/u/171663?v=3","gravatar_id":"","url":"https://api.github.com/users/gmethvin","html_url":"https://github.com/gmethvin","followers_url":"https://api.github.com/users/gmethvin/followers","following_url":"https://api.github.com/users/gmethvin/following{/other_user}","gists_url":"https://api.github.com/users/gmethvin/gists{/gist_id}","starred_url":"https://api.github.com/users/gmethvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmethvin/subscriptions","organizations_url":"https://api.github.com/users/gmethvin/orgs","repos_url":"https://api.github.com/users/gmethvin/repos","events_url":"https://api.github.com/users/gmethvin/events{/privacy}","received_events_url":"https://api.github.com/users/gmethvin/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T01:58:07Z","updated_at":"2015-10-05T01:58:07Z","body":"To be more specific, first you actually want to remove `application.secret` if it exists, then replace or add `play.crypto.secret`."}}