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

Fix the entrypoint script when ODK_USER_ID is 0. #900

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

gouttegd
Copy link
Contributor

When we run with ODK_USER_ID=0, meaning the process inside the container must run under the identify of the superuser, make sure the arguments to the entrypoint script are quoted before exec'ing.

closes #899

When we run with ODK_USER_ID=0, meaning the process inside the container
must run under the identify of the superuser, make sure the arguments to
the entrypoint script are quoted before exec'ing.

closes #899
@gouttegd gouttegd self-assigned this Jul 16, 2023
@gouttegd
Copy link
Contributor Author

gouttegd commented Jul 16, 2023

Note that the test suite is running for absolutely nothing: we do not test running under the identity of the superuser (and I don’t think we should), so the code path that is modified by this PR is not tested. Leaving it running anyway since passing the tests is now needed for merging…

@gouttegd gouttegd requested a review from matentzn July 16, 2023 22:01
Copy link
Contributor

@matentzn matentzn left a comment

Choose a reason for hiding this comment

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

Excellent!! Thanks!

@matentzn matentzn merged commit 997abbd into master Jul 17, 2023
1 check passed
@matentzn matentzn deleted the fix-running-as-root branch July 17, 2023 11:35
@gouttegd
Copy link
Contributor Author

Please, for the love of Ken Thompson, Dennis Ritchie, and everything sacred in the Unix world, do not take this PR as an encouragement to keep running complex processes as root.

Had the ticket been opened by anyone else than you, I’d have closed it with “running the test suite as root is unsupported, go back to your quarters and think hard about your habits, #wontfix”. Then I would have banned you from ever opening a ticket on this repo again. :D

(I’m almost serious.)

@matentzn
Copy link
Contributor

:D I know.. I will make myself a user on my server called "noob"!

@matentzn
Copy link
Contributor

It worked perfect by the way!

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.

Cant run test suite as root on Ubuntu
2 participants