* 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>
* 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
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
```
* 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
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