Commit Graph

2266 Commits

Author SHA1 Message Date
GitHub Actions 0783ce3f57 Add integration test script for WAF functionality
- Create a new script `waf_integration.sh` to automate testing of WAF (Coraza) features.
- The script includes steps to build the local Docker image, start necessary containers, register a test user, create proxy hosts, and validate WAF rulesets for XSS and SQL injection attacks.
- Implement logging for test results and cleanup procedures to ensure resources are properly managed.
- Include assertions for HTTP status codes to verify expected behavior during tests.
2025-12-12 22:50:08 +00:00
GitHub Actions 4b49ec5f2b feat: Enhance LiveLogViewer with Security Mode and related tests
- Updated LiveLogViewer to support a new security mode, allowing for the display of security logs.
- Implemented mock functions for connecting to security logs in tests.
- Added tests for rendering, filtering, and displaying security log entries, including blocked requests and source filtering.
- Modified Security page to utilize the new security mode in LiveLogViewer.
- Updated Security page tests to reflect changes in log viewer and ensure proper rendering of security-related components.
- Introduced a new script for CrowdSec startup testing, ensuring proper configuration and parser installation.
- Added pre-flight checks in the CrowdSec integration script to verify successful startup and configuration.
2025-12-12 22:18:28 +00:00
GitHub Actions 7da24a2ffb Implement CrowdSec Decision Test Infrastructure
- Added integration test script `crowdsec_decision_integration.sh` for verifying CrowdSec decision management functionality.
- Created QA report for the CrowdSec decision management integration test infrastructure, detailing file verification, validation results, and overall status.
- Included comprehensive test cases for starting CrowdSec, managing IP bans, and checking API responses.
- Ensured proper logging, error handling, and cleanup procedures within the test script.
- Verified syntax, security, and functionality of all related files.
2025-12-12 20:33:41 +00:00
GitHub Actions 9ad3afbd22 Fix Rate Limiting Issues
- Updated Definition of Done report with detailed checks and results for backend and frontend tests.
- Documented issues related to race conditions and test failures in QA reports.
- Improved security scan notes and code cleanup status in QA reports.
- Added summaries for rate limit integration test fixes, including root causes and resolutions.
- Introduced new debug and integration scripts for rate limit testing.
- Updated security documentation to reflect changes in configuration and troubleshooting steps.
- Enhanced troubleshooting guides for CrowdSec and Go language server (gopls) errors.
- Improved frontend and scripts README files for clarity and usage instructions.
2025-12-12 19:21:44 +00:00
GitHub Actions b47541e493 fix: Update API port in rate limit integration script 2025-12-12 18:34:03 +00:00
GitHub Actions f53119116f fix: Update Caddy admin API port in rate limit integration script 2025-12-12 18:31:41 +00:00
GitHub Actions 5bc387b1dc feat: Add integration tests for rate limiting functionality 2025-12-12 18:29:48 +00:00
GitHub Actions 9088a38b05 feat: Add comprehensive testing plan for Charon rate limiter 2025-12-12 18:23:22 +00:00
Jeremy a54bcb1151 Merge pull request #355 from Wikid82/renovate/npm-minorpatch
fix(deps): update npm minor/patch
2025-12-12 13:07:48 -05:00
Jeremy 4093e76fcf Merge branch 'development' into renovate/npm-minorpatch 2025-12-12 13:07:39 -05:00
Jeremy b8c0163a3c Merge pull request #356 from Wikid82/renovate/github-codeql-action-digest
chore(deps): update github/codeql-action digest to 1b168cd
2025-12-12 13:07:24 -05:00
Jeremy 0c847b8d8e Merge branch 'development' into renovate/github-codeql-action-digest 2025-12-12 13:07:15 -05:00
GitHub Actions 25082778c9 feat(cerberus): integrate Cerberus security features (WAF, ACLs, rate limiting, CrowdSec)
- Implement GeoIPService for IP-to-country lookups with comprehensive error handling.
- Add tests for GeoIPService covering various scenarios including invalid IPs and database loading.
- Extend AccessListService to handle GeoIP service integration, including graceful degradation when GeoIP service is unavailable.
- Introduce new tests for AccessListService to validate geo ACL behavior and country code parsing.
- Update SecurityService to include new fields for WAF configuration and enhance decision logging functionality.
- Add extensive tests for SecurityService covering rule set management and decision logging.
- Create a detailed Security Coverage QA Plan to ensure 100% code coverage for security-related functionality.
2025-12-12 17:56:30 +00:00
GitHub Actions 0003b6ac7f feat: Implement comprehensive remediation plan for Cerberus Security Module
- Added GeoIP integration (Issue #16) with service and access list updates.
- Fixed rate limiting burst field usage and added bypass list support (Issue #19).
- Implemented CrowdSec bouncer integration (Issue #17) with registration and health checks.
- Enhanced WAF integration (Issue #18) with per-host toggle, paranoia levels, and rule exclusions.
- Updated documentation and added new API routes for GeoIP, rate limits, and WAF exclusions.

chore: Add QA report for race and test failures

- Documented findings from race condition tests and WebSocket test flakiness.
- Identified issues with CrowdSec registration tests in non-bash environments.
- Noted security status contract mismatches and missing table errors in handler/service tests.

audit: Conduct full QA audit of security phases

- Verified all security implementation phases with comprehensive testing.
- Resolved linting issues and ensured codebase health.
- Documented test results and issues found during the audit.
2025-12-12 16:45:49 +00:00
GitHub Actions 4e9d6825a6 feat: Add pretype-check script to streamline dependency installation 2025-12-12 16:45:12 +00:00
renovate[bot] ba8380ee3a chore(deps): update renovatebot/github-action action to v44.1.0 (#358)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-12 16:40:27 +00:00
renovate[bot] 8752173a95 chore(deps): update github/codeql-action action to v4.31.8 (#357)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-12 16:40:00 +00:00
renovate[bot] 8abe689e74 fix(deps): update npm minor/patch 2025-12-12 15:37:45 +00:00
renovate[bot] 33efc29d9b chore(deps): update github/codeql-action digest to 1b168cd 2025-12-12 15:37:21 +00:00
GitHub Actions 7dd0d94169 feat: Implement rate limiting feature with persistence and UI updates 2025-12-12 04:13:55 +00:00
Jeremy 474207bdce Merge pull request #354 from Wikid82/renovate/npm-minorpatch
fix(deps): update npm minor/patch to ^19.2.3
2025-12-11 23:08:50 -05:00
renovate[bot] bfa9367505 fix(deps): update npm minor/patch to ^19.2.3 2025-12-12 04:08:09 +00:00
Jeremy a731d2f665 Merge pull request #353 from Wikid82/renovate/docker-base-updates
chore(deps): update node.js to v24.12.0
2025-12-11 23:07:40 -05:00
Jeremy d9571e421e Merge pull request #352 from Wikid82/renovate/npm-minorpatch
fix(deps): update npm minor/patch to ^19.2.2
2025-12-11 23:07:26 -05:00
GitHub Actions effed44ce8 feat: Rename WAF to Coraza in UI and update related tests
- Updated UI components to reflect the renaming of "WAF (Coraza)" to "Coraza".
- Removed WAF controls from the Security page and adjusted related tests.
- Verified that all frontend tests pass after updating assertions to match the new UI.
- Added a test script to package.json for running tests with Vitest.
- Adjusted imports for jest-dom to be compatible with Vitest.
- Updated TypeScript configuration to include Vitest types for testing.
2025-12-12 03:19:27 +00:00
GitHub Actions 8e09efe548 fix: update SSL card logic to correctly detect pending certificates by domain matching 2025-12-12 01:41:29 +00:00
GitHub Actions 1beac7b87e fix: read archive before backup in CrowdSec preset apply and add Markdownlint integration 2025-12-12 01:06:32 +00:00
GitHub Actions 67f2f27cf8 feat: Add Import Success Modal and Certificate Status Card features
- Implemented ImportSuccessModal to replace alert with a modal displaying import results and guidance.
- Updated ImportCaddy to show the new modal with import summary and navigation options.
- Created CertificateStatusCard to display certificate provisioning status on the dashboard.
- Enhanced API types and hooks to support new features.
- Added unit tests for ImportSuccessModal and CertificateStatusCard components.
- Updated QA report to reflect the status of the new features and tests.
2025-12-12 00:42:27 +00:00
GitHub Actions 7ca5a11572 Add ImportSuccessModal tests, enhance AuthContext for token management, and improve useImport hook
- Implement tests for ImportSuccessModal to verify rendering and functionality.
- Update AuthContext to store authentication token in localStorage and manage token state.
- Modify useImport hook to capture and expose commit results, preventing unnecessary refetches.
- Enhance useCertificates hook to support optional refetch intervals.
- Update Dashboard to conditionally poll certificates based on pending status.
- Integrate ImportSuccessModal into ImportCaddy for user feedback on import completion.
- Adjust Login component to utilize returned token for authentication.
- Refactor CrowdSecConfig tests for improved readability and reliability.
- Add debug_db.py script for inspecting the SQLite database.
- Update integration and test scripts for better configuration and error handling.
- Introduce Trivy scan script for vulnerability assessment of Docker images.
2025-12-12 00:05:15 +00:00
renovate[bot] a753211528 chore(deps): update node.js to v24.12.0 2025-12-11 22:45:47 +00:00
renovate[bot] 7a0fb23a46 fix(deps): update npm minor/patch to ^19.2.2 2025-12-11 22:45:42 +00:00
GitHub Actions 03dadf6dcd fix(docs): add security scanning steps for CodeQL and Trivy in QA phase 2025-12-11 18:55:36 +00:00
GitHub Actions 5d81e44ba1 fix(docs): update definition of done to include CodeQL and Trivy for security compliance 2025-12-11 18:46:43 +00:00
Jeremy 8cdd29b047 Merge pull request #351 from Wikid82/renovate/npm-minorpatch
chore(deps): update npm minor/patch to ^4.1.18
2025-12-11 13:37:16 -05:00
Jeremy 644f3fa564 Merge branch 'development' into renovate/npm-minorpatch 2025-12-11 13:37:07 -05:00
Jeremy 77fe3cdf02 Merge pull request #350 from Wikid82/renovate/node-24.x
chore(deps): update dependency node to v24.12.0
2025-12-11 13:36:51 -05:00
renovate[bot] 79eeaebdd8 chore(deps): update npm minor/patch to ^4.1.18 2025-12-11 18:28:15 +00:00
renovate[bot] 956d0d44c3 chore(deps): update dependency node to v24.12.0 2025-12-11 18:28:00 +00:00
GitHub Actions 8294d6ee49 Add QA test outputs, build scripts, and Dockerfile validation
- Created `qa-test-output-after-fix.txt` and `qa-test-output.txt` to log results of certificate page authentication tests.
- Added `build.sh` for deterministic backend builds in CI, utilizing `go list` for efficiency.
- Introduced `codeql_scan.sh` for CodeQL database creation and analysis for Go and JavaScript/TypeScript.
- Implemented `dockerfile_check.sh` to validate Dockerfiles for base image and package manager mismatches.
- Added `sourcery_precommit_wrapper.sh` to facilitate Sourcery CLI usage in pre-commit hooks.
2025-12-11 18:26:24 +00:00
GitHub Actions 65d837a13f chore: clean cache 2025-12-11 18:17:21 +00:00
GitHub Actions b4dd1efe3c fix(console): remove unsupported --tenant flag from CrowdSec console enrollment command 2025-12-11 15:37:46 +00:00
Jeremy 462e40629a Merge pull request #349 from Wikid82/renovate/npm-minorpatch
fix(deps): update npm minor/patch
2025-12-11 09:44:23 -05:00
renovate[bot] 34a8fbd97a fix(deps): update npm minor/patch 2025-12-11 08:53:58 +00:00
GitHub Actions 8687a05ec0 chore: remove generated hub index files from repo 2025-12-11 05:27:11 +00:00
GitHub Actions 97c2ef9b71 feat(tests): add CrowdSec Console Enrollment feature flag tests in SystemSettings and CrowdSecConfig 2025-12-11 05:09:03 +00:00
GitHub Actions 28ad90d962 feat(tests): enhance integration tests for CrowdSec and Coraza, improve error handling and logging
- Updated `coraza_integration_test.go` and `crowdsec_integration_test.go` for better logging and error handling.
- Added `ttlRemainingSeconds` to `CrowdsecHandler` to provide remaining TTL in responses.
- Improved error messages in `ApplyPreset` and `GetCachedPreset` methods for better user guidance.
- Enhanced test coverage for applying presets, including scenarios for cache misses and expired caches.
- Introduced new tests for cache refresh logic and ensured proper rollback behavior during failures.
- Updated QA report with recent testing outcomes and observations.
2025-12-11 00:59:53 +00:00
GitHub Actions cf912f15eb feat(cache): implement resilience for cache misses in HubService.Apply() and enhance logging for better diagnostics 2025-12-11 00:43:21 +00:00
GitHub Actions e299aa6b52 feat(tests): enhance test coverage and error handling across various components
- Added a test case in CrowdSecConfig to show improved error message when preset is not cached.
- Introduced a new test suite for the Dashboard component, verifying counts and health status.
- Updated SMTPSettings tests to utilize a shared render function and added tests for backend validation errors.
- Modified Security.audit tests to improve input handling and removed redundant export failure test.
- Refactored Security tests to remove export functionality and ensure correct rendering of components.
- Enhanced UsersPage tests with new scenarios for updating user permissions and manual invite link flow.
- Created a new utility for rendering components with a QueryClient and MemoryRouter for better test isolation.
- Updated go-test-coverage script to improve error handling and coverage reporting.
2025-12-11 00:26:07 +00:00
Jeremy f92e85804f Merge pull request #348 from Wikid82/renovate/npm-minorpatch
chore(deps): update dependency knip to ^5.73.0
2025-12-10 00:13:19 -05:00
Jeremy 85ccec65b4 Merge branch 'development' into renovate/npm-minorpatch 2025-12-10 00:13:12 -05:00