-
Notifications
You must be signed in to change notification settings - Fork 88
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
How to access a root untyped profile using profInfo.getAllProfiles? #2185
Comments
Thank you for creating a bug report. |
@davidkjackson54 Thanks for reporting this! We plan to enhance the await profInfo.updateProperty({ profileName: "D001", profileType: null, property: "password", value: "XXX" }); |
Sadly that isn’t going to help in any great way. For the VSCode user I want to offer a webview that shows the existing values and allow the user to over type. |
Would the desired behavior be a method that returns an array of all secure fields defined in the following format?
|
If we use secureFields and we are provided the argValue, argType and argName - that would suffice. I will be able to validate that an entered value is correct - if it is argType user I can ensure that it is a valid TSO format. If for example rejectunauthorized were a secure field and therefore presented by secureFields , I can ensure that the field is treated as a Boolean and validated as such. |
There seem to be 3 related fixes/enhancements which should probably be tracked as separate issues:
|
I think that probably makes sense . |
I have a VSCode Explorer extension where I allow the user to manage credentials.
This works fine for the instance whereby the secureArgs are present in the system profile - or defined in the default base profile.
However, there is an article from the zowe folk - https://medium.com/zowe/password-management-for-zowe-cli-profiles-c57f64d1fe88
suggesting that the preferred method is to not use the base profile but instead specify a top level root profile that is untyped.
Something like this:
SecureArgs are present in the top level but also in a system profile to allow the user to specifically enter credentials for that system.
The problem arises in that there seems to be no obvious method in a VSCode extension to get that top level untyped profile . I use profInfo.readProfilesfromDIsk followed by profInfo.getAllProfiles but you can only retrieve typed profiles.
There doesn't seem to be any way of retrieving that top level untyped profile - or indeed know if such a top level profile exists.
Equally how do I update an untyped profile as profInfo.,updateProperty takes in propOpts one of which iso the profile name - so won't work for an untyped profile.
The text was updated successfully, but these errors were encountered: