Skip to content

fix(infra): harden healthcheck, rollback and env validation scripts - #1606

Merged
phertyameen merged 1 commit into
BlockHaven-Labs:mainfrom
Ummi-001:feature/harden-infra-scripts
Nov 21, 2026
Merged

phertyameen merged 1 commit into
BlockHaven-Labs:mainfrom
Ummi-001:feature/harden-infra-scripts

Conversation

@Ummi-001

Copy link
Copy Markdown
Contributor

Summary

  • healthcheck.sh: document the strictly single-target default and add --all-environments with per-environment URL variables and SKIP reporting.
  • rollback.sh: require a validated --network, verify the active kubectl context (EXPECTED_KUBE_CONTEXT / --skip-context-check), and make --dry-run report the target plan and affected resources.
  • validate-env.sh --infra-env / validate-infra-env.sh: validate infra-level env files without sourcing them, with safe parsing and CRLF handling.

Test plan

  • bash -n passes on all modified scripts.
  • healthcheck.sh --all-environments --json emits 9 SKIPs and exits 0.
  • rollback.sh --network prod exits 2 with a validation error; --dry-run --skip-context-check exits 0.
  • Infra env validation reports the expected missing vars and succeeds with a filled file.
  • shellcheck is unavailable locally.

Closes #1498
Closes #1499
Closes #1500
Closes #1501

- Add --all-environments to healthcheck.sh and document its strictly single-target default, with per-environment URL variables and SKIP reporting.
- Require a validated --network, verify the active kubectl context against it, and make --dry-run report the target plan and affected resources.
- Let validate-infra-env.sh validate an infra-level .env file without sourcing it, exposed via validate-env.sh --infra-env.

Closes BlockHaven-Labs#1498
Closes BlockHaven-Labs#1499
Closes BlockHaven-Labs#1500
Closes BlockHaven-Labs#1501
@vercel

vercel Bot commented Nov 20, 2026

Copy link
Copy Markdown

@Ummi-001 is attempting to deploy a commit to the aminubabafatima8-gmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Nov 20, 2026

Copy link
Copy Markdown

@Ummi-001 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@phertyameen
phertyameen merged commit 63f5cdb into BlockHaven-Labs:main Nov 21, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants