fix(client-service): hide service/vm ids, mask vm password, encrypt module_vmware.password
- detail response drops id and vm.id/vmware_id, password returns *****
- GET client-service/{uuid}/vm-password returns the decrypted password to the owner
- renew accepts service uuid
- EncryptedOrLegacy cast for module_vmware.password
- vps specs: addon ram is stored in MB, convert to GB
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
66c7c0a6c3
commit
3c7710f1de
@@ -14,7 +14,7 @@ class VpsServiceResource extends JsonResource
|
||||
if ($addons->isNotEmpty()) {
|
||||
return [
|
||||
'cpu' => (int) $addons->where('addon_type', 'cpu')->sum('addon_value'),
|
||||
'ram' => (int) $addons->where('addon_type', 'ram')->sum('addon_value'),
|
||||
'ram' => round($addons->where('addon_type', 'ram')->sum('addon_value') / 1024, 2),
|
||||
'disk' => (int) $addons->where('addon_type', 'disk')->sum('addon_value'),
|
||||
'bandwidth' => (int) $addons->where('addon_type', 'bandwidth')->sum('addon_value'),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user