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
af4cba341a
Add config option to disable server descriptions for users ( #581 )
...
* add config option to disable server descriptions
* only disable server descriptions for users but not for admins
* Add ,
* invert
* unset description in server transformer if disabled
* remove testing leftover
---------
Co-authored-by: notCharles <charles@pelican.dev>
2024-09-29 00:35:57 +02: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
Exotical
1c1c8c0cc6
Fix client Activity tab issues; fixes #465 ( #466 )
...
* Remove deploy.locations from validator
* Change location data to optional for backwards compat
* Better styling
* Add back comma to follow coding style
* Remove EventServiceProvider from providers file
Fixes duplicated auth messages in the client Activity tab.
* Add null check on $model->actor
Prevents the client Activity tab page from breaking when an authentication attempt has failed.
* Proper type checking on $model->actor
Chose instanceof as it seems to be the best in terms of type safety.
Co-authored-by: MartinOscar <40749467+RMartinOscar@users.noreply.github.com>
* Revert removal of EventServiceProvider
* Remove subscription of AuthenticationListener
* Remove subscriptions for auth events
* Remove unused import Dispatcher
* Remove unused import AuthenticationListener
---------
Co-authored-by: MartinOscar <40749467+RMartinOscar@users.noreply.github.com>
2024-07-09 21:30:12 -07: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
70c31eef8f
Refactor UserTransformers ( #423 )
...
* remove AccountTransformer and update UserTransformer (client api) to match UserTransformer (application api)
* rename "toVueObject"
* fix tests
* forgot to rename this
* backwards compat
* fix tests
2024-06-23 16:33:18 +02:00
Lance Pioch
d9dc932e07
Remove unused import
2024-06-16 11:55:54 -04:00
Lance Pioch
f57232bc23
Fix tests
2024-06-16 11:50:08 -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
36e2fa8e2b
Wip
2024-06-13 11:31:58 -04:00
Djordy Koert
1d66d4c320
PHPStan workflow + PHPStan fixes ( #339 )
...
* add PHPStan to workflow
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
Co-authored-by: Djordy <djordy@lap-0394-djordy-koert.local>
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
2024-06-11 15:00:51 -04:00
Boy132
8f2261f6cd
add alias for node sftp address
2024-06-04 09:17:36 +02:00
Boy132
b1928e89b4
Merge branch 'pelican-dev:main' into replace/encrypt-decrypt
2024-05-31 23:04:43 +02:00
Lance Pioch
065f3f2468
Activity log fix #257
2024-05-31 15:18:04 -04:00
Boy132
b6e46f758d
Remove hashids ( #282 ) and close #269
2024-05-29 18:41:44 -04:00
Boy132
82fd547484
replace encrypt/ decrypt with encrypted casting
2024-05-28 15:24:20 +02:00
Boy132
f02eb5bfba
rename "oom_disabled" to "oom_killer" and invert logic
2024-05-12 22:21:22 +02:00
notCharles
54eaf8ab0f
Change colums
...
Closes https://github.com/pelican-dev/panel/issues/3
2024-04-13 21:51:22 -04:00
Lance Pioch
119ef075da
Small static analysis adjustments
2024-03-23 08:14:06 -04:00
Lance Pioch
c124d403ff
Use nullsafe operator
2024-03-19 16:46:25 -04:00
Lance Pioch
d58496a355
Replace with helper
2024-03-19 05:11:41 -04:00
Lance Pioch
7c0a46deaa
Yet more static analysis
2024-03-17 13:46:01 -04:00
Lance Pioch
c83dd86a41
Switch namespace back to App
2024-03-12 22:39:16 -04:00
Matthew Penner
1d38b4f0e2
Laravel 10 ( #4706 )
2023-02-23 12:30:16 -07:00
Devonte W
634c9353e3
fix(transformers): force object type for properties ( #4544 )
2022-11-21 13:28:46 -07:00
Boy132
032e4f2e31
Apply node maintenance mode to servers ( #4421 )
2022-11-06 16:02:30 -07:00
Matthew Penner
cbcf62086f
Upgrade to Laravel 9 ( #4413 )
...
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
2022-10-14 10:59:20 -06:00
DaneEveritt
d4708e9e63
Always show IP address to admins
2022-07-10 14:56:19 -04:00
DaneEveritt
d6c30092ec
Utilize a unique ID for activity logs to improve rendering perf
2022-07-10 14:53:29 -04:00
DaneEveritt
33ab762f5a
Add support for tracking more SFTP specific events
2022-07-09 19:30:38 -04:00
DaneEveritt
48af9bced1
Fix activity log rendering; closes #4208
2022-06-30 21:06:50 -04:00
DaneEveritt
4aa163b76f
Hide IP addresses from activity logs not generated by the user themselves
2022-06-27 20:52:27 -04:00
DaneEveritt
76472411e3
Some better activity translations
2022-06-18 16:36:19 -04:00
DaneEveritt
95de4c30fc
Abuse the translation engine to handle more of the formatting for us
2022-06-18 15:28:42 -04:00
DaneEveritt
0520014c0f
Add support for tracking when an activity event is triggered from an API key
2022-06-18 12:07:44 -04:00
DaneEveritt
68a654f9e8
Selectively show the additional metadata if it isn't in the display string at all
2022-06-12 15:30:49 -04:00
DaneEveritt
a5521ecb79
Add support for returning transforming activity logs on the front-end
2022-05-29 20:34:48 -04:00
DaneEveritt
33bafe9277
Simplify transformer logic
2022-05-22 16:23:22 -04:00
DaneEveritt
e9c633fd03
Update transformers and controllers to no longer pull an API key attribute
2022-05-22 15:37:39 -04:00
DaneEveritt
6554164252
Add test coverage for the SSH key endpoints
2022-05-14 18:08:48 -04:00
DaneEveritt
97280a62a2
Add support for storing SSH keys on user accounts
2022-05-14 17:31:53 -04:00
DaneEveritt
5705d7dbdd
Run php-cs-fixer
2022-05-14 16:03:50 -04:00
DaneEveritt
8c63eebf13
Fix fractal errors
2022-05-04 19:35:10 -04:00
DaneEveritt
4252014d18
Update includes definition to match updated package requirements
2022-05-04 19:11:42 -04:00
Alex
ef4410bac6
expose uptime to client resources API endpoint ( #3705 )
...
resolves #3704
2021-10-24 10:12:17 -07:00
Dane Everitt
5fdb0a5909
Correctly expose OOM disable state for a server
2021-09-13 21:02:12 -07:00
Dane Everitt
5d5e4ca7b1
Add support for locking backups to prevent any accidental deletions
2021-05-03 21:26:09 -07:00
Dane Everitt
92cd659db3
Add underlying data changes necessary for new task & schedule features
2021-05-01 10:44:40 -07:00