Skip to content

v1.0.0.1 — non-interactive deploy fix

Choose a tag to compare

@jasonulbright jasonulbright released this 09 Jun 10:13
· 13 commits to master since this release

Patch release fixing a deploy-blocking crash reported by users.

Fixed

  • Non-interactive deploy crash. Install-HomeLab (and the lab-wide resolver in Get-LabCredential) tried to predict whether the host could prompt for a password using $Host.UI.RawUI. On non-interactive hosts (scriptblock / Start-Job / remoting / CI) RawUI is non-null yet the host cannot prompt, so Read-Host threw a cryptic "host program does not support user interaction" error mid-deploy. The prompt now runs only when stdin is not redirected, and is wrapped so a host that cannot prompt surfaces the actionable "lab password is required" message instead of a raw host exception.
  • Default lab passwords restored in config.psd1. The published default password (AdminPass and the three service-account passwords) was missing, forcing a password prompt on a default deploy. Restored so a no-argument deploy runs without interaction, matching the documented "default passwords are published in source control" contract.

Upgrade

Pull the latest, or for an affected v1.0.0 install, either update config.psd1 with the default passwords or supply one at deploy time:

Install-HomeLab -LabPassword (ConvertTo-SecureString 'P@ssw0rd!' -AsPlainText -Force)
# or: $env:HOMELAB_PASSWORD = 'P@ssw0rd!'

Full Changelog: v1.0.0...v1.0.0.1