GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(docker): run MailCatcher as non-root by marcelorodrigo · Pull Request #21 · marcelorodrigo/mailcatcher

Conversation

@marcelorodrigo

@marcelorodrigo marcelorodrigo commented Aug 2, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

Run MailCatcher under a dedicated unprivileged Alpine system user in the final image.\n\nThis removes root execution from the default container runtime while keeping the existing command and non-privileged port bindings unchanged. The CI smoke test now also confirms the default container identity, alongside the existing startup, SMTP, and HTTP checks.

Summary by CodeRabbit

  • Security & Reliability
    • Docker containers now run as a non-root mailcatcher user, improving runtime isolation.
    • Docker smoke tests verify the container uses the intended user.
    • Existing exposed ports remain unchanged.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@coderabbitai

coderabbitai Bot commented Aug 2, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@marcelorodrigo, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 42 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: d4b93415-9ffc-4ac9-b824-a5ae4acd4a1d

📥 Commits

Reviewing files that changed from the base of the PR and between 5377128 and 3a17844.

📒 Files selected for processing (2)
  • .github/workflows/pr-build.yml
  • Dockerfile
📝 Walkthrough

Walkthrough

The Docker image creates a system mailcatcher user and runs as that user. The pull request smoke test verifies the image’s effective user.

Changes

Container runtime user

Layer / File(s) Summary
Docker user enforcement
Dockerfile, .github/workflows/pr-build.yml
The image creates and uses the mailcatcher system user. The smoke test verifies that user. Existing ports remain unchanged.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

  • marcelorodrigo/mailcatcher#16: Both changes update the Dockerfile and pull request smoke-test workflow.
  • marcelorodrigo/mailcatcher#20: This pull request extends the Dockerfile and smoke-test changes with dedicated-user execution.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: running MailCatcher as a non-root user in Docker.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/nonroot-runtime

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@marcelorodrigo
fix(docker): run MailCatcher as non-root
acbfe0d
Run the image under a dedicated unprivileged account and verify that identity in the smoke test.
@marcelorodrigo
marcelorodrigo force-pushed the fix/nonroot-runtime branch from 5377128 to acbfe0d Compare August 2, 2026 19:14
@marcelorodrigo
Merge branch 'master' into fix/nonroot-runtime
3a17844
@marcelorodrigo
marcelorodrigo merged commit 87447e5 into master Aug 3, 2026
3 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@marcelorodrigo
marcelorodrigo deleted the fix/nonroot-runtime branch August 3, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@marcelorodrigo
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.