-
Notifications
You must be signed in to change notification settings - Fork 367
Allow developer to specify run action user on Processes #4407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Interestingly I can get dora to work with user I think the same thing is happening with docker apps if you set 'root' user. You can do a plain old restart, though. Do you think |
I will experiment with this, I realized I'm not copying user over when duplicating the process during the deployment. Not sure about tracking it on Revisions. From a purist standpoint it probably should be tracked, but in practice I think you will set this once and rarely (or never) change it for the life of the app. Will play around with this some more, though. |
c2c23dc to
f8f1f2e
Compare
|
I think Edit: I was wrong about this. |
e427a40 to
e1b1293
Compare
|
@sethboyles I can't reproduce deployment failures after making this change: Regarding adding user to a Revision. I think if we do that it will function like commands on a Process. Which have their own table called |
|
I agree. We should probably treat |
102a954 to
4824bcb
Compare
|
Docs tests are failing with a 429. I think Github may be rate limiting access to the OSBAPI spec file for some reason. |
242f0d6 to
5d6d2e1
Compare
Changes in cloud_controller_ng:
- Support overriding the user on Processes
PR: cloudfoundry/cloud_controller_ng#4407
Author: Tim Downey <tcdowney@users.noreply.github.com>
|
This change causes the "Docker Application Lifecycle" tests of the CATs suite to fail: I found the following stack trace in the cloud controller logs: Can you please check and provide a fix? |
|
Yes, I'll take a look and fix it. Thanks for letting me know @jochenehret PR here: #4415 |
- The user field was added in #4407 - This failed for unstaged Docker apps since they do not have JSON-parseable execution metadata - This fix updates the code to treat empty and unparseable execution metadata the same as an empty JSON object
- The user field was added in #4407 - This failed for unstaged Docker apps since they do not have JSON-parseable execution metadata - This fix updates the code to treat empty and unparseable execution metadata the same as an empty JSON object
This adds a new field to the Process called
userwhich is used to override the default run action user fromvcapto something else. The use case this specifically solves is allowing Windows apps to opt-in to running as the built-in WindowsContainerUseruser. It makes configuring user a bit more straightforward for Docker applications as well, but is not useful for the cflinux stacks since those stacks only support thevcapuser.Currently the list of permitted users is controlled by a new capi-release BOSH property called
cc.allowed_process_users(see cloudfoundry/capi-release#555), but a possible future enhancement would be to makerun_userandbuild_userfirst-class properties onStackresources so that stacks could declare what users they support explicitly.See #4372 for more details on the use cases this solves.
I plan on submitting follow-up PRs to support this configuration via Manifests and on Tasks.
I have reviewed the contributing guide
I have viewed, signed, and submitted the Contributor License Agreement
I have made this pull request to the
mainbranchI have run all the unit tests using
bundle exec rakeI have run CF Acceptance Tests