HomeDefectsLIN1022-3665
Fixed

LIN1022-3665 : setup: The ssh passphrase not masked when setup the project

Created: Mar 17, 2023    Updated: Apr 24, 2023
Resolved Date: Apr 19, 2023
Found In Version: 10.22.33.5
Fix Version: 10.22.33.8
Severity: Standard
Applicable for: Wind River Linux LTS 22
Component/s: Production Installation

Description

1) git clone --branch=WRLINUX_10_22_LTS ssh://git@lxgit.wrs.com/wrlinux-x
2) ./setup.sh --all-layers --dl-layers --accept-eula=yes
Initialized empty Git repository in /buildarea1/myu2/wr_build/test/bin/buildtools.git/.git/
Searching for buildtools-standalone-10.21.29a.1...
Enter passphrase for key '/folk/myu2/.ssh/id_ed25519': builder
[snip]

Workaround

It turned out that there is a bug in wrlinux-x script setup_askpass. following change in line 143 helps address the issue :

if question.startswith('Password') or question.endswith('password: '):
to

if 'password' in question.lower() or 'passphrase' in question.lower():