-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
salt-master should not run as root anymore #5249
Comments
This is also possible with archlinux package:
only addition to the salt PKGBUILD would be 1 file and one line in PKGBUILD I have a PKGBUILD ready with these changes. |
Only issue so far running salt under a system user other than root is a message about dmidecode permissions. I have investigated the dmidecode message in salt master log, and I think it is not a problem |
The dmidecode error is not a real issue and can probably be changed to an info log message. I agree that running the master as non-root is a good, but since @kb1jwq is involved I will need to deny all requests..... In seriousness though, I think that the package is where this change should be, since the package should also be responsible for setting up the user and any initial permissions |
I have reached out to the packagers and let them know about this, but I don't think it is a salt specific bug, I think that we should change the dmidecode to be less severe of a warning here though |
Not to mention that dmidecode warnings are rampant on MacOS, given that dmidecode doesn't exist on that platform. Downgrading this would be swell. |
So, where exactly is this tracked now? Are there xxxx bugs filed in all the packages? Have you got links to those? |
Actually, I'm not sure that there's an open issue for it, I think Tom just notified the packagers directly. If you'd like to keep track of it, please create a new issue, and make it obvious that it's related to Ubuntu packaging, something like "Ubuntu package should not run Salt as root". That way it doesn't get forgotten. Thanks! |
With the Suse packages salt-master is running under it's own system user 'salt' |
@thatch45 and @KB1JWQ can you guyes take look into this: I Found another issue with running salt-master as is own user instead of root. Digged a little deeper and found on the jenkins/hudson mailing list an explanation because of the same issue: apparently pam authentication can only be done as root or opening up a whole lot of security issues. But testing further with other authentication methods: So running salt-master as privileged user not as root can be done, but you lose pam external authentication on cli. |
"Although 'dmidecode' was found in path, the current user cannot execute it" is a frequent annoyance when running Salt as non-root user. [1] [2] [3] [4] This is more of an ugly hack, but fixing the underlying problem would probably require major refactoring of the whole function. [1] saltstack#2494 (comment) [2] https://groups.google.com/d/topic/salt-users/aM11D1mIV4c/discussion [3] saltstack#5249 (comment) [4] saltstack#39184
We're up to 0.15.1, and the PPA at least still ships a config that runs salt-master as root.
The docs at https://salt.readthedocs.org/en/latest/topics/nonroot.html say it's been available since 0.91.
Tagging @kb1jwq because he wanted to be involved
The text was updated successfully, but these errors were encountered: