Skip to content

Harden Voting App Containers and Improve Worker Vote Handling - #535

Open
Damilare4123 wants to merge 2 commits into
dockersamples:mainfrom
Damilare4123:feature/container-security
Open

Damilare4123 wants to merge 2 commits into
dockersamples:mainfrom
Damilare4123:feature/container-security

Conversation

@Damilare4123

Copy link
Copy Markdown

Summary

This pull request improves the security, reliability, and maintainability of the Voting App.

Changes made

  • Pinned Docker base images using SHA256 digests.
  • Configured application containers to run as non-root users.
  • Updated the result container to install production dependencies only.
  • Improved Docker build configurations.
  • Updated the worker to .NET 10 and modernized dependencies.
  • Improved PostgreSQL vote handling using ON CONFLICT.
  • Updated the result application test script.
  • Removed unnecessary development settings from Docker Compose.

Testing

  • Built the application Docker images.
  • Started the application services using Docker Compose.
  • Verified that votes could be submitted and processed.
  • Tested the result application and worker functionality.

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