Commit graph

33 commits

Author SHA1 Message Date
Yachen Mao
5ef0d03cb8
Fix timing format to correctly handle microsecond portion of time delta (#448) 2024-10-14 23:48:41 -07:00
Boshi Lian
70fb830dca
Merge pull request from GHSA-4w53-6jvp-gg52
* feat: Add support for allowed proxy addresses

This commit adds support for allowed proxy addresses, which allows only connections from these IP ranges to send a proxy header based on the PROXY protocol. If the allowed proxy addresses are empty, the PROXY protocol support is disabled.

* Update cmd/sshpiperd/main.go

Co-authored-by: Peter G <97112726+pgibson1-godaddy@users.noreply.github.com>

---------

Co-authored-by: Peter G <97112726+pgibson1-godaddy@users.noreply.github.com>
2024-05-09 13:53:36 -07:00
Matej Trop
73169bbace
Make the log formatter configurable (#371)
* Make the log formatter configurable

The change lets us configure the deamon and the plugins to output logs
in the JSON format, which is easier to parse/filter by log processing
tools.

* Add validation for the log-format flag
2024-05-08 15:11:18 -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
Boshi Lian
a22ae2d4e9
import new ssh crypto (#220) 2023-09-10 00:49:42 -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
36f03e7a74
Create README.md for snap (#205)
* Create README.md for snap

* gen with desc
2023-08-24 23:34:31 -07:00
Boshi Lian
d2b002000e
add windows support (#193)
* add windows support

* build for win

* fix win build
2023-08-16 17:35:03 -07:00
Boshi Lian
502249d275
add config for snap (#191)
* add config for snap

* place holder

* fix build

* fit 7.2

* fix lint

* no empty
2023-08-13 07:07:28 -07:00
Boshi Lian
f5b9f7233f
add snap support (#189)
* embed keygen

* add snap

* add generate log
2023-08-11 06:25:58 -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
fc3af11b4a
Delete sshpiperd (#152) 2023-04-11 02:40:56 -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
f0e9accbd0 add base64 host key param 2023-03-04 10:20:43 +00:00
Boshi Lian
53d4789035
add option to drop host key msg (#140)
* add option to drop host key msg

* fix lint
2023-02-13 07:18:48 -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
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
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
2ddd69876a replace with proxy protocol listener 2022-07-08 01:58:22 +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
0ebe1e19d5 add pdeathsig 2022-07-06 00:14:10 +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
5dda30365e move typescript logger 2022-07-04 16:49:50 +00:00
Boshi Lian
4bb9470d7d add net grpc 2022-07-04 16:49:50 +00:00
Boshi Lian
dbef31dd3d libplugin 2022-07-04 16:49:50 +00:00