-
Notifications
You must be signed in to change notification settings - Fork 28.7k
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
Cannot persist / load GitHub Authentication SignIn Token to macOS Ventura Beta 2 Keychain #152964
Comments
Following up on this, looking at the
|
I'm experiencing the same. Same log messages, also on the MacOS Beta. |
I have same issue. Any way for fix it? |
I tried to login with a different Macbook and transferring the token manually to the keychain -> That did not work. I tried to give VSCode full permission on the Keychain item -> That did not work. I expect that Apple did change some security related stuff in Ventura, therefore we might need to wait for a fix to get this sorted. :( |
I'm suspicious of this new Passkeys feature in Ventura: which mentions iCloud Keychain... I don't have a machine with Ventura on it, but we use http://github.com/atom/node-keytar for this interaction so we should get an issue going there. |
FYI @sergiou87 we may need some help with this one. |
I was seeing the same thing on Ventura. Troubleshooting attempts that didn't work:
|
if you have nodejs installed, you can run this simple one-liner to see if the problem is how your keychain is setup:
This is using the following open source package: https://github.com/emacs-grammarly/keytar-cli What you should get is something like this: [
{
account: 'github.auth',
password: '....... longggg string ......'
}
]
If that succeeds, then the problem is possibly in vscode. If that does complain, then we'll need a fix in keytar itself. |
@TylerLeonhardt I can both get and set values with keytar-cli and they do show up in the Keychain Access utility. |
In addition to the error message initially reported in the "GitHub Authentication" output, I'm seeing this in "Log (main)":
|
Having the same behaviour as @rotu. Using suggested package alexanderniebuhr@Alexanders-MBP ~ % npx @emacs-grammarly/keytar-cli find-creds -s vscode-insidersvscode.github-authentication
[ { account: 'github.auth', password: 'ASD' } ]
alexanderniebuhr@Alexanders-MBP ~ % npx @emacs-grammarly/keytar-cli set-pass -s vscode-insidersvscode.github-authentication -a github.auth -p TEST
Successfully set the password for github.auth@vscode-insidersvscode.github-authentication!
alexanderniebuhr@Alexanders-MBP ~ % npx @emacs-grammarly/keytar-cli find-creds -s vscode-insidersvscode.github-authentication
[ { account: 'github.auth', password: 'TEST' } ] Even using the package import keytar from "keytar"
const a = await keytar.findCredentials("vscode-insidersvscode.github-authentication")
console.log(a)
await keytar.setPassword("vscode-insidersvscode.github-authentication", "github.auth", "TEST2")
const b = await keytar.findCredentials("vscode-insidersvscode.github-authentication")
console.log(b) alexanderniebuhr@Alexanders-MBP playground % node keytar.js
[ { account: 'github.auth', password: 'TEST' } ]
[ { account: 'github.auth', password: 'TEST2' } ] Therefore I really think there is some issue in VSCode, actually I don't think the issue would be that it can't save or read. I think there is a problem prompting or using the root password. Therefore it is not authenticated to do so. Can we get some higher priority on this? |
@TylerLeonhardt I can't even figure out how to debug this. Building and running VSCode from source does not load the |
@rotu it's because there's nothing in OSS that uses auth. You can debug it by either side-loading a GH extension (download VSIX on the marketplace and then in OSS go to the extension pane and hit the three dots to Install from VSIX) Or just add a SecretStorage usage in any of the built in extensions. Secrets is in the ExtensionContext |
So far no dice. It seems the OSS version works just fine with persisting authentication. Unlike the distributed VSCode (both stable and insiders), OSS is able to write to the system keychain. |
@rotu so using a version you built from source of this repo does work, while the distributed version (which I thought is also built from the repo) does not work? |
@alexanderniebuhr that is correct. |
Knowing this, I wonder if this could be a problem with App Signing. Since the distributed one is probably signed differently. @TylerLeonhardt, what do you think? Any update from VSCode Team? Can you post a link to the newest exploration build, since the latest insider is 2 days old? |
This comment was marked as outdated.
This comment was marked as outdated.
Okay, I found an interesting workaround. Using the x64 Intel (running through rosetta 2) published version of VSCode stable, does save and load successfully from the keychain. @rotu @phyllisstein @und3fined could you verify that for your case too? If that is true, it seams that there is something broken with the Apple Silicon version :/ |
Also, if you're in need of a workaround, the Settings Sync Extension appears to still work |
TLDR: this is a bug in the closed source part of VSCode. Alright @TylerLeonhardt I made some progress but I think I'm at the end of my debugging abilities, and the problem lies in the native vscode/src/vs/workbench/api/browser/mainThreadSecretState.ts Lines 83 to 84 in c22cb87
|
@alexanderniebuhr thank for workaround. It's auth worked, but VS Code sloooowwww with Intel version. |
@alexanderniebuhr @und3fined, I found an even better workaround!
|
@deepak1556 @TylerLeonhardt actually can't verify the latest insider from Monday. (others report this too) I actually wonder why you have closed an issue, which is not verified fixed. I suggest reopening this issue and waiting for verification of users before closing it again. |
@alexanderniebuhr thanks for verifying, we are aware of the issue as well. Currently tracked in #154762 The issue was closed as part of fix in the module and another side effect is for our release bot to track fixes shipped in a certain insider version so that certain github actions can work https://github.com/microsoft/vscode-github-triage-actions. Issue will be closed to signal for verification and if issue persists then it will be reopened for further investigation. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Fix will be coming for both in a new insider build tomorrow! |
@deepak1556 @TylerLeonhardt Just verified with newest release, and it seems to work.
|
Any ETA on this coming to stable? @deepak1556 |
Problem fixed with Sync with Github account. |
Are you still seeing this? Because I thought the same at first too, but now it seems intermittent, as it at least stays logged in for longer periods of time now, regardless of how many times VSCode is (re)opened. |
@gjsjohnmurray Is this solved in the latest insider build? |
@rstolpe that's what the verified and Insiders-released labels indicate. |
Issue Type: Bug
Using the latest macOS 13.0 Beta (22A5286j), I experience an issue / bug that reloading Window or restarting logs me out of all the extensions, e.g. Copilot, Settings Sync, Github Issues & Pull Request.
VS Code version: Code - Insiders 1.69.0-insider (668c538, 2022-06-23T05:16:19.393Z)
OS version: Darwin arm64 22.0.0
Restricted Mode: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Extensions (16)
(4 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: