Skip to content

Remove CredentialsService & keytar #192224

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

Merged
merged 4 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ jobs:
- name: Compile Integration Tests
run: yarn --cwd test/integration/browser compile

# This is required for keytar unittests, otherwise we hit
# https://github.com/atom/node-keytar/issues/76
# This is required for SecretStorage unittests
- name: Create temporary keychain
run: |
security create-keychain -p pwd $RUNNER_TEMP/buildagent.keychain
Expand Down
7 changes: 0 additions & 7 deletions build/.moduleignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,6 @@ kerberos/src/**
kerberos/node_modules/**
!kerberos/**/*.node

keytar/binding.gyp
keytar/build/**
keytar/src/**
keytar/script/**
keytar/node_modules/**
!keytar/**/*.node

node-pty/binding.gyp
node-pty/build/**
node-pty/src/**
Expand Down
4 changes: 2 additions & 2 deletions build/darwin/create-universal-app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/darwin/create-universal-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async function main(buildDir?: string) {
fs.writeFileSync(productJsonPath, JSON.stringify(productJson, null, '\t'));

// Verify if native module architecture is correct
const findOutput = await spawn('find', [outAppPath, '-name', 'keytar.node']);
const findOutput = await spawn('find', [outAppPath, '-name', 'kerberos.node']);
const lipoOutput = await spawn('lipo', ['-archs', findOutput.replace(/\n$/, '')]);
if (lipoOutput.replace(/\n$/, '') !== 'x86_64 arm64') {
throw new Error(`Invalid arch, got : ${lipoOutput}`);
Expand Down
2 changes: 0 additions & 2 deletions extensions/github-authentication/src/common/keychain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

// keytar depends on a native module shipped in vscode, so this is
// how we load it
import * as vscode from 'vscode';
import { Log } from './logger';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ module.exports = withBrowserDefaults({
entry: {
extension: './src/extension.ts',
},
externals: {
'keytar': 'commonjs keytar',
},
resolve: {
alias: {
'./node/crypto': path.resolve(__dirname, 'src/browser/crypto'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ const withDefaults = require('../shared.webpack.config');
module.exports = withDefaults({
context: __dirname,
entry: {
extension: './src/extension.ts',
},
externals: {
'keytar': 'commonjs keytar'
extension: './src/extension.ts'
}
});
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ suite('vscode - automatic language detection', () => {
"outDir": "../out/vs",
"target": "es2020",
"types": [
"keytar",
"mocha",
"semver",
"sinon",
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
"https-proxy-agent": "^2.2.3",
"jschardet": "3.0.0",
"kerberos": "^2.0.1",
"keytar": "7.9.0",
"minimist": "^1.2.6",
"native-is-elevated": "0.7.0",
"native-keymap": "^3.3.4",
Expand Down Expand Up @@ -118,7 +117,6 @@
"@types/gulp-svgmin": "^1.2.1",
"@types/http-proxy-agent": "^2.0.1",
"@types/kerberos": "^1.1.2",
"@types/keytar": "^4.4.0",
"@types/minimist": "^1.2.1",
"@types/mocha": "^9.1.1",
"@types/node": "18.x",
Expand Down
1 change: 0 additions & 1 deletion remote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"https-proxy-agent": "^2.2.3",
"jschardet": "3.0.0",
"kerberos": "^2.0.1",
"keytar": "7.9.0",
"minimist": "^1.2.6",
"native-watchdog": "^1.4.1",
"node-pty": "1.1.0-beta1",
Expand Down
Loading