Skip to content

Develop#38

Merged
saadqbal merged 4 commits intomainfrom
develop
Mar 6, 2026
Merged

Develop#38
saadqbal merged 4 commits intomainfrom
develop

Conversation

@saadqbal
Copy link
Copy Markdown
Contributor

@saadqbal saadqbal commented Mar 6, 2026

Note

Medium Risk
Changes the on-node hostPath location for MySQL/logs/data volumes, which can affect upgrades by pointing new PVs at a different directory and potentially stranding existing data. Windows installer tweaks are lower risk but touch core installation flow for Docker/Helm/tooling detection.

Overview
Helm chart update bumps client chart/app version to 1.0.3 and changes hostPath PV directories for logs, MySQL, and shared data to be scoped per Helm release (e.g., /tracebloc/{{ .Release.Name }}/...) instead of using shared global paths.

Installer reliability improvements (Windows + bash summary) harden Docker-running detection, make Helm installation fall back to downloading the binary when winget isn’t available/doesn’t work, and adjust several winget/kubectl/helm invocations to capture output consistently. The post-install summary now also prints the workspace data path as /tracebloc/<workspace>.

Written by Cursor Bugbot for commit 0fed58f. This will update automatically on new commits. Configure here.

saadqbal added 4 commits March 6, 2026 16:44
- Updated various command invocations to assign output to `$null` instead of redirecting to `$null`, enhancing code clarity and consistency across the script.
- Enhanced the method for checking if Docker is running by using output formatting to improve reliability and readability of the code.
- Added functionality to download and install Helm directly if not found via winget, improving installation reliability.
- Implemented version lookup and extraction of the Helm binary based on system architecture.
- Updated logging for better clarity during the installation process.
- Bumped Helm chart version and appVersion to 1.0.3 for consistency.
- Modified Persistent Volume Claim (PVC) paths in logs-pvc.yaml, mysql-storage-pvc.yaml, and shared-images-pvc.yaml to include the release name, enhancing path uniqueness.
- Added data path hint in install-k8s.ps1 and summary output in summary.sh for better user guidance.
@saadqbal saadqbal merged commit f43f2d4 into main Mar 6, 2026
11 checks passed
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Copy-Item "$helmExtract\windows-$arch\helm.exe" "$TOOL_DIR\helm.exe" -Force
Remove-Item $helmZip -Force -ErrorAction SilentlyContinue
Remove-Item $helmExtract -Recurse -Force -ErrorAction SilentlyContinue
RefreshPath
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Helm binary download lacks checksum verification

Medium Severity

The new Helm direct-download fallback downloads and installs the binary without any checksum verification. The existing k3d download code in the same function verifies a SHA-256 checksum (and calls Err on mismatch), but the new Helm download path extracts and copies helm.exe directly from the zip with no integrity check. Helm publishes .sha256sum files alongside its release artifacts, so verification is straightforward and consistent with the k3d pattern.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant