Commit Graph

1236 Commits

Author SHA1 Message Date
GitHub Actions 3f06fe850f fix: address post-rebuild issues with CrowdSec and Live Logs
- Issue 1: Corrected CrowdSec status reporting by adding `setting_enabled` and `needs_start` fields to the Status() response, allowing the frontend to accurately reflect the need for a restart.
- Issue 2: Resolved 500 error on stopping CrowdSec by implementing graceful handling of missing PID files in the Stop() method, with a fallback to process termination via pkill.
- Issue 3: Fixed Live Logs disconnection issue by ensuring the log file is created if it doesn't exist during LogWatcher.Start() and sending an immediate WebSocket connection confirmation to clients.

These changes enhance the robustness of the application in handling container restart scenarios.
2025-12-15 07:30:35 +00:00
GitHub Actions 1919530662 fix: add LAPI readiness check to CrowdSec status endpoint
The Status() handler was only checking if the CrowdSec process was
running, not if LAPI was actually responding. This caused the
CrowdSecConfig page to always show "LAPI is initializing" even when
LAPI was fully operational.

Changes:
- Backend: Add lapi_ready field to /admin/crowdsec/status response
- Frontend: Add CrowdSecStatus TypeScript interface
- Frontend: Update conditional logic to check lapi_ready not running
- Frontend: Separate warnings for "initializing" vs "not running"
- Tests: Add unit tests for Status handler LAPI check

Fixes regression from crowdsec_lapi_error_diagnostic.md fixes.
2025-12-15 07:30:35 +00:00
GitHub Actions 0bba5ad05f fix: enhance LAPI readiness checks and update related UI feedback 2025-12-15 07:30:35 +00:00
GitHub Actions c43976f84a fix: add LAPI availability check for console enrollment and update UI warnings 2025-12-15 07:30:35 +00:00
Jeremy 2f31a2f1e2 Merge pull request #400 from Wikid82/development
Propagate changes from development into feature/beta-release
2025-12-15 01:21:56 -05:00
Jeremy a4407f63c3 Merge branch 'feature/beta-release' into development 2025-12-15 01:21:42 -05:00
renovate[bot] c1aba6220f chore(deps): update npm minor/patch (#399)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-15 05:29:19 +00:00
GitHub Actions 4c8a699c4b fix: update task label and command for building and running local Docker image 2025-12-14 08:45:15 +00:00
Jeremy 114df30186 Merge pull request #398 from Wikid82/development
Development
2025-12-14 03:15:16 -05:00
Jeremy dd841f1943 Merge branch 'feature/beta-release' into development 2025-12-14 03:15:03 -05:00
GitHub Actions 7f82df80b7 fix: complete geoip2-golang v2 migration
- Update import paths to github.com/oschwald/geoip2-golang/v2
- Handle API breaking changes (net.IP → netip.Addr, IsoCode → ISOCode)
- Fix VERSION.md to match git tag (0.7.13)
- Resolves CI failure in benchmark workflow
2025-12-14 08:06:32 +00:00
Jeremy 8489394bbc Merge pull request #396 from Wikid82/renovate/github.com-oschwald-geoip2-golang-2.x
fix(deps): update module github.com/oschwald/geoip2-golang to v2
2025-12-14 02:33:39 -05:00
Jeremy dd9a559c8e Merge branch 'development' into renovate/github.com-oschwald-geoip2-golang-2.x 2025-12-14 02:33:06 -05:00
Jeremy 6469c6a2c5 Merge pull request #395 from Wikid82/renovate/node-24.x
chore(deps): update dependency node to v24
2025-12-14 02:32:51 -05:00
Jeremy 5376f28a64 Merge branch 'development' into renovate/node-24.x 2025-12-14 02:32:44 -05:00
Jeremy b298aa3e6a Merge pull request #394 from Wikid82/renovate/node-22.x
chore(deps): update dependency node to v22
2025-12-14 02:32:18 -05:00
Jeremy 2b36bd41fb Merge branch 'development' into renovate/node-22.x 2025-12-14 02:32:10 -05:00
Jeremy ee584877af Merge pull request #393 from Wikid82/renovate/major-6-github-artifact-actions
chore(deps): update actions/upload-artifact action to v6
2025-12-14 02:31:52 -05:00
Jeremy d0c6061544 Merge branch 'development' into renovate/major-6-github-artifact-actions 2025-12-14 02:31:43 -05:00
renovate[bot] df59d98289 chore(deps): update dependency node to v24 2025-12-14 07:31:33 +00:00
renovate[bot] d63a08d6a2 chore(deps): update dependency node to v22 2025-12-14 07:31:30 +00:00
Jeremy 8f06490aef Merge pull request #392 from Wikid82/renovate/major-5-github-artifact-actions
chore(deps): update actions/upload-artifact action to v5
2025-12-14 02:31:11 -05:00
Jeremy f1bd20ea9b Merge branch 'development' into renovate/major-5-github-artifact-actions 2025-12-14 02:31:02 -05:00
Jeremy 40526382a7 Merge pull request #391 from Wikid82/renovate/node-20.x
chore(deps): update dependency node to v20.19.6
2025-12-14 02:30:43 -05:00
Jeremy e35c6b5261 Merge branch 'development' into renovate/node-20.x 2025-12-14 02:27:37 -05:00
Jeremy b66383a7fb Merge pull request #397 from Wikid82/main
Propagate changes from main into development
2025-12-14 02:27:16 -05:00
GitHub Actions 7bca378275 fix: update renovate configuration for scheduling and automerge settings v0.7.13 2025-12-14 07:22:35 +00:00
Jeremy 7106efa94a Merge branch 'development' into main v0.7.12 2025-12-14 02:11:40 -05:00
GitHub Actions a26beefb08 fix: update Go version to 1.25.5 in go.work v0.7.11 2025-12-14 07:11:04 +00:00
GitHub Actions 833e2de2d6 fix: update version to 0.7.9 and add maxminddb-golang dependency v0.7.10 2025-12-14 07:09:10 +00:00
Jeremy 33fa5e7f94 Merge branch 'development' into renovate/node-20.x 2025-12-14 02:03:17 -05:00
Jeremy e65dfa3979 Merge pull request #390 from Wikid82/renovate/go-1.x
chore(deps): update dependency go to v1.25.5
2025-12-14 02:02:53 -05:00
renovate[bot] 85fd287b34 chore(deps): update actions/upload-artifact action to v6 2025-12-14 07:01:59 +00:00
renovate[bot] c19c4d4ff0 chore(deps): update actions/upload-artifact action to v5 2025-12-14 07:01:56 +00:00
Jeremy 8f6ebf6107 Merge branch 'development' into renovate/go-1.x 2025-12-14 02:01:51 -05:00
Jeremy e1925b0f5e Merge pull request #389 from Wikid82/renovate/pin-dependencies
chore(deps): pin actions/upload-artifact action to ea165f8
2025-12-14 02:01:10 -05:00
GitHub Actions 8c44d52b69 fix: update log message to include an icon for SQL injection detection v0.7.9 2025-12-14 06:50:39 +00:00
renovate[bot] 72821aba99 fix(deps): update module github.com/oschwald/geoip2-golang to v2 2025-12-14 06:44:09 +00:00
renovate[bot] 7c4b0002b5 chore(deps): update dependency node to v20.19.6 2025-12-14 06:43:40 +00:00
renovate[bot] 0600f9da2a chore(deps): update dependency go to v1.25.5 2025-12-14 06:43:33 +00:00
renovate[bot] e66404c817 chore(deps): pin actions/upload-artifact action to ea165f8 2025-12-14 06:43:09 +00:00
Jeremy 51cba4ec80 Merge pull request #387 from Wikid82/main
Propagate changes from main into development
2025-12-14 01:39:22 -05:00
GitHub Actions 99b8ed1996 chore: add renovate comments for alpine base image tracking
Ensures Renovate detects and updates Alpine 3.23 to future versions
(3.24, 3.25, etc.) automatically without manual monitoring.
v0.7.8
2025-12-14 06:36:42 +00:00
GitHub Actions 18868a47fc fix: add pull:true to docker-publish for fresh base images
The docker-publish.yml workflow was missing pull:true, causing it
to use cached Alpine images with vulnerable c-ares 1.34.5-r0.

This completes the fix across all three Docker workflows:
- docker-build.yml ✓
- docker-publish.yml ✓ (this commit)
- security-weekly-rebuild.yml ✓

Resolves CVE-2025-62408 (c-ares)
v0.7.7
2025-12-14 06:28:47 +00:00
GitHub Actions cb5bd01a93 fix: add pull:true to docker-build to ensure fresh base images
Ensures all Docker builds pull fresh Alpine base images to get
security patches like c-ares 1.34.6-r0 (CVE-2025-62408).

This mirrors the change made to security-weekly-rebuild.yml.
v0.7.6
2025-12-14 06:18:42 +00:00
GitHub Actions 72ebde31ce fix: add pull:true to security rebuild to fetch fresh base images
Without pull:true, the weekly security rebuild may use stale base
images cached on GitHub runners, missing security patches like
c-ares 1.34.6-r0 (CVE-2025-62408).
v0.7.5
2025-12-14 05:21:15 +00:00
GitHub Actions 7c79bf066a fix: update security package check to include apk update for accurate version info v0.7.4 2025-12-14 05:12:01 +00:00
GitHub Actions 394ada14f3 fix: update Docker run command to remove entrypoint for security package checks v0.7.3 2025-12-14 04:36:39 +00:00
GitHub Actions 9384c9c81f fix: build CrowdSec from source to address stdlib vulnerabilities and ensure compatibility with Go 1.25.5+ v0.7.2 2025-12-14 04:04:01 +00:00
GitHub Actions e9f9b6d95e docs: add commit message guidelines to Management agent documentation v0.7.1 2025-12-14 03:47:32 +00:00