Commit graph

26 commits

Author SHA1 Message Date
Josh Bleecher Snyder
89ab72bee0
all: run gofumpt (#652)
* all: run gofumpt

https://github.com/mvdan/gofumpt

The main appeal for me here is that my (and many other peoples')
editors run this on save, so doing a single diff here
keeps other diffs minimal.

* .github/workflows: add gofumpt checker
2025-08-29 20:04:31 -07:00
Boshi Lian
ca311e15cd
refactor: Revise Dockerfile - Remove entrypoint.sh (#598)
* chore: Formatting

* chore: Formatting (fix indent)

* refactor: Remove entrypoint

* chore: Remove `entrypoint.sh` from `.goreleaser.yaml`

* tests: Replace `entrypoint.sh` script usage in `e2eentry.sh`

* Set default plugin argument from environment variable in main function and update Dockerfile to remove CMD instruction

* Add user and group setup for testing in Dockerfile and update e2e entry script

* Update cmd/sshpiperd/main.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update cmd/sshpiperd/main.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Remove test user and group creation from Dockerfile and move it to e2e entry script; update plugin argument handling in main function

* Update Dockerfile

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Skip empty plugin directory entries in main function

---------

Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-25 02:11:04 -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
8ea9eb3f4f
feat: add proxy-read-header-timeout flag for PROXY protocol support (#586)
fix: update go-proxyproto and golang.org/x/net dependencies
2025-05-11 02:20:16 -07:00
Boshi Lian
2603cdfa8b
support handle ping@openssh packet (#582)
* chore: Update dependencies in go.mod and go.sum

* chore: Update submodule commit for crypto

* refactor: Update hook functions to return ssh.PipePackageHookMethod for better integration

* fix: Increase sleep duration in TestFixed to ensure proper execution

* fix: Increase sleep duration in TestFixed to ensure proper file flush

* fix: Update docker-compose service images and modify test to use host-password-old

* refactor: Simplify hook functions to return error instead of PipePackageHookMethod for better error handling

* feat: Add reply-ping flag to enable ping response for compatibility with older sshd

* fix: Update subproject commit reference in crypto
2025-05-08 11:53:40 -07:00
Boshi Lian
b2f7f79cc4
Add configuration options for allowed downstream algorithms (#504)
* Add configuration options for allowed downstream algorithms

* Refactor daemon configuration to set allowed downstream algorithms

* Ensure default configuration values are set consistently in newDaemon
2024-12-26 00:21:20 -08: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
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
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
d2b002000e
add windows support (#193)
* add windows support

* build for win

* fix win build
2023-08-16 17:35:03 -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
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
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
2ddd69876a replace with proxy protocol listener 2022-07-08 01:58:22 +00:00
Boshi Lian
bc9875c4b5 happy lint 2022-07-06 17:27:39 +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
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