Commit graph

42 commits

Author SHA1 Message Date
Boshi Lian
085ba59c58
support cross auth type mapping (#483)
* add testcase

* add fix

* Refactor skelpipe wrappers to separate password and private key handling
2024-11-10 03:01:52 -08:00
Boshi Lian
0e6168a6b8
Refactor plugin.proto and pluginbase.go to add support for metadata in connection context (#475)
* Refactor plugin.proto and pluginbase.go to add support for metadata in connection context

* go fmt

* move test plugin out

* Refactor Dockerfile to build test plugin in e2e/testplugin directory

* mv testplugin -> testgrpcplugin

* add test for connection metadata

* enable logging to stdout

* Refactor Dockerfile to build test plugin in e2e/testplugin directory
2024-10-27 23:57:21 -07:00
Boshi Lian
ed19d555b5
add support for ssh ca auth (#467) 2024-10-23 02:41:25 -07:00
Boshi Lian
4db98899f4
YAML Plugin add regex match group (#464)
* add support for match group replace

* update doc
2024-10-20 02:15:46 -07:00
Boshi Lian
39f5eef98b
Refactor YAML schema to support multiple authorized keys and known hosts (#463)
* add coverage for go proxy

* Refactor CLI flag name for allowed proxy addresses

* Refactor YAML schema to support multiple authorized keys and known hosts

* add testcases

* Refactor YAML schema to support multiple authorized keys and known hosts

* go fmt

* go fmt
2024-10-20 00:20:40 -07:00
Boshi Lian
4ad8e77e3f
add test coverage for go proxy (#460)
* add coverage for go proxy

* Refactor CLI flag name for allowed proxy addresses
2024-10-18 13:28:18 -07:00
Daniel Wiegert
538481c33c
update to ssh V9.8.P1 to fix CVE-2024-6387 (#412)
* update to ssh V9.8.P1 to fix CVE-2024-6387

* update to ssh V9.8.P1 to fix CVE-2024-6387
2024-07-11 14:32:38 -07:00
Boshi Lian
305e8164d6
feat: Add test case for publickey_simple_withmultiple_keyfile (#396)
This commit adds a new test case to cover the scenario where multiple key files are used for authentication with the publickey_simple user. It generates a temporary key file and attempts to SSH to the piper server using both the correct and incorrect key files. The test verifies that the correct key file allows the connection and writes a random text to a shared file.
2024-05-30 11:25:35 -07:00
Boshi Lian
6fe67e3f5c
revert partial succ support (#395)
* chore: Update Dockerfile to use golang 1.22-bookworm and install additional dependencies

* revert crypto

* testcase to cover re-mapping to fail
2024-05-30 00:18:35 -07:00
Boshi Lian
fb8eba9f91
fix ping@openssh being passed to unsupported sshd (#326)
* add testcase

* Fix formatting in e2e/fixed_test.go

* disable ping until we have a solution
2024-02-14 22:24:21 -08:00
Boshi Lian
82ac6a5fff
add remote signer api and e2e test of it (#320) 2024-02-11 01:54:55 -08:00
Boshi Lian
9fee039d93
Add PipeCreateErrorCallback to handle pipe creation errors (#290)
* Add PipeCreateErrorCallback to handle pipe creation errors

* Add test for FailtobanPipeCreateFail

* Fix missing newline at end of file in pluginbase.go
2023-12-24 03:54:49 -08:00
Boshi Lian
5a724c6dd3
fix docker plugin encoding (#278) 2023-12-12 11:54:33 -08:00
Boshi Lian
0a0666689c
better compatibility for all version of (#253)
docker and docker-compose
2023-10-25 00:51:59 -07:00
Boshi Lian
b97171bd7b
use ssh-publickey-cert for better naming (#223) 2023-09-10 01:14:18 -07:00
Boshi Lian
65b6b5868d
fix priority (#217)
* fix priority

* fix build
2023-09-03 04:36:40 -07:00
Boshi Lian
694d09affd
support password match/ca publickey for kubernetes (#211)
* add testcase

* refine testcases

* fix tab

* happy ql

* inline timeout

* add ca support for k8s
2023-08-26 18:07:36 -07:00
Matthew Atkinson
13fcc8c0a8
Add support for using CA certs for upstream ssh connection (#210) 2023-08-25 17:32:49 -07:00
Boshi Lian
e13f8e2a40
fix flaky fail to ban (#180) 2023-08-01 16:45:13 -07:00
Boshi Lian
2067fcb003
non return plugin callback now will be triggered together (#162)
* add failtoban plugin

* fmt

* bump ver

* add failtoban e2e

* add readme

* update readme
2023-07-11 01:32:05 -07:00
Boshi Lian
bffa03dde0
update crypto upstream (#161)
* update dep

* go mod tidy

* fix test

* fix flaky test
2023-07-06 23:05:26 -07:00
Boshi Lian
1cd6cd86d9
add callback for pipe start and pipe err (#145)
* add onstart onerr cb

* cover by e2e

* add missing plugin

* happy lint
2023-03-11 03:30:42 -08:00
Boshi Lian
f0e9accbd0 add base64 host key param 2023-03-04 10:20:43 +00:00
Boshi Lian
31738b95b6
add support network hints (#138)
* add support network hints

* add test for multiple network
2023-02-11 01:27:51 -08:00
Boshi Lian
81db4de71f
support kubernetes.io/ssh-auth (#128) 2023-01-07 05:58:44 -08:00
Boshi Lian
740e31dffc
default to ed25519 (#111)
* s/rsa/ed25519/g

* s/rsakey/ed25519key/g

* ed25519 server key
2022-12-09 06:10:49 -08:00
Boshi Lian
01e5a009e0
add banner opt back (#106)
* add banner opt back

* happy lint
2022-11-28 05:56:12 -08:00
Boshi Lian
a3b3caaf6d add custom secret field support 2022-11-05 05:57:07 +00:00
Boshi Lian
61fce7bcd9 fix flaky e2e 2022-10-26 06:08:48 +00:00
Boshi Lian
27b1babbc0 smaller image by keeping k8s and dir plug only 2022-10-25 00:35:45 +00:00
Boshi Lian
cc962457f9 add k8s to e2e 2022-10-24 23:37:38 +00:00
Boshi Lian
319824e564 align log level across plugins
happy lint

happy lint
2022-08-05 23:08:01 +00:00
Boshi Lian
56844d0295 add missing docker e2e test 2022-07-13 23:24:05 +00:00
Boshi Lian
fdc6691d75 introduce first docker plugin 2022-07-13 21:50:38 +00:00
Boshi Lian
5bdf895dfc add yaml plugin 2022-07-09 18:33:32 +00:00
Boshi Lian
56afc57050 add CONTRIBUTING.md 2022-07-08 01:26:19 +00:00
Boshi Lian
30bf4b1ca3 add base image to compose 2022-07-08 01:26:19 +00:00
Boshi Lian
5e9f689999 move e2e piper process manager to go code 2022-07-08 01:26:19 +00:00
Boshi Lian
96dc3be75e add working dir e2e test 2022-07-07 06:56:41 +00:00
Boshi Lian
607c3d05eb fix ci 2022-07-06 19:29:34 +00:00
Boshi Lian
bc9875c4b5 happy lint 2022-07-06 17:27:39 +00:00
Boshi Lian
93da136a94 add first e2e case 2022-07-06 16:46:56 +00:00