You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When launched, the application freezes and does not prompt user for a password.
This happens whenever entering password is expected from the user. For example these commands:
It works just fine when password is passed from stdin or from COSIGN_PASSWORD environment variable.
It seems that this is caused by golang.org/x/term module that is being used to read password from terminal, but this module does not support Windows. See module description:
"Package term provides support functions for dealing with terminals, as commonly found on UNIX systems. "
My environment
Windows 11 (21H2 - build 22000.194), Windows 10 (21H1 - build 19043.1237)
cosign v1.2.1
Windows Terminal 1.10.2714.0, native cmd.exe
The text was updated successfully, but these errors were encountered:
stat, _:=os.Stdin.Stat()
if (stat.Mode() &os.ModeCharDevice) ==0 {
fmt.Println("data is being piped to stdin")
} else {
fmt.Println("stdin is from a terminal")
}
Issue description
When launched, the application freezes and does not prompt user for a password.
This happens whenever entering password is expected from the user. For example these commands:
cosign generate-key-pair
cosign sign --key cosign.key ...
It works just fine when password is passed from stdin or from COSIGN_PASSWORD environment variable.
It seems that this is caused by golang.org/x/term module that is being used to read password from terminal, but this module does not support Windows. See module description:
"Package term provides support functions for dealing with terminals, as commonly found on UNIX systems. "
My environment
The text was updated successfully, but these errors were encountered: