Skip to content

v2.0.1-26

Pre-release
Pre-release

Choose a tag to compare

@joaomoreno joaomoreno released this 09 Apr 07:25
d64bfc3
feat: AgentRC Readiness Scanner Web App (#90)

* feat: add webapp with report rendering, Docker support, and CI/CD

* fix: update Trivy action version and improve Dockerfile for backend dependencies

* chore: initialize frontend package with vitest for testing

* fix: update Dockerfile to ignore scripts during npm install and simplify docker-compose context

* fix: harden frontend tests with dedicated vitest config and static imports

* fix: make Bicep secrets conditional for empty GH token

* fix: update achievedLevel validation to accept 0 and adjust related tests

* fix: enhance report validation and rendering by adding safe class handling for status, impact, and effort

* fix: improve report validation and enhance frontend theme handling

* fix: enhance share button functionality and add tooltip for better user guidance

* feat: add Azure Container Registry resource and update container image handling

* fix: update storage account naming convention to ensure uniqueness and lowercase formatting

* fix: update container image handling and improve resource naming conventions for Azure deployment

* fix: refine rate limiter to only skip OPTIONS requests and update allowed signal status in report rendering

* fix: rename GitHub token parameter for consistency in scanning configuration

* fix: remove existing env storage before Bicep deploy (Container Apps PUT limitation)

* fix: use ARM REST API for storage removal with propagation delay

* fix: delete container app before storage to allow Bicep recreation

* fix: import GHCR image into ACR, add GHCR auth for security scan, retry smoke tests

- Image was pushed to GHCR but Bicep pulls from ACR  added az acr import steps
- Security scan lacked GHCR auth  added docker/login-action + packages:read
- Smoke test had no retries after cold-start restarts  added retry loop

* fix: enhance report validation for areaReports and policies, add comprehensive tests

* fix: improve error handling in SPA route and enhance report validation logic

* feat(apm): add APM configuration checks and integrate into readiness criteria

* feat(report-validator): enhance validation logic for pillars, levels, and criteria arrays
fix(report): update report rendering logic to handle edge cases in passed and total values
style(progress): replace progress bar with spinner for better UX during repository cloning
fix(config): remove appInsightsConnectionString from public config response
fix(Dockerfile): ensure core package symlink is recreated after removal
fix(bicep): disable admin user for Azure Container Registry and add AcrPull role assignment
chore(package-lock): update dependencies and remove unnecessary dev dependencies

* fix: remove duplicate APM criteria already merged in main via PR #92

* fix: improve URL parsing and handle empty segments in owner/repo format
fix: resolve frontend path using fileURLToPath for better compatibility
fix: enhance theme toggle functionality to handle localStorage errors gracefully

* refactor: update build process and add esbuild configuration

- Changed the start script to run the bundled server from the dist directory.
- Added a build script to bundle the application using esbuild.
- Introduced a new esbuild configuration file to handle the bundling of the server.
- Updated dependencies to include esbuild and adjusted the location of @agentrc/core.

* fix(scanner): improve error handling for clone timeout and sanitize error messages

* fix(Dockerfile): correct paths for backend files and improve directory structure

* fix(report-validator): enhance validation and sanitization of criteria fields to prevent XSS
fix(report): use safe number handling for app and area summaries in report rendering
fix(Dockerfile): include node_modules from deps for backend build

* feat(storage): add report cleanup functionality and integrate with server startup

* fix(Dockerfile): simplify directory creation and ownership setup
fix(cleanup): streamline error handling in removeTempDir function

* fix(bicep): enforce constraints on name prefix parameters for resource naming
fix(scanner): encode GitHub token in clone URL to prevent issues with special characters