Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@anderbubble
Copy link
Collaborator

@anderbubble anderbubble commented Feb 11, 2025

Description of the Pull Request (PR):

This change is the overall "make syncuser emphatically optional, opt-in." Mostly I see syncuser cause confusion for people who think you have to do it, rather than people who chose to use it. So this intends to not do any syncuser by default, and then document how to use it if you need it.

This fixes or addresses the following GitHub issues:

Reviewer checklist

The reviewer checks the following items before merging the PR.

  • The PR is based on the appropriate branch (typically main)
  • All commits are "Signed off" (e.g., using git commit --signoff) in agreement to the DCO
  • The CHANGELOG has been updated, if necessary, and under the correct release heading
  • The userdocs have been updated, if necessary
  • The submitter is listed in the contributors file
  • The test suite has been updated, if necessary

@anderbubble anderbubble force-pushed the syncuser-improvements branch from ae6b858 to f5038d8 Compare February 12, 2025 00:04
@anderbubble anderbubble added this to the v4.6.0 milestone Feb 12, 2025
@anderbubble anderbubble force-pushed the syncuser-improvements branch 2 times, most recently from d0cf3ed to 64e003d Compare February 13, 2025 02:49
@anderbubble anderbubble requested review from middelkoopt and mslacken and removed request for middelkoopt February 13, 2025 03:36
@anderbubble anderbubble added overlay Pertaining to the included Warewulf overlays image labels Feb 13, 2025
@anderbubble anderbubble marked this pull request as ready for review February 13, 2025 03:39
@anderbubble
Copy link
Collaborator Author

anderbubble commented Feb 13, 2025

@mslacken and @middelkoopt, let me know what you think.

@mslacken
Copy link
Member

Basically I approve this idea, but handling this with templates is a good idea.
Still there can be a lot of side effects and testing this properly could delay the 4.6.0 release.
Can we push that to 4.6.1?

@mslacken mslacken modified the milestones: v4.6.0, v4.6.1 Feb 13, 2025
@anderbubble
Copy link
Collaborator Author

but handling this with templates is a good idea.

I don't understand. What can be done with templates already is being done with templates. Some of it, like the chown and chmod of all the files in the image, must be done in the image, and the updates to /etc/passwd and /etc/group need to match.

None of that is new; syncuser has been doing this since before I joined the project. But it's been built assuming you're always going to use it. But you've never had to, so this change is mostly about disabling all the warnings.

The only other change is in filtering duplicate entries.

Still there can be a lot of side effects

What new side-effects? Like I said: syncuser is not new. This is just about making it easier to disable, not assuming that people will use it, and (in the most different case) filtering duplicates from the file, which is one of the more common complaints we get about Warewulf.

testing this properly could delay the 4.6.0 release.

That situation is being tested now. If you want more, I'll add more. In fact, syncuser wasn't being tested at all before, because the dependence on the host's /etc directory meant that we couldn't test it. Moving it to sysconfdir means that testenv can direct where it reads host files from, which lets me enable the tests.

Can we push that to 4.6.1?

My first inclination is that this is a significant enough change that, if it doesn't make v4.6.0, it'd need to go to v4.7.0. But I'd strongly prefer getting this in v4.6.0.

Just tell me what you want to see tested that isn't. But, again, this isn't a new feature; it's modifications to an existing feature that was completely untested before, and is tested now (in this PR).

@mslacken mslacken modified the milestones: v4.6.1, v4.6.0 Feb 13, 2025
@anderbubble anderbubble force-pushed the syncuser-improvements branch from 5306832 to 32289e6 Compare February 13, 2025 18:29
@anderbubble anderbubble force-pushed the syncuser-improvements branch 5 times, most recently from 74e48a9 to eb6ce7d Compare February 13, 2025 21:54
@anderbubble anderbubble requested a review from mslacken February 13, 2025 21:59
Copy link
Member

@mslacken mslacken left a comment

Choose a reason for hiding this comment

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

Just merging this one before thinking more about the idea of not just having .Tags.PasswordlessRoot but Tags.AdditionalPasswdLine may add the possibility to have new warewulf managed users on the systems. Hopefully nobody reades ever this comment @anderbubble

@mslacken mslacken merged commit 428b064 into warewulf:main Feb 14, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

image overlay Pertaining to the included Warewulf overlays

Projects

None yet

3 participants