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

  1. Copy the zowe.config.json (see below) into a new workspace
  2. Open the Zowe Explorer on the above workspace
  3. 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

image

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)

Most upvoted comments

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?