Commit Graph

2271 Commits

Author SHA1 Message Date
GitHub Actions 41c5954adc fix(ci): add storage state size logging to diagnose potential OOM issues in CI 2026-02-05 13:48:12 +00:00
GitHub Actions 7f76ce64e0 fix(ci): implement preflight setup to ensure storage state exists in CI environments 2026-02-05 13:48:12 +00:00
GitHub Actions 8c558382d0 fix(ci): replace playwright-coverage imports with local test fixture 2026-02-05 13:48:12 +00:00
GitHub Actions 05fba0b3db feat(ci): Add explicit timeout enforcement (Phase 2)
Resource Constraint Management:

Problem:
- Tests hanging indefinitely during execution in CI
- 2-core runners resource-constrained vs local dev machines
- No timeout enforcement allows tests to run forever

Changes:
1. playwright.config.js:
   - Reduced per-test timeout: 90s → 60s (CI only)
   - Comment clarifies CI resource constraints
   - Local dev keeps 90s for debugging

2. .github/workflows/e2e-tests-split.yml:
   - Added timeout-minutes: 15 to all test steps
   - Ensures CI fails explicitly after 15 minutes
   - Prevents workflow hanging until 6-hour GitHub limit

Expected Outcome:
- Tests fail fast with timeout error instead of hanging
- Clearer debugging: timeout vs hang vs test failure
- CI resources freed up faster for other jobs

Phase: 2 of 3 (Resource Constraints)
See: docs/plans/ci_hang_remediation.md
2026-02-05 13:47:31 +00:00
GitHub Actions f6b56cb1e0 fix(ci): update health check URL from localhost to 127.0.0.1 for consistency
- workflow explicitly set PLAYWRIGHT_BASE_URL: http://localhost:8080 which overrides all the 127.0.0.1 defaults
2026-02-05 13:47:06 +00:00
GitHub Actions aec12a2e68 fix(ci): update comments for clarity on E2E tests workflow changes 2026-02-05 13:46:21 +00:00
GitHub Actions 63a419aeda fix(ci): adjust GeoIP database download and Playwright dependencies for CI stability 2026-02-05 13:46:21 +00:00
GitHub Actions 4afdf91010 fix(ci): enhance GeoIP database download with retry logic and placeholder creation on failure
- Add curl retry mechanism (3 attempts) for GeoIP database download
- Add 30-second timeout to prevent hanging on network issues
- Create placeholder file if download fails or checksum mismatches
- Allows Docker build to complete even when external database unavailable
- GeoIP feature remains optional - users can provide own database at runtime

Fixes security-weekly-rebuild workflow failures
2026-02-05 13:46:05 +00:00
Jeremy 165d551c18 fix: Merge branch 'development' 2026-02-05 13:44:50 +00:00
GitHub Actions 988f5e28d1 fix(e2e): update E2E tests workflow to sequential execution and fix race conditions
- Changed workflow name to reflect sequential execution for stability.
- Reduced test sharding from 4 to 1 per browser, resulting in 3 total jobs.
- Updated job summaries and documentation to clarify execution model.
- Added new documentation file for E2E CI failure diagnosis.
- Adjusted job summary tables to reflect changes in shard counts and execution type.
2026-02-05 13:44:22 +00:00
GitHub Actions 58a7439eba fix(ci): remove redundant Playwright browser cache cleanup from workflows 2026-02-05 13:41:54 +00:00
GitHub Actions 95526d56f7 fix(ci): remove redundant image tag determination logic from multiple workflows 2026-02-05 13:41:02 +00:00
GitHub Actions ae4a1e6801 fix(ci): standardize image tag step ID across integration workflows 2026-02-05 13:34:16 +00:00
GitHub Actions 05695af252 git status
rm .github/workflows/crowdsec-integration.yml .github/workflows/rate-limit-integration.yml .github/workflows/waf-integration.yml .github/workflows/e2e-tests.yml
fix(ci): add image_tag input for manual triggers in integration workflows
2026-02-05 13:13:15 +00:00
Jeremy b2135f0cff Merge pull request #661 from Wikid82/renovate/feature/beta-release-weekly-non-major-updates
fix(deps): update weekly-non-major-updates (feature/beta-release)
2026-02-04 16:32:07 -05:00
renovate[bot] db3d730ed1 fix(deps): update weekly-non-major-updates 2026-02-04 21:26:31 +00:00
Jeremy 34db94f918 Merge pull request #653 from Wikid82/renovate/feature/beta-release-weekly-non-major-updates
fix(deps): update weekly-non-major-updates (feature/beta-release)
2026-02-04 14:26:57 -05:00
Jeremy d5d1658162 Merge branch 'feature/beta-release' into renovate/feature/beta-release-weekly-non-major-updates 2026-02-04 14:24:09 -05:00
github-actions[bot] 11e5305401 chore: move processed issue files to created/ 2026-02-04 19:24:01 +00:00
Jeremy dd96493edb fix: resolve modal dropdown z-index conflicts across application
Restructure 7 modal components to use 3-layer architecture preventing
native select dropdown menus from being blocked by modal overlays.

