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

Warn if target user home directory is not accessible #139

Merged
merged 2 commits into from
Jun 25, 2023

Conversation

intgr
Copy link
Owner

@intgr intgr commented Jun 25, 2023

Adds additional log output when target user's home directory seems incorrectly configured. This would make issues like #131 less puzzling.

  • Also added snapshot tests for log output using new testing_logger dependency.
  • Also now using an unprivileged user to build in Docker, as tests assume /root/ directory is not accessible.

intgr added 2 commits June 26, 2023 02:13
Also added snapshot tests for lot output using new `testing_logger` dependency.
# Build as unprivileged user
RUN useradd build --create-home
WORKDIR /home/build
USER build
Copy link
Owner Author

Choose a reason for hiding this comment

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

Use unprivileged user: tests are relying on the fact that /root should not be accessible (permission denied)

@intgr intgr merged commit 0e247d1 into master Jun 25, 2023
@intgr intgr deleted the check-user-home-dir-existence branch June 25, 2023 23:34
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.

1 participant