{"action":"created","issue":{"url":"https://api.github.com/repos/phusion/passenger/issues/1392","labels_url":"https://api.github.com/repos/phusion/passenger/issues/1392/labels{/name}","comments_url":"https://api.github.com/repos/phusion/passenger/issues/1392/comments","events_url":"https://api.github.com/repos/phusion/passenger/issues/1392/events","html_url":"https://github.com/phusion/passenger/issues/1392","id":59261327,"number":1392,"title":"`passenger-config restart-app` should work if the user who invoked it is the same as the app's user","user":{"login":"FooBarWidget","id":819,"avatar_url":"https://avatars.githubusercontent.com/u/819?v=3","gravatar_id":"","url":"https://api.github.com/users/FooBarWidget","html_url":"https://github.com/FooBarWidget","followers_url":"https://api.github.com/users/FooBarWidget/followers","following_url":"https://api.github.com/users/FooBarWidget/following{/other_user}","gists_url":"https://api.github.com/users/FooBarWidget/gists{/gist_id}","starred_url":"https://api.github.com/users/FooBarWidget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FooBarWidget/subscriptions","organizations_url":"https://api.github.com/users/FooBarWidget/orgs","repos_url":"https://api.github.com/users/FooBarWidget/repos","events_url":"https://api.github.com/users/FooBarWidget/events{/privacy}","received_events_url":"https://api.github.com/users/FooBarWidget/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phusion/passenger/labels/Bounty/Medium","name":"Bounty/Medium","color":"d4c5f9"},{"url":"https://api.github.com/repos/phusion/passenger/labels/Enhancement","name":"Enhancement","color":"c7def8"}],"state":"closed","locked":false,"assignee":{"login":"FooBarWidget","id":819,"avatar_url":"https://avatars.githubusercontent.com/u/819?v=3","gravatar_id":"","url":"https://api.github.com/users/FooBarWidget","html_url":"https://github.com/FooBarWidget","followers_url":"https://api.github.com/users/FooBarWidget/followers","following_url":"https://api.github.com/users/FooBarWidget/following{/other_user}","gists_url":"https://api.github.com/users/FooBarWidget/gists{/gist_id}","starred_url":"https://api.github.com/users/FooBarWidget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FooBarWidget/subscriptions","organizations_url":"https://api.github.com/users/FooBarWidget/orgs","repos_url":"https://api.github.com/users/FooBarWidget/repos","events_url":"https://api.github.com/users/FooBarWidget/events{/privacy}","received_events_url":"https://api.github.com/users/FooBarWidget/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/phusion/passenger/milestones/28","html_url":"https://github.com/phusion/passenger/milestones/5.0.10","labels_url":"https://api.github.com/repos/phusion/passenger/milestones/28/labels","id":1113199,"number":28,"title":"5.0.10","description":"","creator":{"login":"FooBarWidget","id":819,"avatar_url":"https://avatars.githubusercontent.com/u/819?v=3","gravatar_id":"","url":"https://api.github.com/users/FooBarWidget","html_url":"https://github.com/FooBarWidget","followers_url":"https://api.github.com/users/FooBarWidget/followers","following_url":"https://api.github.com/users/FooBarWidget/following{/other_user}","gists_url":"https://api.github.com/users/FooBarWidget/gists{/gist_id}","starred_url":"https://api.github.com/users/FooBarWidget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FooBarWidget/subscriptions","organizations_url":"https://api.github.com/users/FooBarWidget/orgs","repos_url":"https://api.github.com/users/FooBarWidget/repos","events_url":"https://api.github.com/users/FooBarWidget/events{/privacy}","received_events_url":"https://api.github.com/users/FooBarWidget/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":6,"state":"open","created_at":"2015-05-16T09:56:05Z","updated_at":"2015-06-10T14:58:52Z","due_on":null,"closed_at":null},"comments":14,"created_at":"2015-02-27T16:46:12Z","updated_at":"2015-06-11T13:22:59Z","closed_at":"2015-05-16T09:40:53Z","body":"Currently, `passenger-config restart-app` only works when invoked as root, because only root can read the control password. But this is very inconvenient when using Capistrano, because the administrator will have to setup sudo access. It should be possible to run restart-app without being root, as long as the app being restarted is running as the same user that invoked restart-app.\r\n\r\nSince we're dealing with HTTP, it's not possible to send credentials over a Unix domain socket. Instead, we should use a challenge-response mechanism. The server should create a temp file that's owned by the app's user, chmodded 400 and with random contents. The client should send the contents of that file to the server as proof that it is indeed that user."},"comment":{"url":"https://api.github.com/repos/phusion/passenger/issues/comments/111134127","html_url":"https://github.com/phusion/passenger/issues/1392#issuecomment-111134127","issue_url":"https://api.github.com/repos/phusion/passenger/issues/1392","id":111134127,"user":{"login":"FooBarWidget","id":819,"avatar_url":"https://avatars.githubusercontent.com/u/819?v=3","gravatar_id":"","url":"https://api.github.com/users/FooBarWidget","html_url":"https://github.com/FooBarWidget","followers_url":"https://api.github.com/users/FooBarWidget/followers","following_url":"https://api.github.com/users/FooBarWidget/following{/other_user}","gists_url":"https://api.github.com/users/FooBarWidget/gists{/gist_id}","starred_url":"https://api.github.com/users/FooBarWidget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FooBarWidget/subscriptions","organizations_url":"https://api.github.com/users/FooBarWidget/orgs","repos_url":"https://api.github.com/users/FooBarWidget/repos","events_url":"https://api.github.com/users/FooBarWidget/events{/privacy}","received_events_url":"https://api.github.com/users/FooBarWidget/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T13:22:59Z","updated_at":"2015-06-11T13:22:59Z","body":"@svoop Are you sure Passenger 5.0.10 is running? Did you restart Nginx after upgrading Passenger?\r\n\r\nAlso, which OS are you running? This feature is only supported on Linux, OS X and FreeBSD."}}