-
Notifications
You must be signed in to change notification settings - Fork 538
feat: add swarm support to docker acquistion #3744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add swarm support to docker acquistion #3744
Conversation
@LaurenceJJones: There are no 'kind' label on this PR. You need a 'kind' label to generate the release automatically.
DetailsI am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository. |
@LaurenceJJones: There are no area labels on this PR. You can add as many areas as you see fit.
DetailsI am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3744 +/- ##
==========================================
+ Coverage 60.60% 60.68% +0.07%
==========================================
Files 390 390
Lines 41873 42100 +227
==========================================
+ Hits 25376 25547 +171
- Misses 14398 14440 +42
- Partials 2099 2113 +14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I added a bats test to verify that malformed regexp is not a cause for panic, the configuration is still invalid and should prevent crowdsec from starting but not crash. We can precompile and store them with DockerSource. Another thing, are you sure that runningContainerState/runningServiceState don't need a mutex? |
fix: #3540
Warning
CrowdSec MUST be running on a manager node for this to work as workers do not have permissions to read service logs.
🚀 Summary
This PR implements Docker Swarm service support for the docker acquisition module. The key improvement addresses the missing service detection and deletion.
📋 Configuration Examples
Service Name/ID Filtering
Service Regex Patterns
Label-based Service Selection
Service labels format:
🧪 Testing
1. Unit Tests
2. Integration Testing
Setup Test Swarm:
Test Configuration:
Verify Service Monitoring:
3. Manual Testing Scenarios
Service Lifecycle: