[next] Custom secure properties not loaded
See original GitHub issueDescribe 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
Issue Analytics
- State:
- Created 2 years ago
- Comments:25 (16 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub 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 😋