Components fixed:
- ProxyHostForm: ACL selector and Security Headers dropdowns
- User management: Role and permission mode selection
- Uptime monitors: Monitor type selection (HTTP/TCP)
- Remote servers: Provider selection dropdown
- CrowdSec: IP ban duration selection

The fix separates modal background overlay (z-40) from form container
(z-50) and enables pointer events only on form content, allowing
native dropdown menus to render above all modal layers.

Resolves user inability to select security policies, user roles,
monitor types, and other critical configuration options through
the UI interface.
2026-02-04 19:23:35 +00:00
renovate[bot] e54650095c fix(deps): update weekly-non-major-updates 2026-02-04 17:55:36 +00:00
GitHub Actions 68891d4efe fix: update Go version command in utility task for improved compatibility 2026-02-04 17:05:13 +00:00
GitHub Actions c94642a594 chore: update Go version references from 1.25.6 to 1.25.7 across documentation and scripts 2026-02-04 16:52:52 +00:00
Jeremy 87df00f871 Merge pull request #643 from Wikid82/renovate/feature/beta-release-weekly-non-major-updates
chore(deps): update dependency @types/react to ^19.2.11 (feature/beta-release)
2026-02-04 08:42:29 -05:00
Jeremy 245db004da Merge branch 'feature/beta-release' into renovate/feature/beta-release-weekly-non-major-updates 2026-02-04 08:41:33 -05:00
Jeremy 9da1c92c45 Merge pull request #642 from Wikid82/development
Propagate changes from development into feature/beta-release
2026-02-04 08:41:13 -05:00
Jeremy 7907bec067 Merge branch 'feature/beta-release' into development 2026-02-04 08:40:27 -05:00
renovate[bot] 766a99ac4d chore(deps): update dependency @types/react to ^19.2.11 2026-02-04 13:35:45 +00:00
Jeremy 1baf23b40c Merge pull request #633 from Wikid82/renovate/development-weekly-non-major-updates
chore(deps): update weekly-non-major-updates (development)
2026-02-04 05:45:22 -05:00
Jeremy c35c3c59c7 Merge pull request #641 from Wikid82/renovate/feature/beta-release-pin-dependencies
chore(deps): pin nick-fields/retry action to ce71cc2 (feature/beta-release)
2026-02-04 05:44:59 -05:00
renovate[bot] a757146883 chore(deps): pin nick-fields/retry action to ce71cc2 2026-02-04 10:36:26 +00:00
Jeremy c4a4afd7a0 Merge pull request #635 from Wikid82/renovate/feature/beta-release-weekly-non-major-updates
chore(deps): update weekly-non-major-updates (feature/beta-release)
2026-02-04 05:29:18 -05:00
Jeremy 39e58d1359 Merge pull request #634 from Wikid82/renovate/feature/beta-release-pin-dependencies
chore(deps): pin nick-fields/retry action to ce71cc2 (feature/beta-release)
2026-02-04 05:29:01 -05:00
Jeremy da2c1c9e95 Merge branch 'feature/beta-release' into renovate/feature/beta-release-pin-dependencies 2026-02-04 05:28:49 -05:00
renovate[bot] f6c6a2b51a chore(deps): update weekly-non-major-updates 2026-02-04 10:28:38 +00:00
Jeremy 8fb04ac81e Merge pull request #639 from Wikid82/development
Propagate changes from development into feature/beta-release
2026-02-04 05:28:20 -05:00
github-actions[bot] a69b3d3768 chore: move processed issue files to created/ 2026-02-04 10:27:07 +00:00
Jeremy 2b758e1785 Merge pull request #637 from Wikid82/development
Propagate changes from development into feature/beta-release
2026-02-04 05:27:00 -05:00
Jeremy 83a695fbdc Merge branch 'feature/beta-release' into development 2026-02-04 05:26:47 -05:00
Jeremy a53f2c48f1 Merge branch 'feature/beta-release' into renovate/feature/beta-release-pin-dependencies 2026-02-04 05:24:27 -05:00
Jeremy 55c8ebcc13 Merge pull request #636 from Wikid82/main
Propagate changes from main into development
2026-02-04 05:23:56 -05:00
renovate[bot] 07b22c01a9 chore(deps): update weekly-non-major-updates 2026-02-04 10:11:33 +00:00
GitHub Actions 6938d4634c fix(ci): update workflows to support manual triggers and conditional execution based on Docker build success v0.17.1 2026-02-04 10:07:50 +00:00
GitHub Actions 4f1637c115 fix: crowdsec bouncer auto-registration and translation loading
CrowdSec LAPI authentication and UI translations now work correctly:

