Andras Bacsai
68f81df0bb
refactor(auth): enforce authorization checks across livewire components
...
Add authorization checks to multiple Livewire components to ensure users
have proper permissions before performing sensitive operations. This includes:
- Adding AuthorizesRequests trait to components handling deployments, backups,
services, and configuration uploads
- Enforcing 'deploy', 'update', and 'manageBackups' authorization checks
- Adding instance admin check for system upgrade operations
- Improving database queries with team ownership scope
- Moving backup trigger from component to button with new backupNow() method
2026-02-27 11:59:26 +01:00
Andras Bacsai
f77ad4cbd9
Complete Livewire legacy model binding migration (25+ components)
...
This completes the migration from Livewire's legacy `id="model.property"`
pattern to explicit properties with manual synchronization. This allows
disabling the `legacy_model_binding` feature flag.
**Components Migrated (Final Session - 9 components):**
- Server/Proxy.php (1 field)
- Service/EditDomain.php (1 field) - Fixed Collection/string bug & parent sync
- Application/Previews.php (2 fields - array handling)
- Service/EditCompose.php (4 fields)
- Service/FileStorage.php (6 fields)
- Service/Database.php (7 fields)
- Service/ServiceApplicationView.php (10 fields)
- Application/General.php (53 fields) - LARGEST migration
- Application/PreviewsCompose.php (1 field)
**Total Migration Summary:**
- 25+ components migrated across all phases
- 150+ explicit properties added
- 0 legacy bindings remaining (verified via grep)
- All wire:model, id, @entangle bindings updated
- All updater hooks renamed (updatedApplicationX → updatedX)
**Technical Changes:**
- Added explicit public properties (camelCase)
- Implemented syncData(bool $toModel) bidirectional sync
- Updated validation rules (removed model. prefix)
- Updated all action methods (mount, submit, instantSave)
- Fixed updater hooks: updatedBuildPack, updatedBaseDirectory, updatedIsStatic
- Updated Blade views (id & wire:model bindings)
- Applied Collection/string confusion fixes
- Added model refresh + re-sync pattern
**Critical Fixes:**
- EditDomain.php Collection/string confusion (use intermediate variables)
- EditDomain.php parent component sync (refresh + re-sync after save)
- General.php domain field empty (syncData at end of mount)
- General.php wire:model bindings (application.* → property)
- General.php updater hooks (wrong naming convention)
**Files Modified:** 34 files
- 17 PHP Livewire components
- 17 Blade view templates
- 1 MIGRATION_REPORT.md (documentation)
**Ready to disable legacy_model_binding flag in config/livewire.php**
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-13 15:38:59 +02:00
Andras Bacsai
f98c58a0a3
fix(ui): Restrict service retrieval to current team
2025-02-27 12:17:23 +01:00
Andras Bacsai
27e4882d57
feat(core): You can validate compose files with docker compose config
...
fix(core): labels are now accepted with both compose styles
refactor: remove lots of ray's
2025-02-27 11:29:04 +01:00
Andras Bacsai
1fe4dd722b
Revert "rector: arrrrr"
...
Staging Build / amd64 (push) Has been cancelled
Staging Build / aarch64 (push) Has been cancelled
Staging Build / merge-manifest (push) Has been cancelled
This reverts commit 16c0cd10d8 .
2025-01-07 15:31:43 +01:00
Andras Bacsai
16c0cd10d8
rector: arrrrr
2025-01-07 14:52:08 +01:00
Andras Bacsai
bfeaae9caa
fix: env variable in value parsed
2024-09-04 14:33:16 +02:00
Andras Bacsai
9864d380a3
fix: sync fqdn change on the UI
2024-08-15 11:23:44 +02:00
Andras Bacsai
1266810c4d
fix: better parsign performance for huge compose files
...
fix: env parsing
2024-06-25 10:34:56 +02:00
Andras Bacsai
a3255f3ab0
fix: refresh deployable compose without reload
2024-06-22 13:33:22 +02:00
Thijmen
d86274cc37
Fix styling
2024-06-10 20:43:34 +00:00
Andras Bacsai
2446dc6950
feat: toggle label escaping mechanism
2024-05-15 17:52:14 +02:00
Andras Bacsai
1802d5d5da
Add service_type field to Create.php and EditCompose.php
2024-04-16 10:44:23 +02:00
Andras Bacsai
50e96baea1
Refactor Livewire project new select blade template
2024-04-12 10:28:40 +02:00
Andras Bacsai
b5775ff9d2
ui ui ui ui ui ui ux ux ux ux ux ux
2024-03-21 12:44:32 +01:00