Skip to content

Commit 8b7f2d1

Browse files
committed
[*] increase new patroni user password complexity by default, fixes #41
1 parent 16d3ef0 commit 8b7f2d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $out = Get-LocalUser -Name $userName -ErrorAction SilentlyContinue
1919
if($null -eq $out)
2020
{
2121
Write-Host "--- Adding local user '$userName' for patroni service ---" -ForegroundColor blue
22-
$Password = -join ((65..90) + (97..122) | Get-Random -Count 8 | % {[char]$_})
22+
$Password = -join (("a".."z")+("1".."9")+("A".."Z")+("!"..".") | Get-Random -Count 8)
2323
$SecurePassword = ConvertTo-SecureString $Password -AsPlainText -Force
2424
New-LocalUser $userName -Password $SecurePassword -Description "Patroni service account"
2525
$ConfFile = 'patroni\patroni_service.xml'

0 commit comments

Comments
 (0)