Skip to content

Commit

Permalink
Support new ssh keys
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcnunes committed Mar 23, 2021
1 parent 39cc562 commit 62c0581
Show file tree
Hide file tree
Showing 18 changed files with 249 additions and 25 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:

env:
redshift-version: redshift
SSH_HOST: localhost

strategy:
matrix:
Expand Down Expand Up @@ -56,6 +57,9 @@ jobs:
- name: Create SQLServer Container
run: docker run --rm -d --name sqlserver -p 1433:1433 -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=Password12!" -e "MSSQL_COLLATION=${{ matrix.sqlserver-collation }}" -v ${GITHUB_WORKSPACE}/spec/databases/sqlserver/schema:/docker-entrypoint-initdb.d mcr.microsoft.com/mssql/server:2017-latest

- name: Create OpenSSH-Server Container
run: docker run --rm -d --name openssh-server -p 2222:2222 -e "DOCKER_MODS=linuxserver/mods:openssh-server-ssh-tunnel" -e "PASSWORD_ACCESS=true" -e "USER_PASSWORD=password" -e "PUBLIC_KEY_DIR=/ssh_files/pub" -v ${GITHUB_WORKSPACE}/spec/ssh_files:/ssh_files ghcr.io/linuxserver/openssh-server

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
Expand Down
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ It will bring up some databases such as MySQL and PostgreSQL and run all the tes
docker-compose run --rm test
```

Or to start the container and run the test command manually from there:

```shell
docker-compose run --rm test bash
npm test
```

#### Without Docker

You will need to bring up all the databases then run the tests through:
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

The common code used by all sqlectron clients.

> Requires node 10 or higher.
> Requires node v10 or higher.
> For ed25519 ssh support it requires node v12.
## How to pronounce

Expand Down
32 changes: 27 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,40 @@ services:
ports:
- 7000 # cluster
- 9042 # native
ports:
- 9042:9042

test:
image: node:10.15.0
image: node:12.21.0
command: npm test
working_dir: /usr/src/app
environment:
DB_ADAPTERS: mysql,postgresql,cassandra
MYSQL_ENV_MYSQL_USER: root
MYSQL_ENV_MYSQL_PASSWORD: password
MYSQL_HOST: mysql
SSH_HOST: openssh-server
volumes:
- .:/usr/src/app
links:
- mysql:mysql
- postgres:postgres
- cassandra:cassandra
- /usr/src/app/node_modules
depends_on:
- mysql
- postgres
- cassandra
- openssh-server

openssh-server:
image: ghcr.io/linuxserver/openssh-server
environment:
DOCKER_MODS: linuxserver/mods:openssh-server-ssh-tunnel
PASSWORD_ACCESS: 'true'
USER_PASSWORD: password
USER_NAME: sqlectron
PUBLIC_KEY_DIR: /ssh_files/pub
ports:
- 2222:2222
restart: unless-stopped
depends_on:
- mysql
volumes:
- ./spec/ssh_files:/ssh_files
16 changes: 8 additions & 8 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"portfinder": "^1.0.28",
"sql-query-identifier": "^1.1.0",
"sqlite3": "^5.0.1",
"ssh2": "^0.5.0"
"ssh2": "^0.8.9"
},
"devDependencies": {
"@masterodin/publisher": "^0.7.0",
Expand Down
2 changes: 1 addition & 1 deletion spec/databases/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const mysql = new ConnectionString(process.env.MYSQL_DSN, {
user: 'root',
password: 'Password12!',
path: ['sqlectron'],
hosts: [{ name: 'localhost', port: 3306 }],
hosts: [{ name: process.env.MYSQL_HOST || 'localhost', port: 3306 }],
});
const mariadb = new ConnectionString(process.env.MARIADB_DSN, {
user: 'root',
Expand Down
82 changes: 81 additions & 1 deletion spec/db.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import path from 'path';
import { execSync } from 'child_process';
import chai, { expect } from 'chai';
import chaiAsPromised from 'chai-as-promised';
import config from './databases/config';
Expand All @@ -8,7 +10,7 @@ import { clearSelectLimit, setSelectLimit } from '../src/database';
import { versionCompare } from '../src/utils';
import type { Adapter } from '../src/adapters';
import type { Database } from '../src/database';
import type { Server } from '../src/server';
import type { Server, ServerConfig } from '../src/server';

chai.use(chaiAsPromised);

Expand Down Expand Up @@ -54,6 +56,8 @@ describe('db', () => {
const dbSchema = dbSchemas[dbAdapter];

describe(dbAdapter, () => {
const database = config[dbAdapter].database

describe('.connect', () => {
it(`should connect into a ${dbAdapter} database`, () => {
const serverInfo = {
Expand Down Expand Up @@ -94,6 +98,82 @@ describe('db', () => {

return expect(dbConn.connect()).to.not.be.rejected;
})

describe('connect with ssh', () => {
const assertSSHConnection = async (dbConn: Database) => {
await dbConn.connect();

// assert beyond a simplly opening the connection,
// but also ensure it can run a query
const databases = await dbConn.listDatabases();
expect(databases.length).to.be.above(0);
};

it('should connect into server using ssh with password', () => {
const serverInfo: ServerConfig = {
...config[dbAdapter],
name: dbAdapter,
adapter: dbAdapter,
};

serverInfo.ssh = {
host: process.env.SSH_HOST,
port: 2222,
user: 'sqlectron',
password: 'password',
};

const serverSession = db.createServer(serverInfo);
const dbConn = serverSession.createConnection(database);

return expect(assertSSHConnection(dbConn)).to.not.be.rejected;
});

const keyTypes = ['rsa', 'ecdsa', 'ed25519']

for (const keyType of keyTypes) {
it(`should connect into server using ssh with private key of type ${keyType}`, () => {
const serverInfo: ServerConfig = {
...config[dbAdapter],
name: dbAdapter,
adapter: dbAdapter,
};

serverInfo.ssh = {
host: process.env.SSH_HOST,
port: 2222,
user: 'sqlectron',
privateKey: path.join(__dirname, 'ssh_files/id_' + keyType),
};

const serverSession = db.createServer(serverInfo);
const dbConn = serverSession.createConnection(database);

return expect(assertSSHConnection(dbConn)).to.not.be.rejected;
});
}

it('should connect into server using ssh agent with passphrase', () => {
const serverInfo: ServerConfig = {
...config[dbAdapter],
name: dbAdapter,
adapter: dbAdapter,
};

serverInfo.ssh = {
host: process.env.SSH_HOST,
port: 2222,
user: 'sqlectron',
passphrase: 'password',
privateKey: path.join(__dirname, 'ssh_files/id_rsa_passphrase'),
};

const serverSession = db.createServer(serverInfo);
const dbConn = serverSession.createConnection(database);

return expect(assertSSHConnection(dbConn)).to.not.be.rejected;
});
})
});

describe('given is already connected', () => {
Expand Down
12 changes: 12 additions & 0 deletions spec/ssh_files/id_ecdsa
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAArAAAABNlY2RzYS
1zaGEyLW5pc3RwNTIxAAAACG5pc3RwNTIxAAAAhQQBPacz4PEYvCTCR0dpnH98hDQtzv7X
yaW7XXK4mZJFbZS0zFjs+gp3zgvb3cAc2HYLGi8bX4sbGuC1M5zxDAt0dSQAIZiykwu5qt
x9oPfJkx/Pn9TOXM6tOlPbk1dRLEp2vRz6zemw/C3bkRv4LI+vMOKgze/T6z1r6D+6yYhF
3ECyaLkAAAEQxJ7wV8Se8FcAAAATZWNkc2Etc2hhMi1uaXN0cDUyMQAAAAhuaXN0cDUyMQ
AAAIUEAT2nM+DxGLwkwkdHaZx/fIQ0Lc7+18mlu11yuJmSRW2UtMxY7PoKd84L293AHNh2
CxovG1+LGxrgtTOc8QwLdHUkACGYspMLuarcfaD3yZMfz5/UzlzOrTpT25NXUSxKdr0c+s
3psPwt25Eb+CyPrzDioM3v0+s9a+g/usmIRdxAsmi5AAAAQgFlSgF2BdwLFtoXVIyzg+K1
ttU15zq3ltfF4KnAKm19FeLlevtk8za9ZLiGJGwReTXDHWQOPn6F1XTGSd6NAWCwugAAAB
Fyb290QGI5YzgxNmIwNmY5ZAE=
-----END OPENSSH PRIVATE KEY-----
7 changes: 7 additions & 0 deletions spec/ssh_files/id_ed25519
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACDjMo8Cwwi2Sh3c9SRepKei3uC/CJMquktSmynF7CeoewAAAJjAYXafwGF2
nwAAAAtzc2gtZWQyNTUxOQAAACDjMo8Cwwi2Sh3c9SRepKei3uC/CJMquktSmynF7Ceoew
AAAECbyICBKd7XbZRfIvcdzX3hw+0oEVuic9gzuYGIKyGPe+MyjwLDCLZKHdz1JF6kp6Le
4L8Ikyq6S1KbKcXsJ6h7AAAAEXJvb3RANWI2ODE4MTYyNTU3AQIDBA==
-----END OPENSSH PRIVATE KEY-----
49 changes: 49 additions & 0 deletions spec/ssh_files/id_rsa
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAACFwAAAAdzc2gtcn
NhAAAAAwEAAQAAAgEAnFGrtUduJGsQUk7/1OgNityJWNnxOg4LPlPn5SJjs6frEs7DOB5c
AP3R9WvSgMx/93VVu1OTspp8+lolRtTXlDdDgEcWEmurBWQUARJV3+gjYenpmGGhDTxbVK
vHJCUevhA121j0FfFwOt0ORls4Got/fKTfsXDnckDKfUfexhe1OWxn6X0Zk/dpRabEY7IM
4lkjND6adQW31VLHeVvmBtJ1+zIXNt4UgVa6wbEGDUWkv52fFjY13wmuAxYOrwmNpwxs/p
H6Cmxf4+TrIBQ2OG44FA0GCLT95658RqqyhjngfjuCpcFxbrt5LLkhjD5C9zfJB+pLGcPj
OF8j+uXQrXEruPxrfnYWE/pvY1xLWB2hJ9lpEAqLXFoeTHuI10FnDRxYbczwlnr5+GL8fH
i7cQ0WGkuQFwofm9GB7ojD18mwylG0krJHG1TXfTniNni+NRC+/wiixSXKhs08rj02myrv
c1NPIJ2MlMHF3m2ArDMP2FullSel77hjHgR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L0
+/jluAn8ekkafNEROZtHNg/V6FPK26dFA6zOP3svshFRJG0warSWi7OSITk7XWq/hazPVZ
I9w6zTy5D89GQENl+CfnnAurRLeWUQvvmTXaJFQxZYPjL26Xb6+/wWWZmFBRpJ3MiohFwG
AJzJjyRbPe/OsvAAABAQDFgg4JSWUOMJyFRI1TsfHjN1dNY6F6XCFc//739WvjjH1fOUNX
55hipkBEWNdgiFLyU0pDV1uuKkfnwjvEekfNR7c8nOBshq5VuQhDMyNy2hKeSpZC7JpmXG
NOuzpJ6YLNAXWsNJsMkp1Iy3ONbUfQk3IrDDL2mbUUJobhK39AKrdIWJBsJmz/Jm5CS05i
ZvTl029CVSjyQg5LUGzYRH8BfihbZ3fgQGY0mVxELrMx0IkHBtDfKSW8bn6e0ZtyTfHj1u
FgcSwo/719bBpFGsxebSgIngsP+euix1kPdhuDbVtdcdgqvTnGO2W3XK5i0UQakA9Zmbop
Q4v/WyfWhspBAAAAEXJvb3RAZDIxOTI3MjNlOTdkAQ==
-----END OPENSSH PRIVATE KEY-----
39 changes: 39 additions & 0 deletions spec/ssh_files/id_rsa_passphrase
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYmNyeXB0AAAAGAAAABB/2s+sDk
jSoldPxkcLmP7QAAAAEAAAAAEAAAGXAAAAB3NzaC1yc2EAAAADAQABAAABgQCzZ9kFYjg0
7ksVGLmQXLDbfJBuPDpFYEAJtenaYF0WBVUJEu7xRtnyFwKL+N0ATnNgSrs4FxVo2GxXhE
GzhgdpJUdBF8G5yt3AFl6/ZOlMiLNHQYgUBsvSnqwHfU0A2N87ZvQ0/XReqTWJvQ4cZySN
gMCMnkvcQN5QtYAR1FYtLiQ6VEXDIMzF/7Oq1LJ7Olp8itpjyF3SBkiSjW5j8C7KSuGwaG
eq4cm5Dstfp3SIVzCJ1F8fiuNWduR69n9ztM5jKbs6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iyHDINva771uVN1QqMBcX39Pu9QY3AS
ts1Ai/ZyhOuEMhPw/SREgP7YK1o=
-----END OPENSSH PRIVATE KEY-----
1 change: 1 addition & 0 deletions spec/ssh_files/pub/id_ecdsa.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAE9pzPg8Ri8JMJHR2mcf3yENC3O/tfJpbtdcriZkkVtlLTMWOz6CnfOC9vdwBzYdgsaLxtfixsa4LUznPEMC3R1JAAhmLKTC7mq3H2g98mTH8+f1M5czq06U9uTV1EsSna9HPrN6bD8LduRG/gsj68w4qDN79PrPWvoP7rJiEXcQLJouQ== sqlectron_ecdsa
1 change: 1 addition & 0 deletions spec/ssh_files/pub/id_ed25519.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMyjwLDCLZKHdz1JF6kp6Le4L8Ikyq6S1KbKcXsJ6h7 sqlectron_ed25519
1 change: 1 addition & 0 deletions spec/ssh_files/pub/id_rsa.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCcUau1R24kaxBSTv/U6A2K3IlY2fE6Dgs+U+flImOzp+sSzsM4HlwA/dH1a9KAzH/3dVW7U5Oymnz6WiVG1NeUN0OARxYSa6sFZBQBElXf6CNh6emYYaENPFtUq8ckJR6+EDXbWPQV8XA63Q5GWzgai398pN+xcOdyQMp9R97GF7U5bGfpfRmT92lFpsRjsgziWSM0Ppp1BbfVUsd5W+YG0nX7Mhc23hSBVrrBsQYNRaS/nZ8WNjXfCa4DFg6vCY2nDGz+kfoKbF/j5OsgFDY4bjgUDQYItP3nrnxGqrKGOeB+O4KlwXFuu3ksuSGMPkL3N8kH6ksZw+M4XyP65dCtcSu4/Gt+dhYT+m9jXEtYHaEn2WkQCotcWh5Me4jXQWcNHFhtzPCWevn4Yvx8eLtxDRYaS5AXCh+b0YHuiMPXybDKUbSSskcbVNd9OeI2eL41EL7/CKLFJcqGzTyuPTabKu9zU08gnYyUwcXebYCsMw/YW6WVJ6XvuGMeBGCLr+5qcKMkcWKLak90NhQQycqUg14/vtyKJKcN/H7kkx+gFTI+PExNtMXEuRrNw5et5ZhaaubWhQkOmXJvi4AwRExLkUB3IQKKjDOxD6UbceZZ7EDc7Cr+lZi2OpfD2hX+V2vGFE7Mqr9GvAibZKmSw3zYj6h5ICIAl0+CBE7ElGTM7w== sqlectron_rsa
1 change: 1 addition & 0 deletions spec/ssh_files/pub/id_rsa_passphrase.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCzZ9kFYjg07ksVGLmQXLDbfJBuPDpFYEAJtenaYF0WBVUJEu7xRtnyFwKL+N0ATnNgSrs4FxVo2GxXhEGzhgdpJUdBF8G5yt3AFl6/ZOlMiLNHQYgUBsvSnqwHfU0A2N87ZvQ0/XReqTWJvQ4cZySNgMCMnkvcQN5QtYAR1FYtLiQ6VEXDIMzF/7Oq1LJ7Olp8itpjyF3SBkiSjW5j8C7KSuGwaGeq4cm5Dstfp3SIVzCJ1F8fiuNWduR69n9ztM5jKbs6FdPdKbMa916qsXHELyLY7cbd4UWrZCL4QoDPqFJctfBnbFTpmfG9W5v2ZkGg6r+dKb3G3qy1nmWczWxY2v/q6v0ViZ5BMNmXseUY6eh/zwPaPROasHbXQ6taAVTFfvNTuC6UNQyDtkYGkBXQlNDrJVGPVT45f9RkYUF4mza5ySu0Fr2X58WhTsplJP1BlmyfFk9XiTtcDrFeRfplwXZDnQz14Op58khppeRVxgd10zQOFlhTV2APiTkTIIU= sqlectron_rsa_passphrase
1 change: 1 addition & 0 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface LegacyServerConfig {
privateKey?: string;
host: string;
port: number;
useAgent?: boolean;
};
ssl?: {
key?: string;
Expand Down
Loading

0 comments on commit 62c0581

Please sign in to comment.