containerpilot icon indicating copy to clipboard operation
containerpilot copied to clipboard

Run as user per job

Open mterron opened this issue 6 years ago • 5 comments

Add a new key "user" to define as what uid the process should run under.

mterron avatar Jul 10 '18 03:07 mterron

Could this be accomplished by adding something like the following

cmd.SysProcAttr.Credential = &syscall.Credential{Uid: uid, Gid: gid}

below https://github.com/joyent/containerpilot/blob/bdc8fb7b0bee7cf38e2a680ac76a368e790443bc/commands/commands.go#L104? @tgross @misterbisson

eliasbrange avatar Jul 18 '18 07:07 eliasbrange

Would be a really useful feature

gbmeuk avatar Jun 05 '19 19:06 gbmeuk

I don't think CP is being developed/supported anymore @gbmeuk

mterron avatar Jun 05 '19 21:06 mterron

Thanks, @mterron. I'd seen comments about Joyent feeling that it is complete and not being actively being developed. Not sure about supported and whether they're reviewing PRs?

Mind you they have a lot of other issues right now, I guess.

gbmeuk avatar Jun 08 '19 14:06 gbmeuk

I added the feature in PR #584.

frederikbosch avatar Oct 24 '19 15:10 frederikbosch