mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 22:14:26 +00:00
fix(databases): restrict database updates to allowed fields only
- Modified the update_by_uuid method to use only the specified allowed fields from the request for database updates, enhancing data integrity and security.
This commit is contained in:
1 parent
9ecb1ca011
commit
7f30afb823
1 file changed
+1
-1
@@ -580,7 +580,7 @@ class DatabasesController extends Controller
|
||||
}
|
||||
|
||||
// Only update database fields, not backup configuration
|
||||
$database->update($request->all());
|
||||
$database->update($request->only($allowedFields));
|
||||
|
||||
if ($whatToDoWithDatabaseProxy === 'start') {
|
||||
StartDatabaseProxy::dispatch($database);
|
||||
|
||||
Reference in new issue
Block a user