Boy132
b208835ed4
Add Oauth frontend and backend improvements ( #718 )
...
* better oauth provider loading
* add auth frontend
* add configs for all default providers
* add more default providers
* add env variables to enable oauth providers
* small refactor to link/ unlink routes
* add oauth tab to (admin) profile
* use redirects instead of exceptions
* add notification if no oauth user is found
* use import in config
* remove whmcs provider
* replace hardcoded links with `route`
* redirect to account page on unlink
* remove unnecessary controller and handle linking/ unlinking in action
* only show oauth tab if at least one oauth provider is enabled
2024-11-30 17:38:38 +01:00
MartinOscar
951fc73363
Add min length check ( #730 )
2024-11-27 09:02:41 +01:00
Boy132
d555c42644
Update all dependencies ( #712 )
...
* update composer.lock
* run pint
* fix phpstan
* update migrations (sqlite `dropForeign`)
* fix migrations
* Reset these back for now
* Alphabetize the rules
* run `php artisan filament:upgrade`
---------
Co-authored-by: Lance Pioch <git@lance.sh>
2024-11-22 09:27:57 +01:00
Boy132
54039e25a4
Make sure UTC is always used internally ( #713 )
...
* force app timezone to be UTC
* remove asDateTime overwrite
* add custom column to display dates in user timezone
* use `APP_TIMEZONE` as default timezone for new users
* revert accidental pinting
2024-11-15 20:41:33 +01:00
Boy132
408897cfcf
Allow username on filament login page + make case insensitive ( #714 )
...
* allow login with username
* make login case insensitive
* fix tests
2024-11-15 20:39:06 +01:00
Boy132
fe4668a517
Update web installer (again) ( #705 )
...
* update web installer (again)
* set default values for mysql/ mariadb and redis
* add own step for queue setup
* create admin user in submit
* disable redis for queue if cache isn't redis
* remove separate user step and make session own step
* use `request()->isSecure()`
2024-11-13 18:15:48 -05:00
Lance Pioch
6125b07afa
Remove old admin area ( #648 )
...
* Remove old admin
* Remove controller test
* Remove unused exceptions
* Remove unused files
* More small tweaks
* Fix doc block
* Remove unused service
* Restore these
* Add back autoDeploy
* Revert "Add back autoDeploy"
This reverts commit 630c1e08acf8056ce8e612f376fcd00c23d90aea.
* Add these back
* Add back exception
* Remove ApiController again
---------
Co-authored-by: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com>
Co-authored-by: Boy132 <mail@boy132.de>
Co-authored-by: notCharles <charles@pelican.dev>
2024-11-13 17:05:48 -05:00
Boy132
9717aa4b5f
Cleanup SoftwareVersionService
( #704 )
...
* cleanup SoftwareVersionService
* fix old admin area
* show latest wings version on EditNode page
* even more cleanup
2024-11-13 16:26:10 -05:00
notCharles
8ed6bb4d8b
pint
2024-11-13 16:22:12 -05:00
notCharles
a787af7a06
Prevent Select All
...
Prevent Select all on allocations, prevent people from trying to delete 30,000 ports at once ....
2024-11-13 16:21:27 -05:00
Boy132
a9b76a0f51
Improve egg import error handling ( #703 )
...
* make sure read & write are successful
* show exception message in notification
2024-11-07 17:15:47 -05:00
Boy132
b3501be6ec
Refactor api key permissions ( #361 )
...
* use RESOURCE_NAME for requests
* use RESOURCE_NAME for transformers
* add permissions field to api key
* add migration for new permissions field
* update tests
* remove debug log
* set column type to "json"
* remove default attribute to fix tests
* fix default value for permissions
* fix after merge
* fix after merge
* allow to "register" custom permissions
* add "role" to default resource names
* fix after merge
* fix phpstan
* fix migrations
2024-11-06 09:09:10 +01:00
MartinOscar
340ae8099b
Fix trusted proxies settings & Move ips to config & Add ipv6 ( #692 )
...
* Fix blank proxy & Move hardcoded cloudflare ips
* Add cloudflare's ipv6
* Pull from url innstead of hardcoded
* Remove Service
2024-11-01 18:16:59 -04:00
Boy132
9d02aeb130
Replace reCAPTCHA with Turnstile ( #589 )
...
* add laravel turnstile
* add config & settings for turnstile
* publish view to center captcha
* completely replace reCAPTCHA
* update FailedCaptcha event
* add back config for domain verification
* don't set language so browser lang is used
2024-11-01 18:15:04 -04:00
Charles
cf57c28c40
Update Webhooks to match other resources ( #686 )
...
* Move these
Move List/Create to their own pages to follow the flow of the other resources.
* Move EditPage aswell
* Move Save
* Labels
* Change Edit/Delete
---------
Co-authored-by: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com>
2024-11-01 18:14:20 -04:00
Boy132
382dcb3868
Fix redis connection check ( #698 )
2024-11-01 18:10:36 +01:00
Boy132
f793b49a81
Add egg filter to server mounts list ( #697 )
2024-11-01 18:10:24 +01:00
Boy132
7a447b04d5
Make sure roles always use web
guard name ( #690 )
2024-10-29 18:29:25 +01:00
MartinOscar
3f9c1dbc3c
Add prune & event blacklist ( #682 )
...
* Add prune & event blacklist
* Pinted 3times with --dirty bruh
* Add to Settings
* Fix prune & description
* Prune Logs not Configuration
2024-10-28 18:44:32 -04:00
Charles
bc2df22d78
Add unique ( #685 )
...
Usernames have to be unique, trying to make a new user with an existing username results in a 500, this fixes it.
2024-10-28 18:23:29 -04:00
Charles
fdd1b3798c
add whereNull ( #680 )
...
Add where null to not include allocations already assigned to a server.
2024-10-27 18:01:09 -04:00
Charles
288cbee32f
Fix Docker image selection ( #674 )
...
* Fix Docker image selection
Should address issue 672
Closes #672
* Fix Docker image selection in CreateServer page
---------
Co-authored-by: MartinOscar <40749467+RMartinOscar@users.noreply.github.com>
2024-10-27 11:22:12 -04:00
Charles
7acc8782bb
Make description required. ( #667 )
2024-10-26 22:06:34 -04:00
MartinOscar
f3de185508
Add back auto deploy ( #627 )
...
* Add Docker, Refactor, Fix Notification
Co-authored-by: notCharles <charles@pelican.dev>
* Pint
* Required adjustments
* Remove deprecated
* Third time's the charm
---------
Co-authored-by: notCharles <charles@pelican.dev>
2024-10-26 20:43:19 -04:00
Charles
291b514e24
Webhook updates ( #666 )
2024-10-26 20:40:19 -04:00
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
Charles
5f4429e2c3
Remove Bulk Delete from Nodes ( #665 )
...
* Remove Bulk Delete from Nodes
Removes bulk delete option from nodes.
* pint
2024-10-26 18:59:06 -04:00
Boy132
60792c05c2
Fix required
for pinned threads input ( #656 )
2024-10-23 12:50:09 +02:00
Boy132
94420d06be
Add UI for cpu pinning ( #652 )
...
* add ui for cpu pinning
* create "advanced" section
2024-10-22 23:34:46 +02:00
Boy132
a193b4f5ab
Installer: fix argument types for testConnection
& return type for submit
( #650 )
...
* fix argument types for `testConnection`
* fix return type of submit
2024-10-21 18:43:16 +02:00
Lance Pioch
de002324d7
Deselect all table records when switching primary allocation ( #645 )
2024-10-21 12:27:23 -04:00
Lance Pioch
bcbacb47cd
Fix #606 - Prevent database hosts bulk selection if host has any databases ( #640 )
...
* Prevent hosts with databases from being selected for bulk actions
* Add icons
* Update input to select
* Update app/Filament/Resources/DatabaseHostResource/Pages/ListDatabaseHosts.php
* Add placeholder
2024-10-20 14:20:32 -04:00
Lance Pioch
64943aa50c
Merge branch 'main' into lance/pint-fixes
2024-10-20 11:53:10 -04:00
Lance Pioch
e162374e15
Add return types
2024-10-20 11:41:46 -04:00
Lance Pioch
81c75f7966
Merge branch 'main' into lance/phpstan-return-types
2024-10-20 11:39:04 -04:00
Lance Pioch
2be8168468
Merge pull request #637 from pelican-dev/lance/enforce-di
...
Enforce Dependency Injection
2024-10-20 10:03:14 -04:00
Lance Pioch
465a372000
Merge pull request #641 from pelican-dev/lance/fix-node-create-redirect
...
Redirect to configuration file tab after creating the node
2024-10-20 10:00:53 -04:00
Lance Pioch
6a8e630444
Redirect to Admin Panel Dashboard after installer finishes
2024-10-19 22:16:55 -04:00
Lance Pioch
71aed151d9
Redirect to configuration file tab after creating the node
2024-10-19 22:11:24 -04:00
Lance Pioch
38be89a71e
Pint
2024-10-19 21:16:33 -04:00
Lance Pioch
deb6603840
Revert "Add concat_space rule"
...
This reverts commit 96acd268bee7005fe1691b572a4674575604d437.
2024-10-19 21:14:41 -04:00
Lance Pioch
c7a307af6e
Enforce return and parameter types
2024-10-19 21:02:49 -04:00
Lance Pioch
96acd268be
Add concat_space rule
2024-10-19 18:30:34 -04:00
Lance Pioch
c0a41acf1f
Add class_attributes_separation
2024-10-19 18:29:44 -04:00
Lance Pioch
54ea55d426
Enforce DI
2024-10-19 17:22:03 -04:00
Boy132
207d875df8
Fix default value for dns check on EditNode ( #635 )
2024-10-18 08:24:49 +02:00
Boy132
ff0215afed
Add permission check to delete button on EditServer ( #633 )
2024-10-18 08:24:14 +02:00
Boy132
f357c9501f
Auto-check eggs for update ( #620 )
...
* add command to check eggs for update
* add "update" button to ListEggs
* fix "unset"
* rename class
* add confirmation modal to update button
2024-10-15 22:54:06 +02:00
Boy132
f2063d7506
Follow up installer fixes ( #621 )
...
* enable installer on docker first run
* add SESSION_COOKIE to compose file
* `APP_ENVIRONMENT_ONLY` is long gone
* session env vars no longer needed after #624
* set defaults to null if sqlite is selected
2024-10-15 22:36:35 +02:00
Boy132
c0eedc16e0
Update web installer ( #614 )
...
* update web installer
* make sure we have a user
* save SESSION_SECURE_COOKIE as text so it's written correctly to the .env
* set `SESSION_COOKIE` so session doesn't expire when changing the app name
* Allow enter to go to next step
---------
Co-authored-by: notCharles <charles@pelican.dev>
2024-10-12 10:19:52 -04:00