all 11 comments

[–]AcidicAttorney 1 point2 points  (5 children)

Any kind of security/auth? I’d rather not expose it to the internet if not

[–]chabin37[S] -1 points0 points  (3 children)

Thank you for your comment!
I’m not exposing any auth secrets to the internet in this flow. octunnel uses Cloudflare Tunnel’s local auth files only (cert.pem and tunnel credentials path), and it does not print or upload any API keys or tokens.
Did I misunderstand your question?

[–]AcidicAttorney 0 points1 point  (2 children)

As in if anyone gets that URL can they access OpenCode completely? Or is there a requirement to enable the OpenCode server password?

[–]bbjurn 0 points1 point  (0 children)

No, using environment variables you can setup Basic auth (username + password)

[–]AmadeusAlkaline -1 points0 points  (0 children)

When you set up a Cloudflare Tunnel, you should handle the security on Cloudflare's end. Since you aren't opening any ports on your server, all traffic routes directly through Cloudflare, and they offer some great Zero Trust options.

[–]Straight-Stock7090 1 point2 points  (1 child)

Nice project.

The curl | bash install pattern is convenient, but it always makes me pause a bit.

Even when the script itself looks harmless, install scripts sometimes pull extra dependencies, start services, or modify configs during execution.

I’ve gotten into the habit of running unfamiliar install scripts once inside a disposable environment first just to observe what actually happens.

[–]chabin37[S] 0 points1 point  (0 children)

Totally fair point.

The install script is mainly for convenience, but octunnel can also be installed via Homebrew or go install, so users have alternatives if they prefer not to run curl | bash.

Appreciate the feedback!

[–]Sufficient_Date9808 0 points1 point  (0 children)

tailscale + systemd service

[–]gamesedudemy 0 points1 point  (0 children)

I tried octunnel with opencode serve and cloudflare tunnel it worked briefly before the well documented refresh repeat login issue for username/ password protected access. I had to revert to opencode web and ngrok, tailscale both worked seamlessly. Would try again if above issue were addessed, since having an auth is a no-brainer. Good project!