fix(agent/get-airgap.ps1): pin TLS 1.2/1.3 and fix TLS-classification regex (#961, #962) #33

Merged
amiryahaya merged 1 commit from fix/961-962-airgap-reference-copy into main 2026-09-23 14:47:03 +02:00
Owner

Byte-identical copy of the fix applied to the triton repo's
pkg/manageserver/ca/assets/get-airgap.ps1 (the real, go:embed'd,
genuinely-served air-gapped installer asset — see triton#1127). This
repo's agent/get-airgap.ps1 is a read-only reference copy per
CLAUDE.md, not the served artifact, but kept in sync here for
documentation accuracy.

Fixes applied

  • #961: both AuthenticateAsClient($RemoteHost) call sites
    switched to the 4-argument overload with an explicit Tls12 | Tls13
    floor.
  • #962: the TLS-failure classification regex narrowed to the
    actual, verified SslStream managed-layer rejection message,
    dropping the bare 'CA' alternative that matched
    "AuthenticateAsClient" itself.

$SCRIPT_VERSION bumped 1.0.1 → 1.0.2.

Testing

Verified byte-identical to the triton repo's already-tested,
already-fixed asset after copying. PowerShell AST parse clean;
PSScriptAnalyzer shows no new findings in the touched region.

🤖 Generated with Claude Code

Byte-identical copy of the fix applied to the triton repo's `pkg/manageserver/ca/assets/get-airgap.ps1` (the real, `go:embed`'d, genuinely-served air-gapped installer asset — see triton#1127). This repo's `agent/get-airgap.ps1` is a **read-only reference copy** per CLAUDE.md, not the served artifact, but kept in sync here for documentation accuracy. ## Fixes applied - **#961**: both `AuthenticateAsClient($RemoteHost)` call sites switched to the 4-argument overload with an explicit `Tls12 | Tls13` floor. - **#962**: the TLS-failure classification regex narrowed to the actual, verified `SslStream` managed-layer rejection message, dropping the bare `'CA'` alternative that matched `"AuthenticateAsClient"` itself. `$SCRIPT_VERSION` bumped 1.0.1 → 1.0.2. ## Testing Verified byte-identical to the triton repo's already-tested, already-fixed asset after copying. PowerShell AST parse clean; `PSScriptAnalyzer` shows no new findings in the touched region. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Byte-identical copy of the fix already applied to the triton repo's
pkg/manageserver/ca/assets/get-airgap.ps1 (the real, go:embed'd,
genuinely-served air-gapped installer asset -- see triton#1127).
This repo's copy is a read-only reference copy per CLAUDE.md, not the
served artifact, but kept in sync for documentation accuracy.

- #961: both AuthenticateAsClient($RemoteHost) call sites switched to
  the 4-argument overload with an explicit Tls12|Tls13 floor.
- #962: the TLS-failure classification regex narrowed to the actual,
  verified SslStream managed-layer rejection message, dropping the
  bare 'CA' alternative that matched "AuthenticateAsClient" itself.

$SCRIPT_VERSION bumped 1.0.1 -> 1.0.2. Verified byte-identical to the
triton repo's fixed asset after copying.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
primatekuntech/triton-install!33
No description provided.