-
I want to create a custom terminal-based cloudron app and connect to it using SSH. This app will process sensitive data, so I need to think about heightened security. The goal is to allow SSH access only, no public access whatsoever is needed.
Are there any good processes I could follow? I was thinking of restricting access only via Cloudron's VPN app, how would I implement this?
-
Hello @ekevu123
no public access whatsoever is needed
At least a health check path needs to be "exposed" for the app.
I was thinking of restricting access only via Cloudron's VPN app, how would I implement this?
With Cloudron 10 you can simply enable VPN protection for an app in the Access settings of the app.
But that only protects the http/s access, not exposed ports.
So if you app exposed e.g.: port2022as the SSH port that will still be accessible publicly even with the VPN protection enabled.think about heightened security
Only allowing ssh key based auth and no passwords for sure.
Also enforcing 2FA on SSH keys might also be an option to make it even more secure.The goal is to allow SSH access only
One idea that could also help although a little security via obscurity and with the VPN protection of the app.
Hide the SSH daemon behind a NGINX inside the Cloudron app.
This way the only port exposed from the app is e.g.:8080=> Cloudron NGINX443and could even serve a static HTML that can be used for health check in the manifest and also be a "honey pot" so it looks like just a website.
But when you connect to the domain with port443with SSH the NGINX will just route/stream that to the ssh daemon.
I am not 100% sure if that is possible with the Cloudron default NGINX setup.
That would need some testing. -
J joseph moved this topic from Support
-
J joseph marked this topic as a regular topic
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login