Commit Graph

2519 Commits

Author SHA1 Message Date
Jeremy d626c7d8b3 Merge pull request #650 from Wikid82/hotfix/ci
fix: resolve Playwright browser executable not found errors in CI
v0.18.7
2026-02-04 11:46:27 -05:00
Jeremy b34f96aeeb Merge branch 'main' into hotfix/ci 2026-02-04 11:46:17 -05:00
GitHub Actions 3c0b9fa2b1 fix: resolve Playwright browser executable not found errors in CI
Root causes:
1. Browser cache was restoring corrupted/stale binaries from previous runs
2. 30-minute timeout insufficient for fresh Playwright installation (10-15 min)
   plus Docker/health checks and test execution

Changes:
- Remove browser caching from all 3 browser jobs (chromium, firefox, webkit)
- Increase timeout from 30 → 45 minutes for all jobs
- Add diagnostic logging to browser install steps:
  * Install start/completion timestamps
  * Exit code verification
  * Cache directory inspection on failure
  * Browser executable verification using 'npx playwright test --list'

Benefits:
- Fresh browser installations guaranteed (no cache pollution)
- 15-minute buffer prevents premature timeouts
- Detailed diagnostics to catch future installation issues early
- Consistent behavior across all browsers

Technical notes:
- Browser install with --with-deps takes 10-15 minutes per browser
- GitHub Actions cache was causing more harm than benefit (stale binaries)
- Sequential execution (1 shard per browser) combined with fresh installs
  ensures stable, reproducible CI behavior

Expected outcome:
- Firefox/WebKit failures from missing browser executables → resolved
- Chrome timeout at 30 minutes → resolved with 45 minute buffer
- Future installation issues → caught immediately via diagnostics

Refs: #hofix/ci
QA: YAML syntax validated, pre-commit hooks passed (12/12)
2026-02-04 16:44:47 +00:00
Jeremy 2e3d53e624 Merge pull request #649 from Wikid82/hotfix/ci
fix(e2e): update E2E tests workflow to sequential execution and fix r…
v0.18.6
2026-02-04 11:09:16 -05:00
Jeremy 40a37f76ac Merge branch 'main' into hotfix/ci 2026-02-04 11:09:04 -05:00
GitHub Actions e6c2f46475 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-04 16:08:11 +00:00
Jeremy a845b83ef7 fix: Merge branch 'development' v0.18.5 2026-02-04 16:01:22 +00:00
Jeremy f375b119d3 Merge pull request #648 from Wikid82/hotfix/ci
fix(ci): remove redundant Playwright browser cache cleanup from workf…
v0.18.4
2026-02-04 09:45:48 -05:00
Jeremy 5f9995d436 Merge branch 'main' into hotfix/ci 2026-02-04 09:43:22 -05:00
GitHub Actions 7bb88204d2 fix(ci): remove redundant Playwright browser cache cleanup from workflows 2026-02-04 14:42:17 +00:00
Jeremy 138fd2a669 Merge pull request #647 from Wikid82/hotfix/ci
fix(ci): remove redundant image tag determination logic from multiple…
v0.18.3
2026-02-04 09:28:35 -05:00
Jeremy cc3a679094 Merge branch 'main' into hotfix/ci 2026-02-04 09:24:51 -05:00
GitHub Actions 73f6d3d691 fix(ci): remove redundant image tag determination logic from multiple workflows 2026-02-04 14:24:11 +00:00
Jeremy 8b3e28125c Merge pull request #646 from Wikid82/hotfix/ci
fix(ci): standardize image tag step ID across integration workflows
v0.18.2
2026-02-04 09:17:09 -05:00
Jeremy dacc61582b Merge branch 'main' into hotfix/ci 2026-02-04 09:16:53 -05:00
GitHub Actions 80c033b812 fix(ci): standardize image tag step ID across integration workflows 2026-02-04 14:16:02 +00:00
Jeremy e48884b8a6 Merge pull request #644 from Wikid82/hotfix/ci
fix invalid CI files
v0.18.1
2026-02-04 09:11:12 -05:00
Jeremy 0519b4baed Merge branch 'main' into hotfix/ci 2026-02-04 09:10:32 -05:00
GitHub Actions 8edde88f95 fix(ci): add image_tag input for manual triggers in integration workflows 2026-02-04 14:08:36 +00:00
GitHub Actions e1c7ed3a13 fix(ci): add manual trigger inputs for Cerberus integration workflow 2026-02-04 13:53:01 +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 54382f62a1 Merge pull request #640 from Wikid82/development
fix: crowdsec web console enrollment
v0.18.0
2026-02-04 05:33:05 -05: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
GitHub Actions 4a2c3b4631 refactor(docker-build): improve Docker build command handling with array arguments for tags and labels 2026-02-04 04:55:58 +00:00
GitHub Actions ac39eb6866 refactor(docker-build): optimize Docker build command handling and improve readability 2026-02-04 04:50:48 +00:00