Backend:
- Implemented automatic bouncer registration on LAPI startup
- Added health check polling with 30s timeout before registration
- Priority order: env var → file → auto-generated key
- Logs banner warning when environment key is rejected by LAPI
- Saves bouncer key to /app/data/crowdsec/bouncer_key with secure permissions
- Fixed 6 golangci-lint issues (errcheck, gosec G301/G304/G306)

Frontend:
- Fixed translation keys displaying as literal strings
- Added ready checks to prevent rendering before i18n loads
- Implemented password-style masking for API keys with eye toggle
- Added 8 missing translation keys for CrowdSec console enrollment and audit logs
- Enhanced type safety with null guards for key status

The Cerberus security dashboard now activates successfully with proper
bouncer authentication and fully localized UI text.

Resolves: #609
2026-02-04 09:44:26 +00:00
GitHub Actions 6351a9bba3 feat: add CrowdSec API key status handling and warning component
- Implemented `getCrowdsecKeyStatus` API call to retrieve the current status of the CrowdSec API key.
- Created `CrowdSecKeyWarning` component to display warnings when the API key is rejected.
- Integrated `CrowdSecKeyWarning` into the Security page, ensuring it only shows when relevant.
- Updated i18n initialization in main.tsx to prevent race conditions during rendering.
- Enhanced authentication setup in tests to handle various response statuses more robustly.
- Adjusted security tests to accept broader error responses for import validation.
2026-02-04 09:17:25 +00:00
renovate[bot] 2342c53a5d chore(deps): pin nick-fields/retry action to ce71cc2 2026-02-04 06:52:58 +00:00
GitHub Actions 1267b74ace fix(ci): add pull_request triggers to test workflows for PR coverage
workflow_run triggers only fire for push events, not pull_request events,
causing PRs to skip integration and E2E tests entirely. Add dual triggers
to all test workflows so they run for both push (via workflow_run) and
pull_request events, while maintaining single-build architecture.

All workflows still pull pre-built images from docker-build.yml - no
redundant builds introduced. This fixes PR test coverage while preserving
the "Build Once, Test Many" optimization for push events.

Fixes: Build Once architecture (commit 928033ec)
2026-02-04 05:51:58 +00:00
GitHub Actions 88a74feccf fix(dockerfile): update GeoLite2 Country database SHA256 checksum 2026-02-04 05:29:25 +00:00
GitHub Actions 721b533e15 fix(docker-build): enhance feature branch tag generation with improved sanitization 2026-02-04 05:17:19 +00:00
GitHub Actions 1a8df0c732 refactor(docker-build): simplify feature branch tag generation in workflow 2026-02-04 05:00:46 +00:00