Skip to content

feat: harden production containers - #66

Merged
CryptoJones merged 1 commit into
mainfrom
feat/53-hardened-containers
Jul 29, 2026
Merged

feat: harden production containers#66
CryptoJones merged 1 commit into
mainfrom
feat/53-hardened-containers

Conversation

@CryptoJones

Copy link
Copy Markdown
Owner

Summary

  • add a standalone production compose stack with no published Postgres port and required deployment configuration
  • run API and poller images as non-root users with read-only filesystems, dropped capabilities, no-new-privileges, and bounded tmpfs scratch space
  • pin production deployments to released images and document secret generation, TLS proxying, and safe startup
  • add regression checks for the container hardening contract
  • bump both runtime versions to 1.12.0

Validation

  • 63 Python tests passed; Ruff, strict mypy, and Bandit clean
  • 191 .NET tests passed
  • 12 Playwright tests passed; 2 expected skips
  • API and poller images built successfully
  • hardened image smoke tests confirmed non-root UIDs 1654 and 10001
  • production compose validation passed and refuses missing required values
  • npm, NuGet, and pip-audit report no known vulnerabilities
  • uv lock check clean

Closes #53

Proudly Made in Nebraska. Go Big Red! 🌽 https://xkcd.com/2347/

@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

Next review available in: 18 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: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 5aafde0a-9820-40b0-9112-8a7fe78ee619

📥 Commits

Reviewing files that changed from the base of the PR and between 6b2f262 and 11c4d0c.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (11)
  • .env.production.example
  • .github/workflows/release.yml
  • .gitignore
  • BACKLOG.md
  • Dockerfile.poller
  • README.md
  • api/ApplyTrack.Api/ApplyTrack.Api.csproj
  • api/ApplyTrack.Api/Dockerfile
  • docker-compose.production.yml
  • pyproject.toml
  • tests/test_containers.py

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

@CryptoJones
CryptoJones merged commit 6992bd1 into main Jul 29, 2026
4 checks passed
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.

Operations: add hardened production container defaults

1 participant