{"action":"created","issue":{"url":"https://api.github.com/repos/realestate-com-au/shush/issues/2","repository_url":"https://api.github.com/repos/realestate-com-au/shush","labels_url":"https://api.github.com/repos/realestate-com-au/shush/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/realestate-com-au/shush/issues/2/comments","events_url":"https://api.github.com/repos/realestate-com-au/shush/issues/2/events","html_url":"https://github.com/realestate-com-au/shush/pull/2","id":147121240,"number":2,"title":"Request for comment: Add --user flag to provide gosu-like behaviour for the exec command","user":{"login":"martinrehfeld","id":12546,"avatar_url":"https://avatars.githubusercontent.com/u/12546?v=3","gravatar_id":"","url":"https://api.github.com/users/martinrehfeld","html_url":"https://github.com/martinrehfeld","followers_url":"https://api.github.com/users/martinrehfeld/followers","following_url":"https://api.github.com/users/martinrehfeld/following{/other_user}","gists_url":"https://api.github.com/users/martinrehfeld/gists{/gist_id}","starred_url":"https://api.github.com/users/martinrehfeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinrehfeld/subscriptions","organizations_url":"https://api.github.com/users/martinrehfeld/orgs","repos_url":"https://api.github.com/users/martinrehfeld/repos","events_url":"https://api.github.com/users/martinrehfeld/events{/privacy}","received_events_url":"https://api.github.com/users/martinrehfeld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-09T11:30:29Z","updated_at":"2016-04-10T13:02:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/realestate-com-au/shush/pulls/2","html_url":"https://github.com/realestate-com-au/shush/pull/2","diff_url":"https://github.com/realestate-com-au/shush/pull/2.diff","patch_url":"https://github.com/realestate-com-au/shush/pull/2.patch"},"body":"**This is work in progress / not an actual pull request yet**\r\n\r\nI thought it might be a good idea to combine the `shush exec` command with the functionality of [tianon /gosu](https://github.com/tianon/gosu).\r\n\r\nWhile it was straight-forward to include `gosu` code to provide the desired functionality, I realized that the code can only be build in Linux/Docker containers now because of `gosu`s dependency on [opencontainers/runc](https://github.com/opencontainers/runc).\r\n\r\nSo I am wondering:\r\n* Does the entire thing actually make sense, i.e. am I the only person that would like that feature?\r\n* Is there an obvious alternative to `opencontainers/runc` to get cross-plattform `Setguid/Setuid`?\r\n* Is `shush` actually being used outside Docker containers, so it won't even be problem not to have a Darwin build?\r\n\r\nAs I am not a `golang` person, I could use some guidance here, if and how to proceed...\r\n\r\nThank you + cheers,\r\nMartin"},"comment":{"url":"https://api.github.com/repos/realestate-com-au/shush/issues/comments/207982608","html_url":"https://github.com/realestate-com-au/shush/pull/2#issuecomment-207982608","issue_url":"https://api.github.com/repos/realestate-com-au/shush/issues/2","id":207982608,"user":{"login":"mdub","id":610,"avatar_url":"https://avatars.githubusercontent.com/u/610?v=3","gravatar_id":"","url":"https://api.github.com/users/mdub","html_url":"https://github.com/mdub","followers_url":"https://api.github.com/users/mdub/followers","following_url":"https://api.github.com/users/mdub/following{/other_user}","gists_url":"https://api.github.com/users/mdub/gists{/gist_id}","starred_url":"https://api.github.com/users/mdub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdub/subscriptions","organizations_url":"https://api.github.com/users/mdub/orgs","repos_url":"https://api.github.com/users/mdub/repos","events_url":"https://api.github.com/users/mdub/events{/privacy}","received_events_url":"https://api.github.com/users/mdub/received_events","type":"User","site_admin":false},"created_at":"2016-04-10T13:02:15Z","updated_at":"2016-04-10T13:02:15Z","body":"> I thought it might be a good idea to combine the shush exec command with the functionality of tianon /gosu.\r\n\r\nHi Martin.  Can you say more about why you think the combination would be a good idea?\r\n\r\n`shush` is a KMS client, `gosu` changes uid/gid; those things aren't particularly related, so a single utility that does both would seem a bit strange, to me.  Also, I'm guessing you could use them together pretty easily, e.g.\r\n\r\n    shush exec -- gosu somebody command\r\n"}}