Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow override sshpiperd container arguments #216

Merged
merged 1 commit into from
Aug 30, 2023
Merged

allow override sshpiperd container arguments #216

merged 1 commit into from
Aug 30, 2023

Conversation

vholer
Copy link
Contributor

@vholer vholer commented Aug 30, 2023

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:

# Default entrypoint sshpiperd arguments
$ 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
# Completely custom sshpiperd arguments
$ 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

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
```
Dockerfile Show resolved Hide resolved
@tg123 tg123 merged commit 2256c13 into tg123:master Aug 30, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants