Lance Pioch
5353d38302
Merge branch 'main' into issue/68
...
# Conflicts:
# app/Filament/Resources/NodeResource/Pages/CreateNode.php
# app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php
# app/Filament/Resources/NodeResource/RelationManagers/NodesRelationManager.php
# app/Filament/Resources/ServerResource/Pages/CreateServer.php
# app/Filament/Resources/ServerResource/Pages/EditServer.php
# app/Filament/Resources/ServerResource/Pages/ListServers.php
# app/Filament/Resources/ServerResource/RelationManagers/AllocationsRelationManager.php
# app/Filament/Resources/UserResource/RelationManagers/ServersRelationManager.php
# app/Transformers/Api/Client/ServerTransformer.php
# composer.lock
# config/panel.php
2024-10-18 21:18:48 -04:00
Boy132
fc643f57f9
Admin Roles ( #502 )
...
* add spatie/permissions
* add policies
* add role resource
* add root admin role handling
* replace some "root_admin" with function
* add model specific permissions
* make permission selection nicer
* fix user creation
* fix tests
* add back subuser checks in server policy
* add custom model for role
* assign new users to role if root_admin is set
* add api for roles
* fix phpstan
* add permissions for settings page
* remove "restore" and "forceDelete" permissions
* add user count to list
* prevent deletion if role has users
* update user list
* fix server policy
* remove old `root_admin` column
* small refactor
* fix tests
* forgot can checks here
* forgot use
* disable editing own roles & disable assigning root admin
* don't allow to rename root admin role
* remove php bombing exception handler
* fix role assignment when creating a user
* fix disableOptionWhen
* fix missing `root_admin` attribute on react frontend
* add permission check for bulk delete
* rename viewAny to viewList
* improve canAccessPanel check
* fix admin not displaying for non-root admins
* make sure non root admins can't edit root admins
* fix import
* fix settings page permission check
* fix server permissions for non-subusers
* fix settings page permission check v2
* small cleanup
* cleanup config file
* move consts from resouce into enum & model
* Update database/migrations/2024_08_01_114538_remove_root_admin_column.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* fix config
* fix phpstan
* fix phpstan 2.0
---------
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
2024-09-21 12:27:41 +02:00
Lance Pioch
0a6b846230
Merge branch 'main' into issue/68
...
# Conflicts:
# app/Filament/Resources/ServerResource/Pages/CreateServer.php
# app/Filament/Resources/ServerResource/Pages/EditServer.php
# app/Filament/Resources/ServerResource/RelationManagers/AllocationsRelationManager.php
# app/Services/Allocations/AssignmentService.php
# database/Seeders/eggs/minecraft/egg-bungeecord.json
# database/Seeders/eggs/minecraft/egg-forge-minecraft.json
# database/Seeders/eggs/minecraft/egg-paper.json
# database/Seeders/eggs/minecraft/egg-sponge-sponge-vanilla.json
# database/Seeders/eggs/minecraft/egg-vanilla-minecraft.json
# database/Seeders/eggs/rust/egg-rust.json
# database/Seeders/eggs/source-engine/egg-counter-strike-global-offensive.json
# database/Seeders/eggs/source-engine/egg-custom-source-engine-game.json
# database/Seeders/eggs/source-engine/egg-garrys-mod.json
# database/Seeders/eggs/source-engine/egg-insurgency.json
# database/Seeders/eggs/source-engine/egg-team-fortress2.json
# database/Seeders/eggs/voice-servers/egg-mumble-server.json
# database/Seeders/eggs/voice-servers/egg-teamspeak3-server.json
2024-09-18 22:21:55 -04:00
Boy132
c2b1a98d29
Convert variable "rules" to array ( #507 )
...
* convert variable "rules" to array
* allow importing eggs with string rules
* fix tests
* update stock eggs to rules array
2024-08-19 08:33:53 +02:00
Boy132
2e094605e9
Round memory, swap and disk limits for wings ( #523 )
2024-08-04 22:21:23 +02:00
MartinOscar
acf43f2826
Ability to create allocations on EditServer page ( #494 )
...
* Ability to create allocation on edit page + Ability to assign allocation to server on creation
* Disable dehydrate for readonly
* set these to false
---------
Co-authored-by: notCharles <charles@pelican.dev>
2024-07-20 11:38:34 -04:00
Boy132
56484a2282
Increase guzzle timeout when running tests ( #485 )
...
* increase guzzle timeout when running tests
* catch correct exception
2024-07-20 17:18:45 +02:00
Boy132
a04937d698
Fix PORT_FLOOR
check and CIDR_MAX_BITS
in AssignmentService ( #491 )
...
* fix max cidr
* fix port floor
2024-07-17 13:01:13 +02:00
Charles
833ae30e59
Add timeouts ( #483 )
...
* Add timeouts
Add Timeouts to github call.
* use config value
2024-07-15 19:09:52 -04:00
Boy132
bb7c0e0e66
Add "Delete files" task ( #470 )
...
* started "delete files" task
* add logic to DeleteFilesService
* add frontend
* make nicer
* move description to right place
2024-07-10 09:25:15 +02:00
Lance Pioch
45fcc2a09a
Merge branch 'main' into issue/68
...
# Conflicts:
# app/Filament/Resources/DatabaseHostResource/Pages/CreateDatabaseHost.php
# app/Filament/Resources/DatabaseHostResource/Pages/EditDatabaseHost.php
# app/Filament/Resources/ServerResource/Pages/CreateServer.php
# app/Filament/Resources/ServerResource/Pages/EditServer.php
# app/Filament/Resources/ServerResource/Pages/ListServers.php
# app/Http/Requests/Admin/Node/AllocationFormRequest.php
# app/Http/Requests/Api/Application/Allocations/StoreAllocationRequest.php
# app/Models/AuditLog.php
# app/Models/Server.php
2024-06-26 21:52:05 -04:00
Boy132
fc92a87993
Add connection test to database hosts ( #410 )
...
* add connection test to database hosts
* fix phpstan
2024-06-25 18:42:55 -04:00
Boy132
5409532ca1
Fix the fix ( #424 )
2024-06-23 16:23:11 +02:00
notCharles
42ca4e7fba
This never happened...
2024-06-20 16:15:56 -04:00
notCharles
d6b71885ec
Add env. to egg upgrader
2024-06-20 16:00:17 -04:00
Lance Pioch
9d9720a5a2
Start servers by default
2024-06-17 10:47:43 -04:00
Lance Pioch
f57232bc23
Fix tests
2024-06-16 11:50:08 -04:00
Lance Pioch
44e0dd3e09
Remove final refs
2024-06-15 06:01:40 -04:00
Lance Pioch
0bd2935885
Merge branch 'main' into issue/68
...
# Conflicts:
# app/Filament/Resources/EggResource/RelationManagers/ServersRelationManager.php
# app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php
# app/Filament/Resources/NodeResource/RelationManagers/NodesRelationManager.php
# app/Filament/Resources/ServerResource/Pages/CreateServer.php
# app/Filament/Resources/ServerResource/Pages/ListServers.php
# app/Filament/Resources/ServerResource/RelationManagers/AllocationsRelationManager.php
# app/Filament/Resources/UserResource/RelationManagers/ServersRelationManager.php
# app/Models/Allocation.php
# app/Models/ApiKey.php
# app/Models/Server.php
# app/Models/User.php
2024-06-15 05:21:58 -04:00
Lance Pioch
4cba1540ac
Add endpoints
2024-06-15 05:14:54 -04:00
Lance Pioch
e15d515f71
Wip
2024-06-14 07:54:07 -04:00
Lance Pioch
36e2fa8e2b
Wip
2024-06-13 11:31:58 -04:00
Boy132
6916b89638
Fill startup & image from egg if missing in request ( #384 )
2024-06-13 15:48:36 +02:00
Boy132
0da184c56e
Get latest Panel & Wings version from github api ( #379 )
...
* get latest panel % wings version from github api
* fix tests
* remove unused CdnVersionFetchingException
2024-06-13 08:23:45 +02:00
Boy132
cd4fc1a95d
Add config variable to change between MiB
and MB
( #374 )
2024-06-13 08:22:29 +02:00
Boy132
61f3e965ba
Refactor egg services ( #358 )
...
* combine importer and updateimport
* integrate egg parser into importer
* remove EggCreationService and EggUpdateService
* run pint
* revert change to composer.json
* use egg exporter directly instead of old admin route
2024-06-11 21:01:31 +02:00
notCharles
8080435eca
It's Late...
2024-06-07 22:28:53 -04:00
notCharles
c5824ff26c
Whoops.... Fix env replacement...
...
Somehow this got copy pasta'd and yeh.... its not right...
2024-06-07 22:18:12 -04:00
Boy132
93f059025c
show update info on dashboard, show git commit (when using git)
2024-06-08 00:38:46 +02:00
Charles
b9d1ce4438
Merge pull request #334 from pelican-dev/issue/297
...
Better exception handling
2024-06-07 17:46:33 -04:00
Charles
9ce262bf56
Merge pull request #316 from pelican-dev/issue/node-update
...
Fix Node Updating
2024-06-07 17:44:10 -04:00
notCharles
7ee52affb2
Update token rotation
2024-06-07 17:38:58 -04:00
Boy132
cc1ac1eba1
Allow importing eggs via url ( #344 )
...
* allow importing eggs via url
* refactor
* run pint
* turn back into one button
* fix empty check
* small cleanup
* removed container for tabs
* Update URL function
* Use sys temp
---------
Co-authored-by: notCharles <charles@pelican.dev>
2024-06-07 17:31:34 -04:00
Charles
02d24b8a36
Fix the egg variable disaster... ( #331 )
...
* Migrations to update existing eggs in db
* Update stock eggs
* Update Eggs on import
* Also update updated versions of eggs that are uploaded
* Redo this..
Tests passed locally.
* Pint & Update replace
* Squash Migrations, simplify logic
* Maybe this way...
* Swap them over to single call
---------
Co-authored-by: Lance Pioch <git@lance.sh>
2024-06-07 16:23:25 -04:00
Lance Pioch
a4435a7454
Pint fix
2024-06-05 22:12:53 -04:00
Lance Pioch
df26c4f9f5
Better exception handling
2024-06-05 21:49:09 -04:00
Lance Pioch
6c2d0a2d50
Remove shenanigans
2024-06-02 21:59:12 -04:00
Lance Pioch
44f5ea567f
Merge branch 'main' into charles/rework-server
...
# Conflicts:
# app/Filament/Resources/ServerResource/Pages/EditServer.php
2024-06-02 17:46:45 -04:00
notCharles
0b0952650e
Remove labels/mounts if empty.
2024-06-02 13:43:25 -04:00
kubi
b804878d7b
Fix labels position in server config
2024-06-01 20:42:44 +00:00
notCharles
118977c8c5
Merge branch 'main' into charles/rework-server
2024-06-01 15:54:03 -04:00
notCharles
c31b7b8c6a
Correctly save labels on create
2024-06-01 15:52:13 -04:00
Lance Pioch
b3ca7b7ac9
Merge pull request #284 from Boy132/replace/encrypt-decrypt
...
Replace encrypt/decrypt with `encrypted` casting to resolve #4
2024-05-31 19:50:07 -04:00
Boy132
b1928e89b4
Merge branch 'pelican-dev:main' into replace/encrypt-decrypt
2024-05-31 23:04:43 +02:00
notCharles
cfe385f53a
Add uuid to egg exproter
...
Add UUID to egg exporter.
2024-05-31 16:01:15 -04:00
Lance Pioch
957638d4ac
Fill previously existing egg
2024-05-31 15:14:22 -04:00
Charles
97ac0fe54b
Add Reset Daemon Key Button ( #298 ) closes #292
2024-05-31 01:41:21 -04:00
notCharles
a6d07ede5a
Soon-TM
2024-05-29 19:18:09 -04:00
Boy132
f6325c07c4
Fix overallocation -1
and close #268 ( #283 )
2024-05-29 18:57:30 -04:00
Boy132
82fd547484
replace encrypt/ decrypt with encrypted casting
2024-05-28 15:24:20 +02:00