Skip to content
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

[core] supervisor.conf to select Supervisor user #2064

Merged
merged 1 commit into from
Nov 6, 2015

Conversation

yannmh
Copy link
Member

@yannmh yannmh commented Nov 6, 2015

By default, Supervisor runs with the given user in the supervisord
section of the supervisor.conf configuration file.

If supervisord is run as the root user, switch users to this UNIX user
account before doing any meaningful processing. This value has no effect
if supervisord is not run as root.
(c.f
http://supervisord.org/configuration.html#supervisord-section-settings)

Thus, forcing Supervisor to run as dd-agent in the init script file is
simply an extra precaution. However, it makes impossible to change UNIX
users running the agent subprocesses via the supervisor.conf
configuration file only.
Drop this constraint.

By default, Supervisor runs with the given `user` in the `supervisord`
section of the `supervisor.conf` configuration file.

> If supervisord is run as the root user, switch users to this UNIX user
account before doing any meaningful processing. This value has no effect
if supervisord is not run as root.
(c.f
http://supervisord.org/configuration.html#supervisord-section-settings)

Thus, forcing Supervisor to run as `dd-agent` in the init script file is
simply an extra precaution. However, it makes impossible to change UNIX
users running the agent subprocesses via the `supervisor.conf`
configuration file only.
Drop this constraint.
@yannmh
Copy link
Member Author

yannmh commented Nov 6, 2015

@degemer can you take a pass on it ?

@remh
Copy link

remh commented Nov 6, 2015

Looks good to me, let's make sure to test that thoroughly. 👍

@olivielpeau possible to add more tests cases in dd-agent-testing with different values in the supervisord.conf ?

yannmh added a commit that referenced this pull request Nov 6, 2015
[core] `supervisor.conf` to select Supervisor user
@yannmh yannmh merged commit 4679fa1 into master Nov 6, 2015
@olivielpeau
Copy link
Member

@remh I've added a few tests to dd-agent-testing

@yannmh yannmh deleted the yann/select-supervisord-user branch November 18, 2015 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants