Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: eliminate use of golang.org/x/crypto/ssh/terminal package #24047

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

gwossum
Copy link
Member

@gwossum gwossum commented Jan 17, 2023

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

(cherry picked from commit 955f78a)

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 955f78a)
@gwossum gwossum marked this pull request as ready for review January 17, 2023 22:58
Copy link
Contributor

@davidby-influx davidby-influx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks the same as the original!

@gwossum gwossum merged commit 7c53a4c into 1.11 Jan 17, 2023
@gwossum gwossum deleted the gw_1.11_backport_24036 branch January 17, 2023 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants