No description
Find a file
Andras Bacsai 4cc668253e fix(database): prevent malformed URLs when server IP is empty
Add defensive null/empty checks in externalDbUrl() for all standalone database models to prevent "invalid proto:" errors when server IP is not available.

**Problem:**
When `$this->destination->server->getIp` returns null or empty string, database URLs become malformed (e.g., `mongodb://user:pass@:27017` with empty host), causing "invalid proto:" validation errors.

**Solution:**
Added early return with null check in externalDbUrl() method for all 8 database types:
- Check if server IP is empty before building URL
- Return null instead of generating malformed URL
- Maintains graceful degradation - UI handles null URLs appropriately

**Defense in Depth:**
While mount() guard (from commit 74c70b431) prevents most cases, this adds an additional safety layer for edge cases:
- Race conditions during server updates
- State changes between mount and URL access
- Direct model access bypassing Livewire lifecycle

**Affected Models:**
- StandaloneMongodb
- StandalonePostgresql
- StandaloneMysql
- StandaloneMariadb
- StandaloneClickhouse
- StandaloneRedis
- StandaloneKeydb
- StandaloneDragonfly

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-27 11:46:24 +01:00
.cursor docs(database-patterns): add critical note on mass assignment protection for new columns 2025-10-09 15:36:40 +02:00
.github Changes auto-committed by Conductor (#6916) 2025-10-17 20:33:16 +02:00
app fix(database): prevent malformed URLs when server IP is empty 2025-10-27 11:46:24 +01:00
backlog
bootstrap fix: handle redis_password in API database creation 2025-10-24 18:04:30 +02:00
changelogs
config version++ 2025-10-21 20:40:32 +02:00
database Changes auto-committed by Conductor 2025-10-16 13:45:49 +02:00
docker
hooks
lang Changes auto-committed by Conductor 2025-10-16 17:03:38 +02:00
other
public Merge pull request #6913 from yipfram/add/home-assistant 2025-10-22 21:41:44 +02:00
resources Merge pull request #6984 from Cinzya/feature/fix-allowedall-check 2025-10-26 11:00:15 +01:00
routes Changes auto-committed by Conductor 2025-10-16 13:19:05 +02:00
scripts fix(conductor-setup): update script permissions for execution 2025-10-10 16:06:30 +02:00
storage
templates fix(database): prevent malformed URLs when server IP is empty 2025-10-27 11:46:24 +01:00
tests fix: GitHub source creation and configuration issues 2025-10-25 10:49:09 +02:00
.AI_INSTRUCTIONS_SYNC.md
.coolify-logo
.dockerignore
.editorconfig
.env.development.example
.env.dusk.ci
.env.production
.env.windows-docker-desktop.example
.gitattributes
.gitignore
.mcp.json
.phpactor.json
artisan
CHANGELOG.md docs: update changelog 2025-10-21 07:10:01 +00:00
CLAUDE.md docs(database-patterns): add critical note on mass assignment protection for new columns 2025-10-09 15:36:40 +02:00
cliff.toml
CODE_OF_CONDUCT.md
composer.json
composer.lock
conductor.json fix: restore original run script functionality in conductor.json 2025-10-14 23:25:34 +02:00
CONTRIBUTING.md
docker-compose.dev.yml Replace minio with coollabs minio on coolify dev compose file 2025-10-22 12:36:49 +05:30
docker-compose.prod.yml
docker-compose.windows.yml
docker-compose.yml
LICENSE
openapi.json bump version to 4.0.0-beta.437 and update nightly version to 4.0.0-beta.438 2025-10-20 13:57:48 +02:00
openapi.yaml bump version to 4.0.0-beta.437 and update nightly version to 4.0.0-beta.438 2025-10-20 13:57:48 +02:00
package-lock.json Changes auto-committed by Conductor 2025-10-17 23:04:24 +02:00
package.json
phpunit.dusk.xml
phpunit.xml
pint.json
postcss.config.cjs
README.md Update sponsors list in README 2025-10-11 19:17:09 +02:00
rector.php
RELEASE.md
SECURITY.md Update SECURITY.md 2025-10-15 20:59:32 +02:00
TECH_STACK.md
versions.json version++ 2025-10-21 20:40:32 +02:00
vite.config.js

Latest Release Version

Bounty Issues

About the Project

Coolify is an open-source & self-hostable alternative to Heroku / Netlify / Vercel / etc.

It helps you manage your servers, applications, and databases on your own hardware; you only need an SSH connection. You can manage VPS, Bare Metal, Raspberry PIs, and anything else.

Imagine having the ease of a cloud but with your own servers. That is Coolify.

No vendor lock-in, which means that all the configurations for your applications/databases/etc are saved to your server. So, if you decide to stop using Coolify (oh nooo), you could still manage your running resources. You lose the automations and all the magic. 🪄

For more information, take a look at our landing page at coolify.io.

Installation

curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash

You can find the installation script source here.

Note

Please refer to the docs for more information about the installation.

Support

Contact us at coolify.io/docs/contact.

Cloud

If you do not want to self-host Coolify, there is a paid cloud version available: app.coolify.io

For more information & pricing, take a look at our landing page coolify.io.

Why should I use the Cloud version?

The recommended way to use Coolify is to have one server for Coolify and one (or more) for the resources you are deploying. A server is around 4-5$/month.

By subscribing to the cloud version, you get the Coolify server for the same price, but with:

  • High-availability
  • Free email notifications
  • Better support
  • Less maintenance for you

Donations

To stay completely free and open-source, with no feature behind the paywall and evolve the project, we need your help. If you like Coolify, please consider donating to help us fund the project's future development.

coolify.io/sponsorships

Thank you so much!

Big Sponsors

  • 23M - Your experts for high-availability hosting solutions!
  • Algora - Open source contribution platform
  • American Cloud - US-based cloud infrastructure services
  • Arcjet - Advanced web security and performance solutions
  • BC Direct - Your trusted technology consulting partner
  • Blacksmith - Infrastructure automation platform
  • Brand.dev - API to personalize your product with logos, colors, and company info from any domain
  • ByteBase - Database CI/CD and Security at Scale
  • CodeRabbit - Cut Code Review Time & Bugs in Half
  • COMIT - New York Times awardwinning contractor
  • CompAI - Open source compliance automation platform
  • Convex - Open-source reactive database for web app developers
  • CubePath - Dedicated Servers & Instant Deploy
  • Darweb - Design. Develop. Deliver. Specialized in 3D CPQ Solutions
  • Formbricks - The open source feedback platform
  • GoldenVM - Premium virtual machine hosting solutions
  • Gozunga - Seriously Simple Cloud Infrastructure
  • Hetzner - Server, cloud, hosting, and data center solutions
  • Hostinger - Web hosting and VPS solutions
  • JobsCollider - 30,000+ remote jobs for developers
  • Juxtdigital - Digital PR & AI Authority Building Agency
  • LiquidWeb - Premium managed hosting solutions
  • Logto - The better identity infrastructure for developers
  • Macarne - Best IP Transit & Carrier Ethernet Solutions for Simplified Network Connectivity
  • Mobb - Secure Your AI-Generated Code to Unlock Dev Productivity
  • PFGLabs - Build Real Projects with Golang
  • Ramnode - High Performance Cloud VPS Hosting
  • SaasyKit - Complete SaaS starter kit for developers
  • SupaGuide - Your comprehensive guide to Supabase
  • Supadata AI - Scrape YouTube, web, and files. Get AI-ready, clean data
  • Syntax.fm - Podcast for web developers
  • Tigris - Modern developer data platform
  • Tolgee - The open source localization platform
  • Ubicloud - Open source cloud infrastructure platform

Small Sponsors

OpenElements XamanApp UXWizz Evercam Imre Ujlaki jyc.dev TheRealJP 360Creators NiftyCo Dry Software Lightspeed.run LinkDr Gravity Wiz BitLaunch Best for Android Ilias Ism Formbricks Server Searcher Reshot Cirun Typebot Creating Coding Careers Internet Garden Web3 Jobs Codext Michael Mazurczak Fider Flint Paweł Pierścionek RunPod DartNode Tyler Whitesides SerpAPI Aquarela Crypto Jobs List Alfred Nutile Startup Fame Younes Barrad Jonas Jaeger Pixel Infinito Corentin Clichy Thompson Edolo Devhuset Arvensis Systems Niklas Lausch Cap-go InterviewPal

...and many more at GitHub Sponsors

Recognitions

Featured on Hacker News

Coolify - An open-source & self-hostable Heroku, Netlify alternative | Product Hunt

coollabsio%2Fcoolify | Trendshift

Core Maintainers

Andras Bacsai 🏔️ Peak
Andras Bacsai peaklabs-dev

Repo Activity

Alt

Star History

Star History Chart