Commit graph

29 commits

Author SHA1 Message Date
Boshi Lian
afd80aa590
fix(docker): enable API version negotiation for Docker client (#607) 2025-06-02 10:24:29 -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
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
3757d80348
support proxy banner from upstream (#548)
* remove unused logs

* add banner to server password

* add updated crypto lib

* add test

* refactor: clean up whitespace in banner test

* fix: update test case name to use underscores for consistency
2025-03-20 00:55:03 -07:00
Boshi Lian
b8db060584
fix e2e (#540)
* Update docker-compose.yml

* Update docker-compose.yml and Dockerfile: simplify kind load command and upgrade kind version to v0.27.0

* Comment out Docker installation steps in Dockerfile

* Revert "Comment out Docker installation steps in Dockerfile"

This reverts commit 242e5c638958cb4227d99c85d2cae13214b74513.
2025-03-12 00:54:49 -07:00
Boshi Lian
e96e3f6a3a
Customize sshd with sshd config.d (#525)
* Update OpenSSH server image version and add no penalties configuration

* Refactor SSH configuration paths and update test scripts for public key handling

* Update Docker Compose volumes to remove read-only flag for shared directory

* Remove end-to-end test files and related Docker configuration for CA public cert authentication
2025-02-16 23:19:41 -08:00
Boshi Lian
44068f3cea
Update OpenSSH server image to version 9.7_p1-r4-ls184 in docker-compose.yml (#517) 2025-02-04 23:25:34 -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
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
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
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
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
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
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
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
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
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
93da136a94 add first e2e case 2022-07-06 16:46:56 +00:00