feat: Automatic Worker Loading, Docker Optimization & CI/CD Pipeline - #115
Open
miguerubsk wants to merge 17 commits into
Open
feat: Automatic Worker Loading, Docker Optimization & CI/CD Pipeline#115miguerubsk wants to merge 17 commits into
miguerubsk wants to merge 17 commits into
Conversation
Updated CI/CD workflow to support both master and dev branches, and added GitHub release creation on version tag pushes.
Updated Docker workflow to improve clarity and functionality.
Added Docker Buildx setup for cache support and corrected environment variable handling.
3 tasks
miguerubsk
marked this pull request as ready for review
December 12, 2025 12:06
This reverts commit fe5284b.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR introduces a dynamic system for loading attack workers, eliminating the need to hardcode methods in the server and client. Additionally, it significantly improves the deployment workflow by optimizing the
Dockerfilefor security and performance, and adding a GitHub Actions pipeline.Key Changes:
1. Dynamic Worker Loading:
server/index.tsto dynamically scan and import worker files from theworkers/directory.infoobject containing the ID and display name (e.g.,HTTP/Flood)./methodsthat returns the available attack methods to the frontend.src/App.tsxto fetch attack methods dynamically from the server instead of using a hardcoded list.2. Docker & DevOps:
Dockerfileto use a multi-stage build process (builder vs. production), reducing the final image size.appuser) in the production stage to improve container security.3. Bug Fixes:
src/App.tsx(duplicate code block).server/index.tsregarding worker error handling.How to Test:
server/workers/(e.g.,testAttack.js) exporting the requiredinfoobject.npm run dev).docker compose buildto verify the container builds successfully.Checklist: