Skip to content

fix(installer): enforce a TLS 1.2 minimum in install.ps1 #166

Closed

Description

@nc9

Part of #164.

install.ps1 never sets [Net.ServicePointManager]::SecurityProtocol. Under Windows PowerShell 5.1 (the default powershell.exe, which our own docs one-liner and the install.sh Windows hint both invoke), .NET can attempt TLS 1.0/1.1 on older Windows builds. GitHub's endpoints require TLS 1.2+, so besides the downgrade exposure this makes the installer fail outright on those machines with an opaque connection error.

Add the standard floor before the first network call, OR-ing into the existing value so TLS 1.3 stays enabled where the OS offers it:

[Net.ServicePointManager]::SecurityProtocol = `
  [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12

Acceptance Criteria

  • install.ps1 enforces a TLS 1.2 minimum before any Invoke-RestMethod / Invoke-WebRequest call
  • TLS 1.3 remains available where the OS supports it (the assignment ORs, it does not replace)
  • the installer runs cleanly under both Windows PowerShell 5.1 and PowerShell 7+

Activity

  1. added
    bug
    P1
    size: XS
    security
    on Sep 1, 2026
  2. WilliamK112 commented on Sep 4, 2026

    @WilliamK112
    Contributor

    I would like to take this. I will add the TLS 1.2 flag before any installer network call while preserving every protocol already enabled, and add a contract test that pins both the OR semantics and ordering. I will validate the PowerShell parser plus the repository format, lint, typecheck, installer, and full test gates. AI assistance disclosure: I am using OpenAI Codex to help inspect, implement, and validate the change, and I will review the final diff and evidence.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1bugsecuritysize: XS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions