Skip to content

Conversation

@tafaust
Copy link
Contributor

@tafaust tafaust commented Oct 13, 2025

  • prototyped non-root user and distroless images with cursor
  • not tested (I don't have time, sorry)

@SenpaiSimon are you interested to test this?

Resolves #163

…rations

- Add customizable UID/GID build args for peekaping user in all Dockerfiles
- Update supervisord configs to run server and caddy as peekaping user
- Add security documentation for non-root execution and volume permissions
- Include docker-socket-proxy setup for enhanced Docker monitoring security
- Support both regular and distroless bundle variants with non-root execution

BREAKING CHANGE: Services now run as non-root user by default. Custom UID/GID
can be configured via build args or environment variables.
…and PostgreSQL

- Introduce multi-stage Dockerfiles for distroless bundle variants, enhancing security by running as non-root users.
- Implement build processes for Go server and React web app, with configurations for SQLite, MongoDB, and PostgreSQL.
- Update documentation to include usage instructions for distroless bundles, emphasizing the need for external database setups and migration processes.
- Ensure all scripts are executable and set proper ownership for security compliance.
@codecov
Copy link

codecov bot commented Oct 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 18.61%. Comparing base (0ad9871) to head (5610834).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #209   +/-   ##
=======================================
  Coverage   18.61%   18.61%           
=======================================
  Files         181      181           
  Lines       18826    18826           
=======================================
  Hits         3504     3504           
  Misses      15161    15161           
  Partials      161      161           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…xisting groups

- Modify user and group creation commands in various Dockerfiles to ensure they do not fail if the group already exists.
- This change enhances the robustness of the Docker build process across SQLite, MongoDB, PostgreSQL, and their distroless variants.
…xisting users

- Modify user and group creation commands in various Dockerfiles to ensure they do not fail if the user already exists.
- This change enhances the robustness of the Docker build process across SQLite, MongoDB, PostgreSQL, and their distroless variants.
- Update supervisord configurations to run as 'root' for MongoDB, PostgreSQL, and SQLite.
@tafaust
Copy link
Contributor Author

tafaust commented Oct 13, 2025

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.

Run Container as non root user

1 participant