Skip to content

Windows installer: one-client-per-machine guard misses unquoted/single-quoted clientId #200

Description

@saadqbal

Source

Bugbot finding (Medium) on PR #199 (the v1.4.5 promotion), in code introduced by #192 (Installer UX: one-per-machine guard). Deferred from the release and tracked here so it doesn't block v1.4.5.

Problem

The one-client-per-machine guard on Windows only recognizes an existing install's clientId when helm get values shows it in double quotes. Helm typically emits unquoted or single-quoted YAML, so an existing install is often invisible to the guard — the installer then proceeds with a different Client ID, defeating the one-client-per-machine protection.

Fix direction

Make the clientId detection tolerant of YAML quoting variants — match clientId: followed by an optional single/double quote around the value (e.g. clientId:\s*['"]?<value>['"]?), rather than requiring double quotes. Consider parsing helm get values -o json instead of regex-scraping the YAML, which sidesteps quoting entirely.

Acceptance

Severity

Medium — silent failure of a safety guard; can lead to two clients / a Client-ID mismatch on one machine. Not a release blocker for v1.4.5 (Windows-installer-only, guard-bypass not data-loss).

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions