The CLI code used a single function from the `golang.org/x/crypto/ssh/terminal`
package (`terminal.IsTerminal`) which is just a wrapper around the
`golang.org/x/term` package's `term.IsTerminal` function. Replacing this
call prevents unnecessary and non-FIPS crypto functions from being pulled
into the binary.
Backport of #24306
closes: #24037
(cherry picked from commit
|
||
---|---|---|
.. | ||
cli | ||
main.go |