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

Revert "Make sure configured user is properly set by Salt" (bsc#1216284) #614

Conversation

meaksh
Copy link
Member

@meaksh meaksh commented Nov 15, 2023

This reverts commit 5ea4add which turned out to be problematic, as it caused some regressions (bsc#1216284), while not being really needed to fix the initial issue that motivated that patch (bsc#1210994).

The patch this PR is reverting is not really needed to fix (bsc#1210994), as that bug was actually fixed by 40a57af.

Introducing the conflictive patch was just to align with upstream PR saltstack/salt#64510, after it was reviewed (which contains the initial working fix + extra changes after the review)

The reason to revert this patch instead of fixing upstream PR is that, it seems we cannot really change the "user" that earlier in the stack as proposed in upstream PR, because this causes problems for "salt-master", while creating user keys (as "chmod" cannot be executed properly if not running as root). So the extra changes done in the upstream PR don't really make sense.

In a nutshell, "salt-master" needs to run as "root" during startup, and then it will switch to the configured user at some point during the startup. We cannot set "salt-master" systemd unit with User=salt and neither switching to the configured user at the begining of the initialization stack, as this is too early and will cause problems.

I will adapt upstream PR to refllect this findings.

Tracks: https://github.com/SUSE/spacewalk/issues/22827

Copy link
Contributor

@vzhestkov vzhestkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking care of it 👍 Looks good for me.

@meaksh meaksh merged commit d9980c8 into openSUSE/release/3006.0 Nov 16, 2023
3 checks passed
@meaksh meaksh deleted the openSUSE/fix/3006.0-revert-make-sure-user-is-set branch November 16, 2023 09:24
meaksh added a commit that referenced this pull request Oct 29, 2024
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.

2 participants