Commit Graph

48 Commits

Author SHA1 Message Date
GitHub Actions
53f3e44999 fix: upgrade c-ares to address CVE-2025-62408 and add MaxMind GeoLite2 configuration files 2025-12-16 14:47:48 +00: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.
2025-12-14 06:36:42 +00:00
GitHub Actions
9384c9c81f fix: build CrowdSec from source to address stdlib vulnerabilities and ensure compatibility with Go 1.25.5+ 2025-12-14 04:04:01 +00:00
GitHub Actions
3fd85ce34f fix: upgrade Go to 1.25 for Caddy 2.10.2 compatibility
Caddy 2.10.2 requires Go 1.25 (declared in its go.mod). The previous
commit incorrectly downgraded to Go 1.23 based on the false assumption
that Go 1.25.5 doesn't exist.

This fix:
- Updates Dockerfile Go images from 1.23-alpine to 1.25-alpine
- Updates backend/go.mod to go 1.25
- Updates go.work to go 1.25

Fixes CI Docker build failures in xcaddy stage.
2025-12-14 01:06:03 +00:00
GitHub Actions
481208caf2 fix: correct Go version to 1.23 in Dockerfile (1.25.5 does not exist) 2025-12-14 00:44:27 +00:00
Jeremy
5b54b6582c Merge pull request #363 from Wikid82/main
chore: Sync main to development
2025-12-12 21:17:00 -05: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
renovate[bot]
a753211528 chore(deps): update node.js to v24.12.0 2025-12-11 22:45:47 +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
571a61aaea feat: install CrowdSec CLI (cscli) in Docker runtime stage
- Add cscli installation from official CrowdSec releases
- Update to CrowdSec v1.7.4 (from v1.6.0)
- Extract both crowdsec and cscli binaries from release tarball
- Install cscli to /usr/local/bin for PATH availability
- Add build-time validation with cscli version check
- Maintain minimal image size (293MB)
- Keep existing multi-stage build structure intact
2025-12-08 23:19:38 +00:00
Jeremy
8d9e677c74 Merge branch 'feature/beta-release' into development 2025-12-07 23:48:18 -05:00
renovate[bot]
f5657ec0ee chore(deps): update tonistiigi/xx docker tag to v1.9.0 2025-12-08 00:35:50 +00:00
GitHub Actions
72ff6313de Implement CrowdSec integration with API endpoints for managing IP bans and decisions
- Added unit tests for CrowdSec handler, including listing, banning, and unbanning IPs.
- Implemented mock command executor for testing command execution.
- Created tests for various scenarios including successful operations, error handling, and invalid inputs.
- Developed CrowdSec configuration tests to ensure proper handler setup and JSON output.
- Documented security features and identified gaps in CrowdSec, WAF, and Rate Limiting implementations.
- Established acceptance criteria for feature completeness and outlined implementation phases for future work.
2025-12-05 17:23:26 +00:00
renovate[bot]
a060db58de chore(deps): update module github.com/quic-go/quic-go to v0.57.1 (#317)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-05 06:29:42 +00:00
renovate[bot]
aebae095b4 chore(deps): update module github.com/expr-lang/expr to v1.17.6 (#316)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-05 06:29:20 +00:00
GitHub Actions
562bb012fb feat: Enhance Dockerfile for Caddy with security patches and automate dependency management
- Added custom manager in renovate.json to track Go dependencies patched in Dockerfile for Caddy CVE fixes.
- Updated Dockerfile to pre-fetch and override vulnerable module versions for dependencies (expr, quic-go, smallstep/certificates) during the build process.
- Improved build resilience by implementing a fallback mechanism for Caddy versioning.
- Introduced tests for user SMTP audit, covering invite token security, input validation, authorization, and SMTP config security.
- Enhanced user invite functionality with duplicate email protection and case-insensitive checks.
- Updated go.work.sum to include new dependencies and ensure compatibility.
2025-12-05 02:15:43 +00:00
renovate[bot]
727b02701e chore(deps): update alpine docker tag to v3.23 2025-12-03 21:08:00 +00:00
renovate[bot]
362a76f962 chore(deps): update golang docker tag to v1.25.5 2025-12-03 14:22:26 +00:00
GitHub Actions
53244d77a8 feat: add CrowdSec installation and create necessary directories in Dockerfile 2025-12-01 16:22:21 +00:00
GitHub Actions
83afbbf1fc feat: Add CrowdSec management endpoints and feature flags handler
- Implemented CrowdSec process management with start, stop, and status endpoints.
- Added import functionality for CrowdSec configuration files with backup support.
- Introduced a new FeatureFlagsHandler to manage feature flags with database and environment variable fallback.
- Created tests for CrowdSec handler and feature flags handler.
- Updated routes to include new feature flags and CrowdSec management endpoints.
- Enhanced import handler with better error logging and diagnostics.
- Added frontend API calls for CrowdSec management and feature flags.
- Updated SystemSettings page to manage feature flags and CrowdSec controls.
- Refactored logs and other components for improved functionality and UI consistency.
2025-12-01 16:19:05 +00:00
GitHub Actions
00b2bc798a chore(docker): pin golang base images to 1.25.4-alpine to satisfy hadolint DL3006 2025-12-01 16:19:05 +00:00
renovate[bot]
9d3805f1ee chore(deps): update alpine docker tag to v3.22 2025-12-01 14:37:58 +00:00
GitHub Actions
fc1e37f408 build: propagate VERSION into frontend build (VITE_APP_VERSION) 2025-11-30 00:06:50 +00:00
CI
a60be34f60 chore(ci): add PR-only Trivy app-only scan and pin Caddy v2.10.2 2025-11-29 21:23:54 +00:00
Wikid82
a0b2d3ffef fix: use find to locate and move dlv binary reliably 2025-11-22 00:43:23 -05:00
Wikid82
4d8c6fbb13 fix: handle dlv binary location dynamically without GOBIN 2025-11-22 00:33:10 -05:00
Wikid82
61b13a4b2b fix: use GOBIN to force dlv installation path in Dockerfile 2025-11-22 00:31:08 -05:00
Wikid82
902a09d686 fix: ensure dlv binary is verifiable and copied correctly in multi-arch build 2025-11-22 00:23:59 -05:00
Wikid82
9914e20817 feat: optimize Dockerfile build process with cache mounts for frontend and backend 2025-11-21 10:54:03 -05:00
renovate[bot]
766075298c chore(deps): update tonistiigi/xx docker tag to v1.8.0 2025-11-21 15:24:14 +00:00
Wikid82
cdc8048590 fix: enhance Dockerfile for cross-compilation support and update Caddy build process 2025-11-21 10:22:54 -05:00
Wikid82
9d39241c61 feat: update health check API response and integrate versioning in Layout component 2025-11-20 09:54:55 -05:00
Wikid82
8420bcaad9 feat: update Dockerfile and docker-compose files for improved debugging and consistency; refactor Login and Setup components for setup status handling 2025-11-20 00:58:35 -05:00
Wikid82
0e64e96ffb feat: add Delve debugger support and update entrypoint for debugging 2025-11-20 00:09:20 -05:00
renovate[bot]
238b04da5d chore(deps): update dependency node to v24 2025-11-20 03:15:07 +00:00
Wikid82
50d710ba7b chore: rename project artifacts to CPMP 2025-11-19 18:07:36 -05:00
Wikid82
778854473a CI: Add Renovate automation and Caddy v3 monitor; fix CADDY_IMAGE ARG scope 2025-11-19 09:52:10 -05:00
Wikid82
3111421b92 CI: Pin Caddy base by digest in builds; enforce Trivy fail on CRITICAL/HIGH; pass CADDY_IMAGE build-arg 2025-11-19 09:52:10 -05:00
Wikid82
e3134a2ad7 Reduce Trivy findings: drop bash, switch to /bin/sh entrypoint, pin to caddy:2-alpine, upgrade runtime packages 2025-11-19 09:52:10 -05:00
Wikid82
37cef06634 Docker: build frontend on BUILDPLATFORM to avoid arm64 Rollup native module; keep Rollup native skipped 2025-11-19 09:52:08 -05:00
Wikid82
f2ea164717 fix(docker): set ROLLUP_SKIP_NODEJS_NATIVE=1 to avoid arm64 native Rollup error 2025-11-19 09:52:08 -05:00
Wikid82
8e641b01bd fix: Eliminate act() warnings in frontend tests and resolve Docker arm64 build
- Wrap async mutations in act() across useImport, useProxyHosts, useRemoteServers tests
- Add npm_config_rollup_skip_nodejs_native=1 in Dockerfile to bypass native binary for arm64
- Enable Go module caching in CI via cache-dependency-path on setup-go action
- All frontend tests now pass cleanly (49/49) without React Testing Library warnings
2025-11-19 09:50:08 -05:00
Wikid82
08db82d92a fix: use golang:alpine base image for backend builder
The backend-builder stage was using golang:latest (Debian) but trying to
run Alpine's apk package manager, causing build failures with 'apk: not
found'. Changed to golang:alpine for consistency with the RUN commands.

Fixes Docker build workflow failures in GitHub Actions.
2025-11-19 09:50:07 -05:00
Wikid82
5dd5036661 feat: single-container deployment & automated semantic versioning; add release workflow, version injection, health endpoint metadata, documentation 2025-11-17 19:29:25 -05:00
Wikid82
6b0dfa7085 ci: add Go/Node CI, Docker multi-stage, Makefile, and pre-commit hooks; update README 2025-11-17 18:16:03 -05:00
Wikid82
4f3b7d8f99 feat: Initial project setup with CI/CD, Docker, and issue creation script
- Added Codecov configuration to enforce 75% coverage.
- Created .dockerignore to exclude unnecessary files from Docker context.
- Implemented GitHub Actions CI workflow for linting, testing, and coverage reporting.
- Added a workflow to propagate changes between main and development branches.
- Configured pre-commit hooks for code quality checks.
- Developed a multi-stage Dockerfile for a Python web backend.
- Added MIT License to the project.
- Created README.md with project overview and setup instructions.
- Implemented a script to create GitHub issues from project planning.
- Defined development and runtime requirements in requirements.txt and requirements.dev.txt.
2025-11-17 15:52:40 -05:00