Boshi Lian
7fdd88982a
introduce uri for flexable upstream conn ( #615 )
...
* Deprecate host and port fields in Upstream message; introduce uri field for connection details
* Update libplugin/plugin.proto
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* refactor(grpc): streamline upstream connection handling and add GetOrGenerateUri method
* refactor(libplugin): update GetOrGenerateUri to return error and add IPv6 test
* refactor(libplugin): simplify GetOrGenerateUri to remove error return and update tests
* Update cmd/sshpiperd/internal/plugin/grpc.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-30 15:18:57 -07:00
Boshi Lian
2edfa6b4c3
Enhance upstream banner handling with deduplication mode and refactor connection metadata ( #597 )
...
* Enhance upstream banner handling with deduplication mode and refactor connection metadata
* Add 'first-only' mode to upstream banner handling and update usage documentation
2025-05-25 00:56:18 -07:00
Boshi Lian
e6d3bb694b
Add upstream banner mode and refactor banner callbacks ( #594 )
...
* feat: add upstream banner mode and refactor banner callbacks
* chore: update crypto submodule to latest commit
* fix: improve usage description for upstream banner mode flag
* Update cmd/sshpiperd/daemon.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-19 12:31:04 -07:00
Boshi Lian
2c2d378f86
Fix linting issues ( #595 )
...
* fix lint
* Bump golangci-lint action to v8 and update linting args
* fix lint errors
* fix: correct loop condition in main function to process remaining arguments
2025-05-18 00:59:18 -07:00
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
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
08d0e23d60
Fix grpc.Dial usage in sshpiperd ( #436 )
...
* Fix grpc.Dial usage in sshpiperd
* fix dns not found
* Update dependencies in go.mod and go.sum files
* Refactor grpc.NewClient to remove unnecessary grpc.WithBlock() option
2024-10-18 01:01:58 -07:00
Yachen Mao
479d78e3a0
support assciicast and logpath refactor ( #450 )
...
* add asciicast v2 log format support and change tty log filename from username to uniqueID
* screen-recording-format support
2024-10-17 22:42:02 -07:00
Boshi Lian
0a38839628
fix default value missing ( #306 )
2024-01-21 23:43:02 -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
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
Tommaso Doninelli
69fec645ca
Cross-compatible check if FD is a TTY terminal ( #151 )
...
Package `term` provides support functions for dealing with terminals, cross-compatible with Unix,darwin and windows.
The low leve const `unix.TCGETS` is not defined in Darwin arch, ad prevent shspiper to buil and run on osx
2023-04-06 14:57:24 -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
2709d8136d
add downstream username to log ( #120 )
...
* add downstream username to log
* add username when pipe created
2023-01-06 05:47:56 -08:00
Boshi Lian
630a01fbb6
quit when child plugin quits
2022-10-25 09:24:25 +00:00
Boshi Lian
006fcb31da
adopt official non auth callback
2022-10-22 11:18:47 +00:00
Boshi Lian
319824e564
align log level across plugins
...
happy lint
happy lint
2022-08-05 23:08:01 +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
Boshi Lian
9e702013c6
update proto grpc
2022-07-06 16:46:25 +00:00
Boshi Lian
5e0572a43f
minor fix while doing docs
2022-07-05 20:31:14 +00:00
Boshi Lian
fd0a0c628e
first move of working dir
2022-07-04 16:49:50 +00:00
Boshi Lian
dbef31dd3d
libplugin
2022-07-04 16:49:50 +00:00