question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[next] Custom secure properties not loaded

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:25 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
KutluOzel-bcommented, Oct 6, 2022

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 …

1reaction
zFernand0commented, Aug 10, 2022

I’m considering disabling the auto-close-issue bot 😋

Read more comments on GitHub >

github_iconTop Results From Across the Web

spring boot security properties not working - Stack Overflow
i am not able to access /beans endpoint after adding the security properties in application.properties. my all files are like this.
Read more >
Secure Configuration Properties | MuleSoft Documentation
Create a secure configuration properties file. Define secure properties in the file by enclosing the encrypted values between the sequence ![value] .
Read more >
How to Configure and Use Secure Properties In Mule 4 - DZone
Double click on any key. It will open a new window. Now press the button Encrypt. In the next window specify the 'algorithm'...
Read more >
24. Externalized Configuration - Spring
Profile-specific properties are loaded from the same locations as standard application.properties , with profile-specific files always overriding the non- ...
Read more >
Reloading Properties Files in Spring - Baeldung
If we want to reload the properties loaded through an Environment instance, we have to extend the PropertySource, and then use ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found