zowe-explorer-vscode: [next] Custom secure properties not loaded
Describe the bug
The ZE extension wonβt load a profile (i.e. fails to validate) when provided with a team config that has a profile required property (host, port) in the secure array.
To Reproduce
- Copy the
zowe.config.json(see below) into a new workspace - Open the Zowe Explorer on the above workspace
- Profile gets automatically added, but itβs practically unusable π’
{
"$schema": "./zowe.schema.json",
"profiles": {
"ibmzosmf": {
"type": "zosmf",
"properties": {
"basePath": "/ibmzosmf/api/v1"
}
},
"base": {
"type": "base",
"properties": {
"port": 1234,
"rejectUnauthorized": true,
"tokenType": "apimlAuthenticationToken"
},
"secure": [
"host",
"tokenValue"
]
}
},
"defaults": {
"zosmf": "ibmzosmf",
"base": "base"
},
"autoStore": true
}
Expected behavior
All properties are loaded regardless of whether or not they are stored securely
Screenshots

Desktop (please complete the following information):
- OS: Windows
- Zowe Explorer Version: #1637
- (Optional) Zowe CLI Version:
- (Optional) Are you using Secure Credential Store?
Additional context
Using a VSIX from #1637
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 25 (16 by maintainers)
As a result of the tests I have made , I came up with a conclusion that the Issue is no longer exists.
Any securely stored profile attribute on schema can be loaded under the the scenarios I have tested are : base profile, nested profile, profile that overrides base profile and regular profile.
If you can reproduce this issue please provide the steps to repro so I can test again.
Awaiting for inputs to make a final decision about this issue β¦
Iβm considering disabling the auto-close-issue bot π
I believe so, π
Will do! π
That could be a great enhancement to add after v2 goes out! π In the past we have only prompted for user/pass but it would be cool to prompt for missing items other than that.
Maybe we can add the enhancement tag and add it to the PI Planning list?