Update inference-coop: Cloudron security analysis, vLLM migration path

This commit is contained in:
Botbot committed 2026-08-26 17:04:05 -06:00
1 parent daa27b2499
commit c2e703e7fd
1 file changed
+38 -5
+38 -5
View File
@@ -39,6 +39,16 @@ The backend that loads and serves open models via an OpenAI-compatible API.
**Start with Ollama, migrate to vLLM at scale.** Ollama is available as a Cloudron app (one-click install), handles model management, and exposes an OpenAI-compatible API. For <10 concurrent users, Ollama is sufficient. When usage grows, swap the backend to vLLM behind the same Open WebUI frontend — the API contract is identical. **Start with Ollama, migrate to vLLM at scale.** Ollama is available as a Cloudron app (one-click install), handles model management, and exposes an OpenAI-compatible API. For <10 concurrent users, Ollama is sufficient. When usage grows, swap the backend to vLLM behind the same Open WebUI frontend — the API contract is identical.
**The Ollama → vLLM migration is straightforward:**
1. Both expose the same OpenAI-compatible `/v1/chat/completions` endpoint
2. Open WebUI just needs the base URL changed from the Ollama endpoint to the vLLM endpoint
3. No data migration needed — models are stateless, conversation history lives in Open WebUI's database
4. The only real work is deploying vLLM (Docker container with GPU config) and updating one config value in Open WebUI
**Why not start with vLLM directly?** vLLM is not in the Cloudron app store, so it would need to be run as a standalone Docker container outside Cloudron's management — losing SSO integration, automatic updates, and the security sandboxing that Cloudron provides. For the MVP with 5-10 user-testers, Ollama's throughput is sufficient and the Cloudron integration is worth more than multi-tenant performance you won't use yet.
**When to migrate:** When concurrent users exceed ~10-15 or when you need to serve larger models (70B+) where Ollama's throughput becomes a bottleneck. At that point, deploy vLLM as a Docker container (either on the same server or a dedicated GPU instance) and point Open WebUI at it.
- vLLM: [https://vllm.ai/](https://vllm.ai/) — "The High-Throughput and Memory-Efficient inference and serving engine for LLMs" - vLLM: [https://vllm.ai/](https://vllm.ai/) — "The High-Throughput and Memory-Efficient inference and serving engine for LLMs"
- Ollama: [https://ollama.com/](https://ollama.com/) - Ollama: [https://ollama.com/](https://ollama.com/)
- vLLM production deployment guide: [Spheron (2026)](https://www.spheron.network/blog/vllm-production-deployment-2026/) - vLLM production deployment guide: [Spheron (2026)](https://www.spheron.network/blog/vllm-production-deployment-2026/)
@@ -148,13 +158,36 @@ This means **the entire cooperative platform** — inference, chat, governance,
### Recommendation ### Recommendation
**YunoHost is worth serious consideration** since Nathan already runs it for git.sixletters.org. It provides SSO, user management, and app installation. However, Cloudron has more polished app support (Open WebUI and Ollama are confirmed in the store) and better documentation. The trade-off: Cloudron costs €15/month, YunoHost is free. **Cloudron is the right choice for inference.coop.** The security model is materially stronger than YunoHost for running untrusted or semi-trusted software like model inference engines.
If running on YunoHost, Open WebUI and Ollama would need to be installed manually or via custom app packages. Check whether YunoHost's app catalog includes them. **Cloudron security model** (per [Cloudron security docs](https://docs.cloudron.io/security/)):
- **Docker app isolation:** Each app runs in its own Docker container. One app cannot access another app's database or files.
- **Read-only rootfs:** Apps cannot tamper with their own application code.
- **AppArmor profiles:** System calls restricted, `/proc` and `/sys` filesystems blocked.
- **Non-root execution:** All apps run as non-root user by default.
- **Per-app subdomains:** Prevents XSS in one app from compromising others (unlike sub-path deployments).
- **Dropped capabilities:** `CAP_SYS_ADMIN` and other dangerous capabilities are dropped.
- **Automatic SSL/TLS:** All apps HTTPS-only, A+ SSL Labs rating, HSTS, wildcard certs to avoid certificate transparency leaks.
- **Rate limiting:** Built-in protection against brute force on passwords, SSH, email, database.
- **Signed updates:** Platform updates GPG-signed, keys maintained offline.
- **No remote access:** No mechanism for cloudron.io to access your server.
- **Automatic OS security updates:** Ubuntu unattended-upgrades enabled.
- [Coolify](https://coolify.io/) **YunoHost security model** — YunoHost does not provide Docker-based app isolation by default. Apps are installed directly on the system (not in containers), meaning a vulnerability in one app can potentially affect others. There is no AppArmor profiling, no read-only rootfs, no per-app sandboxing. This is acceptable for trusted, well-maintained apps on a personal server, but is a real concern for:
- [YunoHost](https://yunohost.org/) - Running model inference engines that process untrusted user input
- Cloudron alternatives comparison: [AlternativeTo (2026)](https://alternativeto.net/software/cloudron/) - Running multiple services for multiple members (not just yourself)
- A cooperative that has a duty of care to its members' data
**Cost comparison:**
- Cloudron: €15/month license + VPS cost
- YunoHost: free + VPS cost
- The €15/month is the cost of containerized isolation, automatic security updates, and professional app packaging. For a cooperative handling member data and running inference workloads, this is a necessary expense, not a luxury.
**Alternative considered: Coolify** (open-source, self-hostable). Coolify deploys apps via Docker (better isolation than YunoHost) but lacks built-in SSO/LDAP user management and the polished app store. It's a middle ground but doesn't solve the unified account management problem as well as Cloudron.
- [Cloudron security docs](https://docs.cloudron.io/security/)
- [Cloudron vs YunoHost comparison](https://sugggest.com/compare/cloudron-vs-yunohost)
- [Self-hosted sandboxing platforms comparison](https://www.pistack.xyz/posts/2026-06-15-self-hosted-application-sandboxing-sandstorm-freedombox-cloudron/)
--- ---