fix(proxmox): harden console sessions and firewall rollout safety
Reduce security and reliability risk across the Proxmox extension by removing password exposure from Livewire state, hardening console auth/cookie handling, and improving sanitized error paths. Improve firewall and router performance by adding safer lazy loading, bounded pagination, cross-server compatibility guards, and lower-overhead API workflows. Made-with: Cursor
This commit is contained in:
@@ -58,6 +58,14 @@ class Display extends Component
|
||||
{
|
||||
parent::mount($server);
|
||||
|
||||
if ($this->server->node?->is_lxc) {
|
||||
$this->redirect(
|
||||
route('proxmox.server.overview', ['server' => $this->server->id, 'notice' => 'display_unavailable']),
|
||||
navigate: true
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
$this->loadDisplayConfiguration(false);
|
||||
}
|
||||
|
||||
@@ -91,7 +99,8 @@ class Display extends Component
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
if ($notify) {
|
||||
$this->notify('Failed to load display settings: ' . $e->getMessage(), 'error');
|
||||
report($e);
|
||||
$this->notify('Failed to load display settings. Please refresh and try again.', 'error');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -130,7 +139,8 @@ class Display extends Component
|
||||
|
||||
$this->notify('Display configuration updated successfully. Reboot the VPS for changes to take effect.', 'success');
|
||||
} catch (\Exception $e) {
|
||||
$this->notify('Unable to update display settings: ' . $e->getMessage(), 'error');
|
||||
report($e);
|
||||
$this->notify('Unable to update display settings. Please try again.', 'error');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user