Skip to content

feat(architecture): Harden state management and WireGuard config generation#6

Merged
wallydz merged 1 commit intovpnht-rewritefrom
ai/architecture-20260221
Feb 21, 2026
Merged

feat(architecture): Harden state management and WireGuard config generation#6
wallydz merged 1 commit intovpnht-rewritefrom
ai/architecture-20260221

Conversation

@wallydz-bot
Copy link

@wallydz-bot wallydz-bot bot commented Feb 21, 2026

This PR addresses high-risk tech debt identified in the VPNht Tauri rewrite:

Changes

  1. State Management

    • Added pending flag to useConnectionStore to prevent race conditions in connect/disconnect.
  2. WireGuard Config Generation

    • Fail fast if wg tools are missing or keys cannot be generated (no more placeholder keys).

Report

See AI_REPORTS/architecture.md for the full architecture review and production hardening checklist.

Risk

  • High: Race conditions in connection state.
  • Critical: Placeholder WireGuard keys.

Testing

  • Manual testing of connect/disconnect flow.
  • Verified wg tool detection.

@wallydz wallydz merged commit 4061abb into vpnht-rewrite Feb 21, 2026
6 of 20 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

Development

Successfully merging this pull request may close these issues.

1 participant