-
Notifications
You must be signed in to change notification settings - Fork 447
fix: builder user remenants should not be present in node images #1838
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
fix: builder user remenants should not be present in node images #1838
Conversation
Currently the builder user is not deleted, just locked, which could pose security risks for qemu, raw, nutanix and maas. So based on the suggestions, cleaning up the user just like in the case of ova.
Hi @sriramandev. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/assign |
@AverageMarcus @ffais Based on the discussions in PR creating this PR. Kindly have a look and provide your comments on the same. |
@sriramandev I tested your changes on the raw target, the build completed successfully, the user and sudoers files were deleted, but I received this error:
Does the same thing happen to you with OVA? |
Interesting, no, do not see this in OVA. |
I ran further tests, and the user is being deleted correctly. At this point, I think it's just a warning we can ignore. |
Could you test it with The pkill, may just kill the pipeline ofc making it a non-viable option. Just a thought. :-) If you don't have time I can look at it later but I'm slammed atm. |
@drew-viles I ran some tests using pkill, but unfortunately the build times out. My suspicion is that pkill terminates the ssh session, preventing the pipeline from completing. However, I can't figure out why this error doesn't appear on OVA. |
Thanks for confirming. If you're sure it's removing the user I'm happy to proceed personally unless anyone else can interject with another idea ofc. /ok-to-test |
Yes, I can confirm that builder user is not present anymore, on all tests with RAW target, despite the warning message. |
/lgtm /assign @mboersma |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mboersma The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Change description
Currently the builder user is not deleted, just locked, which could pose security risks for qemu, raw, nutanix and maas. So based on the suggestions, cleaning up the user just like in the case of ova.
Related issues
Additional context
This changeset has been introduced on the basis of the discussions that happened as part of PR.