Commit graph

42 commits

Author SHA1 Message Date
Brennan Kinney
52e8f9afc4
chore: Dockerfile - Use HereDoc syntax (#567)
* chore: `Dockerfile` - Use HereDoc syntax

* Update Dockerfile

* Update Dockerfile
2025-04-28 10:05:36 -07:00
Boshi Lian
c8dd92f1e8
Bump Go version to 1.24 in Dockerfile and go.mod (#524) 2025-02-13 02:36:12 -08:00
Boshi Lian
77e9b2181a
Update Dockerfile to use pre-built OpenSSH binary and fix test reference to SSH binary (#522)
* Update Dockerfile to use pre-built OpenSSH binary and fix test reference to SSH binary

* Add support for multiple SSH binary versions in tests
2025-02-06 01:48:49 -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
9ff7bde222
update crypto and fix partial succ support (#435)
* update crypto and fix partial succ

* update go ver
2024-09-09 00:12:45 -07:00
Daniel Wiegert
538481c33c
update to ssh V9.8.P1 to fix CVE-2024-6387 (#412)
* update to ssh V9.8.P1 to fix CVE-2024-6387

* update to ssh V9.8.P1 to fix CVE-2024-6387
2024-07-11 14:32:38 -07:00
Boshi Lian
6fe67e3f5c
revert partial succ support (#395)
* chore: Update Dockerfile to use golang 1.22-bookworm and install additional dependencies

* revert crypto

* testcase to cover re-mapping to fail
2024-05-30 00:18:35 -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
e39b32edce
Update Golang version in Dockerfile (#322) 2024-02-11 02:05:24 -08:00
Vlastimil Holer
2256c137c8
allow override sshpiperd container arguments (#216)
To be able to still execute the entrypoint (and any logic which is/will be
there), but completely override the sshpiperd arguments only. So,
customizing the plugins usage should be easy.

Example:

```
$ docker run --rm -it localhost/sshpiperd:test
INFO[0000] starting sshpiperd version: devel, fc6c3e1e9, 2023-08-30T14:31:06Z, go1.21.0
INFO[0000] generating host key /etc/ssh/ssh_host_ed25519_key
INFO[0000] found host keys [/etc/ssh/ssh_host_ed25519_key]
INFO[0000] loading host key /etc/ssh/ssh_host_ed25519_key
INFO[0000] starting child process plugin: [/sshpiperd/plugins/workingdir]
INFO[0000] sshpiperd is listening on: [::]:2222
^C
```

```
$ docker run --rm -it localhost/sshpiperd:test /sshpiperd/plugins/workingdir -- /sshpiperd/plugins/failtoban
INFO[0000] starting sshpiperd version: devel, fc6c3e1e9, 2023-08-30T14:31:06Z, go1.21.0
INFO[0000] generating host key /etc/ssh/ssh_host_ed25519_key
INFO[0000] found host keys [/etc/ssh/ssh_host_ed25519_key]
INFO[0000] loading host key /etc/ssh/ssh_host_ed25519_key
INFO[0000] starting child process plugin: [/sshpiperd/plugins/workingdir]
INFO[0000] starting child process plugin: [/sshpiperd/plugins/failtoban]
INFO[0000] sshpiperd is listening on: [::]:2222
^C
```
2023-08-30 10:44:37 -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
0b0bbc4bf9
dockerfile for goreleaser 1.20 (#188) 2023-08-11 06:15:37 -07:00
Boshi Lian
8031bd8a6b
update crypto to 0.12.0 (#186)
* update crypto

* go 1.21
2023-08-09 15:03:22 -07:00
Boshi Lian
fefbb0ec99
init goreleaser (#169)
* init goreleaser

add dockerfile

add fetch tag

set next to snapshot

remove generate

skip val

add auto ver

revert ver

revert ver

force tag

* self tag

* self tag

* always tag

* change perm

* final
2023-08-02 02:40:04 -07:00
Shiipou
20f7523393
build(docker): Non-root docker image (#155) 2023-05-23 08:58:44 -07:00
Boshi Lian
6a63582068
go 1.20 (#135) 2023-02-02 08:14:55 -08:00
Boshi Lian
27b1babbc0 smaller image by keeping k8s and dir plug only 2022-10-25 00:35:45 +00:00
Boshi Lian
a4c141225d better dockerfile 2022-10-23 08:09:55 +00:00
Boshi Lian
d3ec47f4ec update to go 1.19 2022-08-03 05:42:59 +00:00
Boshi Lian
5e9f689999 move e2e piper process manager to go code 2022-07-08 01:26:19 +00:00
Boshi Lian
93da136a94 add first e2e case 2022-07-06 16:46:56 +00:00
Boshi Lian
b45652b305 faster docker build 2022-07-05 23:14:41 +00:00
Boshi Lian
5e0572a43f minor fix while doing docs 2022-07-05 20:31:14 +00:00
Boshi Lian
4beede6d0b new dockerfile 2022-07-04 16:49:50 +00:00
Boshi Lian
76c8d6d0bb go1.18 and nbgv 2022-04-03 09:45:50 +00:00
Boshi Lian
e6d5eb54d9 Squashed commit of the following:
commit 0af98df2e4d41989c451573a17e81c1f69998cfd
Author: Boshi Lian <farmer1992@gmail.com>
Date:   Sun Oct 3 18:55:59 2021 +0000

    add a working remote grpc server

commit a0acce4894fc9191ddb4c14f5cc669bca63bd920
Author: Boshi Lian <farmer1992@gmail.com>
Date:   Tue Sep 28 11:33:40 2021 +0000

    init grpc
2021-10-03 19:30:22 +00:00
Michele Palazzi
55db47b0dc
fix git not found error on docker image build (#65) 2021-05-04 05:06:34 -07:00
Boshi Lian
ee4c7e26b5 remove cgo disable pam by default 2020-12-02 19:11:38 +00:00
Boshi LIAN
1e1b10a59a bump to 0.4.3 2020-05-15 02:02:27 -07:00
Boshi Lian
dbde54c087
introduce gh-action 2020-05-14 12:22:34 -07:00
Boshi Lian
2f8cef360d
move to go mod (#38)
Move to go 1.12 mod
2019-08-20 16:29:18 -07:00
Boshi Lian
db99225022
add updated ca (#29) 2019-03-19 18:32:05 -07:00
Boshi Lian
2f79aec88a use alpine as runtime image 2019-01-07 11:49:05 +00:00
Boshi Lian
fc9cd704db e2e test will not loop infinitely 2019-01-06 18:48:27 +00:00
Boshi Lian
8e411816c1 change deprecated label 2018-12-29 06:13:14 +00:00
Boshi Lian
928c2ffd2b auto generate server key if not exists 2018-12-29 06:13:13 +00:00
tgic
e27ae2115c make docker build happy 2018-12-29 06:12:52 +00:00
tgic
020ca59628 fix docker build lost ver 2018-12-29 06:12:52 +00:00
tgic
2dd6b9388f add autover to dockerfile 2018-12-29 06:12:52 +00:00
tgic
1a213c4adc add config doc 2018-12-29 06:12:52 +00:00
tgic
29a63b0c65 add CHALLENGER env support and google-authenticator 2018-12-29 06:12:51 +00:00
tgic
3c51e84300 Create Dockerfile 2018-12-29 06:12:51 +00:00