sshpiper icon indicating copy to clipboard operation
sshpiper copied to clipboard

Support for certificate based authentication

Open carlo-quinonez opened this issue 1 year ago • 6 comments

I searched and saw some issues and even a PR that were relevant to certificate support, but it wasn't clear what plugin supports this nor how to configure it.

Our company has setup Step CA to enable certificate-based SSH access for service persons supporting customers with the devices we sell.

Does ssh-piper support certificate-based SSH authentication?

carlo-quinonez avatar Oct 17 '24 22:10 carlo-quinonez

yes both downstream and upstream

but need a customized plugin to do the ca verification

auth downstream in your case only right?

tg123 avatar Oct 17 '24 22:10 tg123

to verify downstream ca, need new custom plugin to send ca+cert to upstream, you can check exmaple here https://github.com/tg123/sshpiper/blob/master/plugin/testcaplugin/main.go

tg123 avatar Oct 18 '24 08:10 tg123

Yes, we only need to use certificate authentication of the user that's initiating the ssh connection.

And just want to confirm my understanding...

Downstream means User -> ssh-piper Upstream meand ssh-piper -> device

carlo-quinonez avatar Oct 18 '24 21:10 carlo-quinonez

correct

may i know which plugin you're using, i can add ca check support

tg123 avatar Oct 18 '24 22:10 tg123

At the moment, we're (re)planning out a solution.

full context

We designed, implemented and tested a solution based on ssh-piper V0, but project lost momentum and we never deployed it to production. The entire solution consisted of ssh-piper and AWS Step Functions to orchestrate transient jump hosts. The lifecycle of the jump host was tied to the lifecycle of the support case.

The solution involved two instances of ssh-piper, one to handle routing connections from our field service engineerings, and the second instance handled routing connections from the devices. We needed two instances of ssh-piper because people and machines needed to authenticate differently...

Now, we've been asked to resurrect the solution AND enhance it to support certificate based authentication and I'm trying to wrap my head around what, if any, changes we need to make to the prior solution.

carlo-quinonez avatar Oct 18 '24 23:10 carlo-quinonez

We were using the old database plugin

carlo-quinonez avatar Oct 18 '24 23:10 carlo-quinonez

i would suggest to take a look at https://github.com/tg123/sshpiper-openpubkey it integrates with google oauth with magic from open public key

also, CA support will be first added to yaml plugin soon

tg123 avatar Oct 21 '24 09:10 tg123

k8s and yaml now supports ca

tg123 avatar Nov 10 '24 11:11 tg123