-
Notifications
You must be signed in to change notification settings - Fork 27
[next] Secure credential handling for ProfileInfo API #579
Conversation
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
This is not a comment on the implementation of this PR, but my topic is closely related so it seems appropriate to hold a conversation here, even if the result is a separate issue or story.
|
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
It would be possible to determine if an argument came from a base profile by looking at its
Fernando's PR raised some questions around this:
I believe we return all such arguments and leave it up to the consumer (or the
The behavior of merging args in certain cases seems unclear at this point since we have questions around it, so I think adding tests would help to better define the behavior. |
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
I think the outstanding questions from this PR have been captured in #568 (comment) and zowe/zowe-cli#1926. Trying to figure out now why so many integration tests in this PR have started failing. EDIT: The failing tests have now been resolved. |
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
Codecov Report
@@ Coverage Diff @@
## profInfo-for-next zowe/imperative#579 +/- ##
=====================================================
+ Coverage 85.30% 85.40% +0.10%
=====================================================
Files 182 183 +1
Lines 9201 9285 +84
Branches 1681 1708 +27
=====================================================
+ Hits 7849 7930 +81
- Misses 1348 1351 +3
Partials 4 4
Continue to review full report at Codecov.
|
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
Kudos, SonarCloud Quality Gate passed! |
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.
This looks good.
I think that all remaining concerns about credential handling are bigger than this story, and they should be handled in some future, prioritized, scheduled story.
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!
ProfileCredentials
class to handle initialization of CredentialManagerrequireKeytar
property to IProfOpts so that VS Code extensions can use a custom Keytar modulesecure
property to IProfArgAttrs for secure arguments. When set to true,argValue
is left undefined untilProfileInfo.loadSecureArg
is called, so that loading of sensitive data is delayed. This may resolve Secure credentials - Extensions that are secure by default zowe-cli#957.ImperativeLogger
in ProfileInfo constructor if one already exists (fixes [next] Don't reinitialize Imperative logger in ProfileInfo #577, thanks to @gejohnston for contributing this fix).