-
Notifications
You must be signed in to change notification settings - Fork 92
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
feat: Use keyring
module from @zowe/secrets-for-zowe-sdk
to replace use of node-keytar
#2405
Conversation
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Timothy Johnson <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2405 +/- ##
==========================================
+ Coverage 92.79% 92.81% +0.02%
==========================================
Files 92 91 -1
Lines 9252 9251 -1
Branches 1919 1919
==========================================
+ Hits 8585 8586 +1
+ Misses 666 664 -2
Partials 1 1
☔ View full report in Codecov by Sentry. |
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM! 😋
will test later today 🥳
Checked this out with VS Code Insiders and the --disable-keytar option. LGTM. |
for those on a headless environment, you might want to take a look at:
If that does help, make sure that your {
"name": "Run Zowe Explorer VS Code Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}/packages/zowe-explorer", "--verbose"],
"outFiles": ["${workspaceFolder}/packages/zowe-explorer/out/**/*.js"],
"preLaunchTask": "build dev watch",
"smartStep": true,
"skipFiles": ["<node_internals>/**"],
"env": {
"DBUS_SESSION_BUS_ADDRESS": "unix:abstract=/tmp/dbus-AsdfasdF,guid=some-long-giud"
}
}, In order to avoid pushing this file to the repo, I created a quick branch that may help illustrate how we could handle this going forward. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming these changes, I was able to share credentials between the CLI and ZE in my remote SSH (headless) environment 🥳
LGTM! 😋
Thanks for testing & looking into the D-bus env. variable @zFernand0! Do you mind if I cherry-pick bb9f963 into this branch? I'll leave you as the commit author, of course 😋 |
Yeah, feel free. 😋 |
Signed-off-by: zFernand0 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @traeok!
The "Electron Helper (Plugin)" was unexpected 😄 Maybe it happened because I was running the extension in VS Code debugger? Regardless I don't think it matters because "Zowe" is in the message so it's clear what it is trying to access 👍
This comment was marked as outdated.
This comment was marked as outdated.
Signed-off-by: Trae Yelovich <[email protected]>
SonarCloud Quality Gate failed. 0 Bugs No Coverage information Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Proposed changes
This PR:
keyring
module from the new@zowe/secrets-for-zowe-sdk
node-keytar
in the codebase and testsnode-keytar
references to the newkeyring
moduleNote that tests will fail until the imperative PR (linked below) is merged and published.
Release Notes
Milestone: 2.10.0
Changelog: TBD
Types of changes
What types of changes does your code introduce to Zowe Explorer?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This checklist will be used as reference for both the contributor and the revieweryarn workspace vscode-extension-for-zowe vscode:prepublish
has been executed