Commit Graph

1079 Commits

Author SHA1 Message Date
GitHub Actions
4e9d6825a6 feat: Add pretype-check script to streamline dependency installation 2025-12-12 16:45:12 +00:00
GitHub Actions
7dd0d94169 feat: Implement rate limiting feature with persistence and UI updates 2025-12-12 04:13:55 +00: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
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
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
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
ca4cfc4e65 Merge pull request #346 from Wikid82/development
Propagate changes from development into feature/beta-release
2025-12-09 11:11:54 -05:00
Jeremy
1e35da0614 Merge pull request #344 from Wikid82/feature/beta-release
chore(history-rewrite): Propagate history-rewrite from feature/beta-release to development (draft)
2025-12-09 11:06:44 -05:00
Jeremy
e06e3bd6b3 Merge pull request #343 from Wikid82/development
Propagate changes from development into feature/beta-release
2025-12-09 11:04:27 -05:00
Jeremy
8c09b2c514 Merge branch 'feature/beta-release' into development 2025-12-09 11:04:24 -05:00
Jeremy
8729b44bb0 Merge pull request #341 from Wikid82/renovate/major-5-github-artifact-actions
chore(deps): update actions/upload-artifact action to v5
2025-12-09 11:02:22 -05:00
Jeremy
84d41edc0e Merge branch 'development' into renovate/major-5-github-artifact-actions 2025-12-09 11:02:13 -05:00
Jeremy
a9e2705a81 Merge pull request #340 from Wikid82/renovate/actions-github-script-8.x
chore(deps): update actions/github-script action to v8
2025-12-09 11:01:59 -05:00
Jeremy
28559f2d2e Merge branch 'development' into renovate/actions-github-script-8.x 2025-12-09 11:01:51 -05:00
Jeremy
4f531bf442 Merge pull request #339 from Wikid82/renovate/actions-checkout-6.x
chore(deps): update actions/checkout action to v6
2025-12-09 11:01:34 -05:00
renovate[bot]
f92648f3ab chore(deps): update actions/upload-artifact action to v5 2025-12-09 16:01:28 +00:00
renovate[bot]
73dbf075aa chore(deps): update actions/github-script action to v8 2025-12-09 16:01:22 +00:00
renovate[bot]
ec746540e2 chore(deps): update actions/checkout action to v6 2025-12-09 16:01:17 +00:00
Jeremy
626ebdb318 Merge pull request #342 from Wikid82/development
Propagate changes from development into feature/beta-release
2025-12-09 11:01:03 -05:00
Jeremy
e6c992d7b9 Merge pull request #338 from Wikid82/renovate/pin-dependencies
chore(deps): pin dependencies
2025-12-09 11:00:07 -05:00
GitHub Actions
c9278786cd feat(propagation): add configuration for sensitive paths to prevent auto-propagation 2025-12-09 15:59:13 +00:00
Jeremy
37e2224b55 Merge pull request #337 from Wikid82/development
Propagate changes from development into feature/beta-release
2025-12-09 10:45:16 -05:00
renovate[bot]
4bedaa89eb chore(deps): pin dependencies 2025-12-09 15:40:45 +00:00
Jeremy
ca7922793d Merge pull request #336 from Wikid82/feature/beta-release
chore(history-rewrite): add safe history-rewrite scripts and docs
2025-12-09 10:39:44 -05:00
GitHub Actions
e7bf81fd71 fix(tests): derive script location from test directory for portability 2025-12-09 15:34:43 +00:00
GitHub Actions
2dee87d4ed fix(quality-checks): enhance frontend change detection with fallback mechanisms 2025-12-09 15:32:25 +00:00
GitHub Actions
9fb930e5a1 fix(history-rewrite): improve repo root resolution in test script for Bash safety 2025-12-09 15:28:44 +00:00
GitHub Actions
d8d1e52bbc fix(history-rewrite): use dynamic REPO_ROOT for script paths in test scripts 2025-12-09 15:26:09 +00:00
GitHub Actions
abaefa6d2a fix(notification): classify fd00::/8 as unique-local IPv6 and update test 2025-12-09 15:15:50 +00:00
GitHub Actions
fed1fce041 test(history-rewrite): add non-interactive test for clean_history script 2025-12-09 15:13:39 +00:00
GitHub Actions
e024ff882e fix(history-rewrite): remove dead positional args check 2025-12-09 15:10:11 +00:00
GitHub Actions
8bc1c4d410 fix(history-rewrite): avoid duplicate logging by tee in loops 2025-12-09 15:07:33 +00:00
GitHub Actions
84e692f04e fix(history-rewrite): remove redundant || true from push warning echo 2025-12-09 15:05:21 +00:00
GitHub Actions
9c8d6b65ef fix(repo-health): use NUL-separated find and read -r -d for file lists 2025-12-09 15:01:35 +00:00
GitHub Actions
498820ed99 fix(script): update shebang to bash and enable pipefail for improved error handling 2025-12-09 14:59:02 +00:00
GitHub Actions
4c2b6e0686 fix(shebang): use bash and enable pipefail 2025-12-09 14:51:12 +00:00
GitHub Actions
733875d1d9 ci(docker): normalize IMAGE_NAME reliably to avoid invalid tags 2025-12-09 14:48:27 +00:00
GitHub Actions
cf747cc5f5 feat(ci): add Docker build, publish, and test workflow for feature/beta-release branch 2025-12-09 14:46:42 +00:00
Jeremy
8c9e04d458 ci: add minimal docker-build workflow (placeholder) to satisfy code scanning config discovery for feature/beta-release 2025-12-09 09:39:32 -05:00