Commit graph

60 commits

Author SHA1 Message Date
Boshi Lian
23e18f4f7c
merge totp to workingdir (#476)
* merge totp to workingdir

* Refactor .goreleaser.yaml to remove plugin_totp build configuration
2024-10-28 01:09:28 -07: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
14ceadb8e8
add skel plugin for code sharing (#473)
* introduce plugin skel to reuse code

* Refactor code to use libplugin.NewSkelPlugin for plugin/kubernetes/main.go
Add YAML Plugin skel.go for plugin/yaml

* Fix code scanning alert no. 6: Incorrect conversion between integer types

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* fix gpt

* fjx password handling in SkelPlugin and skelpipeToWrapper

* go fmt

* Refactor Docker plugin to use skelpipe wrapper

* Refactor skel.go to use container username instead of client username

* revert yaml test order

* fix public and password mess up

* Refactor working dir to use skel

* revert deleted file

* Refactor skel.go to remove unused code and simplify MatchConn function

* Refactor skel.go to read userKnownHosts file in KnownHosts function

* remove workingdirbykey from goreleaser

* Refactor workingdir.go to use libplugin.SplitHostPortForSSH for parsing host and port

* Refactor skel.go to remove unused code and simplify MatchConn function

* merge doc into workingdir

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2024-10-24 23:15:26 -07:00
Boshi Lian
ed19d555b5
add support for ssh ca auth (#467) 2024-10-23 02:41:25 -07:00
Boshi Lian
a3f69952c0
Refactor code to use subtle.ConstantTimeCompare for secure comparison (#466)
* Refactor code to use subtle.ConstantTimeCompare for secure comparison

* Refactor code to use subtle.ConstantTimeCompare for secure comparison
2024-10-21 02:46:19 -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
304dd72a53
update docker sdk to v25 (#455)
* update docker sdk to latest

* Refactor Docker plugin to use latest Docker SDK
2024-10-18 02:34:27 -07:00
Boshi Lian
57d0e21787
move Azure Device Code plugin for sshpiperd out of tree (#453) 2024-10-17 23:36:06 -07:00
Boshi Lian
450ed385b9
Update remotesigner version (#338)
* Update remotesigner version to v0.0.2

* Update remotesigner version to v0.0.3
2024-03-03 05:43:52 -08:00
Boshi Lian
82ac6a5fff
add remote signer api and e2e test of it (#320) 2024-02-11 01:54:55 -08:00
Haiker Sun
22af927e77
Add kubeconfig flag for k8s plugin (#296) 2024-01-04 06:51:44 -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
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
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
5b9091c42a
update dep (#146)
* update dep

* update crypto

* revert docker lib version
2023-03-12 05:15:22 -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
e7b276d6a5
reuse VerifyHostKeyFromKnownHosts (#143) 2023-02-28 17:11:17 -08:00
Boshi Lian
12aab7a076
add missing password field 2023-02-28 16:45:42 -08: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
2312f12b15
Update README.md 2023-01-07 07:52:51 -08:00
Boshi Lian
81db4de71f
support kubernetes.io/ssh-auth (#128) 2023-01-07 05:58:44 -08:00
Windfarer
5acbcf6419
fix: kubernetes watch and list in all namespaces (#112)
* watch and list in all namespaces

* add flag

* update readme

* cleaning

* fmt

Co-authored-by: Eric Yang <ericyang@birentech.com>
2022-12-19 01:43:25 -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
3232bee379 fix build 2022-11-13 11:03:24 +00:00
Boshi Lian
a3b3caaf6d add custom secret field support 2022-11-05 05:57:07 +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
6ce942944c fix missing auth in pub 2022-10-23 09:00:21 +00:00
Boshi Lian
4c8baddefc fix cache set 2022-10-23 08:07:30 +00:00
Boshi Lian
9f53ef51d6 add more col for crd 2022-10-22 10:49:32 +00:00
Boshi Lian
319824e564 align log level across plugins
happy lint

happy lint
2022-08-05 23:08:01 +00:00
Boshi Lian
0dd9491d13 add totp plugin 2022-07-21 09:17:45 +00:00
Boshi Lian
2906648ee8 add missing readme 2022-07-19 04:23:55 +00:00
Boshi Lian
520c16f56a add readme 2022-07-19 04:22:55 +00:00
Boshi Lian
f37c89a6d6 init k8s 2022-07-18 23:30:58 +00:00
Boshi Lian
4d2f795701 fix empty password bug 2022-07-18 22:28:51 +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
1d8dde5d02 add yaml doc 2022-07-09 19:13:00 +00:00
Boshi Lian
5bdf895dfc add yaml plugin 2022-07-09 18:33:32 +00:00
Boshi Lian
608a3e4081 add workdirbykey to readme 2022-07-08 02:22:01 +00:00
Boshi Lian
d074e9f82d
Update README.md 2022-07-07 06:58:41 -07:00
Boshi Lian
705c88823c workingdir: add opt to disable password auth 2022-07-07 13:50:38 +00:00
Boshi Lian
3047473814 impl hostkey verify for working dir 2022-07-06 18:32:35 +00:00
Boshi Lian
bc9875c4b5 happy lint 2022-07-06 17:27:39 +00:00