Skip to content

Feature Request: Add Support for new OPKSSH tool from Cloudflare #521

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

Closed
jbmay opened this issue Mar 29, 2025 · 7 comments
Closed

Feature Request: Add Support for new OPKSSH tool from Cloudflare #521

jbmay opened this issue Mar 29, 2025 · 7 comments

Comments

@jbmay
Copy link

jbmay commented Mar 29, 2025

Cloudflare just open sourced opkssh this week which allows you to generate ephemeral SSH keys using OIDC with an IdP. Here is their blog post about it.

This would be an awesome tool to integrate with xpipe since it would remove the need to store long lived SSH keys in xpipe's vault for users that configure it. Instead xpipe would call the opkssh tool, the user would be redirected to the SSO provider they have configured opkssh to use, and then xpipe could use the new SSH keys that were generated for the connections configured to use opkssh. Xpipe should reuse those SSH keys until they expire, and then if the user opens a connection with expired keys, restart the process by calling opkssh again.

@jbmay
Copy link
Author

jbmay commented Mar 29, 2025

They link it in the blog post I included, but here is a direct link to the GitHub repo for the tool: https://github.com/openpubkey/opkssh/

@crschnick
Copy link
Member

I will have to look at the manpage for that tool first to figure out how such a thing could be done. But sounds possible in theory

@crschnick
Copy link
Member

The tool it's very basic at this stage, best I can do is open a browser window once you get a permission denied with an expired key

@jbmay
Copy link
Author

jbmay commented Mar 30, 2025

Okay, I think that would be good enough to start!

I was looking at their readme and issue board yesterday and it looks like they have some improvements in progress already to expand what it can do. Really excited about this tool.

@crschnick
Copy link
Member

So I implemented the basic functionality in https://github.com/xpipe-io/xpipe-ptb

@jbmay
Copy link
Author

jbmay commented Mar 30, 2025

Awesome! I'll test it out when I get time.

@crschnick
Copy link
Member

This is now available in 16.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants