-
Notifications
You must be signed in to change notification settings - Fork 87
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
[v2] ssh keypassphrase port from v3 #2232
Conversation
Signed-off-by: jace-roell <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2232 +/- ##
==========================================
+ Coverage 91.15% 91.24% +0.09%
==========================================
Files 638 638
Lines 19102 19142 +40
Branches 3926 3941 +15
==========================================
+ Hits 17413 17467 +54
+ Misses 1688 1674 -14
Partials 1 1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good, thanks for porting the changes @jace-roell! Left a few comments
Signed-off-by: jace-roell <[email protected]>
Signed-off-by: jace-roell <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks Jace for porting this over - I left a suggestion about a SonarCloud issue.
packages/imperative/src/rest/src/session/ConnectionPropsForSessCfg.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: jace-roell <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Zowe docs, the order of precedence for SSH commands is SSH key, then user & password:
When testing this PR locally if I've stored values for user and password in my base profile, and have an SSH profile that defines privateKey and contains keyPassphrase in the secure array, then I get prompted for a value for keyPassphrase as expected. But if I remove user and password from my base profile and leave keyPassphrase, then issue an SSH command, I am prompted for user and password which should not be needed.
I see the same behavior in Zowe V3, so not sure if this is actually an issue, and if so whether we want to handle it separately outside of this PR? 😋
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @jace-roell!
Sorry for the false alarm - after further discussion realized that the command behaves as expected, and my test environment was tainted by a global config file.
Quality Gate passedIssues Measures |
What It Does
Resolved bug that resulted in user not being prompted for a key passphrase if it is located in the secure credential array of the ssh profile. (port from v3)
Review Checklist
I certify that I have: