Colin DeCarlo
86c369d7ce
Implement Webhooks ( #548 )
...
* feat: First Webhook PoC draft
* feat: Dispatch Webhooks PoC
* fix: typo in webhook configuration scope
* Update 2024_04_21_162552_create_webhooks_table.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update 2024_04_21_162552_create_webhooks_table.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update 2024_04_21_162544_create_webhook_configurations_table.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update 2024_04_21_162544_create_webhook_configurations_table.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update DispatchWebhooks.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update DispatchWebhooksJob.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update DispatchWebhookForConfiguration.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update DispatchWebhookForConfiguration.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update DispatchWebhookForConfiguration.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update DispatchWebhooksJob.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update DispatchWebhooksJob.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* Update DispatchWebhooksJob.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* chore: Implement Webhook Event Discovery
* we got a test working for webhooks
* WIP
* Something is working!
* More tests
* clean up the tests now that they are passing
* WIP
* Don't use model specific events
* WIP
* WIP
* WIP
* WIP
* WIP
* Do it sync
* Reset these
* Don't need restored event type
* Deleted some unused jobs
* Find custom Events
* Remove observers
* Add custom event test
* Run Pint
* Add caching
* Don't cache every single event
* Fix tests
* Run Pint
* Phpstan fixes
* Pint fix
* Test fixes
* Middleware unit test fix
* Pint fixes
* Remove index not working for older dbs
* Use facade instead
---------
Co-authored-by: Pascale Beier <mail@pascalebeier.de>
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
Co-authored-by: Vehikl <go@vehikl.com>
2024-10-26 20:35:25 -04:00
Lance Pioch
deb6603840
Revert "Add concat_space rule"
...
This reverts commit 96acd268bee7005fe1691b572a4674575604d437.
2024-10-19 21:14:41 -04:00
Lance Pioch
466f9f7edc
Add phpdoc_separation rule
2024-10-19 18:46:05 -04:00
Lance Pioch
d21740d458
Add phpdoc_align rule
2024-10-19 18:42:23 -04:00
Lance Pioch
96acd268be
Add concat_space rule
2024-10-19 18:30:34 -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
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
notCharles
44cc5a8132
Sort server vars for front end
2024-05-10 21:31:32 -04:00
Lance Pioch
c5008a43e7
Use new enum
2024-04-18 03:50:20 -04:00
Lance Pioch
0d2e63f590
Better route model binding
2024-03-22 21:32:12 -04:00
Lance Pioch
7c0a46deaa
Yet more static analysis
2024-03-17 13:46:01 -04:00
Lance Pioch
e9ea5b1cae
Even more static analysis!
2024-03-17 13:16:39 -04:00
Lance Pioch
3cea8ca979
Better static analysis
2024-03-17 12:52:22 -04:00
Lance Pioch
f7c2c1a84c
Formatting
2024-03-17 00:40:18 -04:00
Lance Pioch
1172fec6e5
Remove record not found exception
2024-03-16 23:34:45 -04:00
Lance Pioch
80c5a97038
Use logger helper
2024-03-16 23:27:24 -04:00
Lance Pioch
aa93cd65c1
Remove backup and mount repositories
2024-03-16 23:01:45 -04:00
Lance Pioch
449f875d20
Remove egg variable repository
2024-03-16 22:13:13 -04:00
Lance Pioch
384612360e
Remove server variable repository
2024-03-16 19:32:24 -04:00
Lance Pioch
60c32cdb81
Remove schedule and task repositories
2024-03-16 19:20:55 -04:00
Lance Pioch
4969aed383
Remove daemon command repo
2024-03-16 15:11:10 -04:00
Lance Pioch
4e42cd784a
Remove server repository and interface
2024-03-16 15:01:41 -04:00
Lance Pioch
a296084d6e
Remove nests
2024-03-14 01:27:50 -04:00
Lance Pioch
c83dd86a41
Switch namespace back to App
2024-03-12 22:39:16 -04:00
Robert Nisipeanu
85f1259709
fix(4752): check if description field present on request
2023-08-22 15:01:49 -10:00
Matthew Penner
1d38b4f0e2
Laravel 10 ( #4706 )
2023-02-23 12:30:16 -07:00
Devonte W
b746c3ead1
fix(api/client): add validation for backup request body ( #4704 )
2023-02-23 12:23:12 -07:00
Matthew Penner
866b6df4b0
api(task): ensure sequence_id
always starts at 1
2023-01-24 16:19:34 -07:00
Matthew Penner
2b14e46eec
api: fix sequence_id
being ignored in server task API
...
Closes #4434
2023-01-24 15:57:24 -07:00
Omar Kamel
e43da311fe
api(client): keep existing server description when empty ( #4619 )
2022-12-14 14:19:45 -07:00
Matthew Penner
039ad4abf0
api(server): log activity when server description is changed
2022-11-21 13:43:19 -07:00
Boy132
f2095e815e
Allow users to change the server description ( #4420 )
2022-10-31 10:20:53 -06:00
Matthew Penner
cbcf62086f
Upgrade to Laravel 9 ( #4413 )
...
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
2022-10-14 10:59:20 -06:00
Dane Everitt
c748fa9842
fix: exclude any permissions not defined internally when updating or creating subusers ( #4416 )
2022-10-09 16:14:16 -06:00
Dane Everitt
e0e0689846
feat: bump account key limit to 25 ( #4417 )
...
Closes #4394
2022-10-08 15:14:03 -06:00
DaneEveritt
f8c48214a5
Track file uploads on Wings, not the panel
2022-07-24 17:13:17 -04:00
DaneEveritt
4a8c3c4a34
Add activity tracking for console/power actions
2022-07-04 18:11:53 -04:00
DaneEveritt
dc90d8b505
Include the "user_uuid" claim on JWTs for easier Wings user tracking
2022-07-04 17:34:56 -04:00
DaneEveritt
0216e3fd5b
Don't log activity if the email wasn't actually changed
2022-07-03 14:29:01 -04:00
DaneEveritt
2d836156d2
Update totp disable modal; require password for enable operation
2022-07-03 14:27:37 -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
ca39830333
allow filtering servers by description; closes #4150
2022-06-26 13:26:12 -04:00
DaneEveritt
cf01490883
Support hiding activity from admin accounts not associated with the server
2022-06-18 15:48:22 -04:00
DaneEveritt
4f3651b578
Fix typo with identifier
2022-06-18 12:16:54 -04:00
DaneEveritt
2f1c8ae91d
Add basic server activity log view
2022-06-12 15:16:48 -04:00
DaneEveritt
0b4936ff1c
Break out rows for activity; show metadata icon
2022-06-12 15:08:26 -04:00
DaneEveritt
d1da46c5aa
Fix incorrect API definitions
2022-06-05 18:28:08 -04:00
DaneEveritt
03a497fb8a
Use a post request to delete SSH keys, some hashes use slashes which cause 404 errors; closes #4100
2022-05-30 17:28:42 -04:00
DaneEveritt
9300e1116d
Fix failing tests
2022-05-29 20:39:51 -04:00