Commit Graph

1703 Commits

Author SHA1 Message Date
Dane Everitt f42bc8a031 Cleanup exception reporting, stop logging PDO exception stacks.
PDOException stacks include the MySQL password for the connection attempt and many people do not realize this when providing logs.
2018-02-04 13:31:39 -06:00
Dane Everitt ff8b5fc5a3 Fix exception when modifying existing DB host, closes #910 2018-02-04 12:59:14 -06:00
Dane Everitt de1d9502c1 fix error when resetting daemon secret, closes #915 2018-02-04 12:55:50 -06:00
Dane Everitt 0b00895261 fix saving of egg variable values, closes #905 2018-02-03 12:36:57 -06:00
Dane Everitt d9355b93b4 Fix exception when adjusting mail settings, closes #907 2018-02-03 12:28:39 -06:00
Dane Everitt 48c933fa0f fix exception when deleting allocations, closes #908 2018-02-03 12:22:10 -06:00
Dane Everitt ffa09d81e2 Pass strings for deletion of user sessions, closes #906 2018-02-03 12:18:18 -06:00
Dane Everitt 7a19019980 Fix suspension/installed handling for servers
closes Pterodactyl/Panel#891
2018-01-30 22:40:21 -06:00
Dane Everitt c599112021 Finalize server management API 2018-01-30 20:36:59 -06:00
Dane Everitt 1be7805481 Add line? 2018-01-28 17:14:34 -06:00
Dane Everitt 5ed164e13e Implement server creation though the API.
Also implements auto-deployment to specific locations and ports.
2018-01-28 17:14:14 -06:00
Dane Everitt 97ee95b4da Fix some error handling 2018-01-27 13:26:43 -06:00
Dane Everitt 8afced3410 Add nests & eggs
Cleanup middleware handling and parameters on controllers...
2018-01-27 12:38:56 -06:00
Dane Everitt de07b3cc7f Add server database management support to API. 2018-01-25 22:34:53 -06:00
Dane Everitt 2bd691efad Add database list endpoint, add more resource name magic 2018-01-25 21:26:06 -06:00
Dane Everitt 407120a854 Merge branch 'develop' into feature/api-v1 2018-01-21 17:06:31 -06:00
Dane Everitt 655d2485b5 Fix error causing inability to save variables. 2018-01-21 17:02:25 -06:00
Dane Everitt aca0819bcd Add server build management to API 2018-01-21 16:02:03 -06:00
Dane Everitt d3dba3fcf9 Fix bug when modifying server descriptions 2018-01-21 14:45:20 -06:00
Dane Everitt faaf27632c Fix behavior on automatic resource name setter 2018-01-21 14:37:57 -06:00
Dane Everitt 8dcab927e5 Merge branch 'develop' into feature/api-v1 2018-01-21 14:31:32 -06:00
Dane Everitt c369151397 Allow editing symlinked files 2018-01-21 14:24:59 -06:00
Dane Everitt c69f48ad83 Fix filemanager file edit bug, closes #867 2018-01-21 12:31:41 -06:00
Dane Everitt 2212f28351 Don't break the page if no variable rules are provided. 2018-01-21 11:58:59 -06:00
Dane Everitt 62fd299fa2 Fix some egregious search and replace action... 2018-01-21 11:38:16 -06:00
Dane Everitt 17f6f3eeb6 Add server details modification endpoint to API. 2018-01-20 16:03:23 -06:00
Dane Everitt 3e327b8b0e Use more logical route binding to not reveal resources on the API unless authenticated. 2018-01-20 15:33:04 -06:00
Dane Everitt 17544481b5 More server management via the API 2018-01-20 13:48:02 -06:00
Dane Everitt 3724559468 Forgotten changes 2018-01-19 21:48:26 -06:00
Dane Everitt a497a3d153 Make server listing and single server view API endpoints work 2018-01-19 21:47:06 -06:00
Dane Everitt 74bdbea6a4 Sneaky files 2018-01-19 20:01:56 -06:00
Dane Everitt 0e7f8cedf0 Reorganize API files 2018-01-19 19:58:57 -06:00
Dane Everitt bdadec002c Push updates to server transformer 2018-01-18 21:56:12 -06:00
Dane Everitt c3b9738364 Implement application API Keys 2018-01-18 21:36:15 -06:00
Dane Everitt f9fc3f4370 Update interface to begin change to seperate account API keys and application keys
Main difference is permissions, cleaner UI for normal users, and account keys use permissions assigned to servers and subusers while application keys use R/W ACLs stored in the key table.
2018-01-14 13:30:55 -06:00
Dane Everitt 14f9e1ad43 More permission removal cleanup 2018-01-14 12:11:04 -06:00
Dane Everitt ad3a954256 Rename APIKey to ApiKey 2018-01-14 12:06:15 -06:00
Dane Everitt 7aa540b895 Remove api permissions table 2018-01-14 12:05:18 -06:00
Dane Everitt e0fb7fa30c Fix failing ApiKeyCreationService test 2018-01-13 16:23:43 -06:00
Dane Everitt e3df0738da Change the way API keys are stored and validated; clarify API namespacing
Previously, a single key was used to access the API, this has not changed in terms of what the user sees. However, API keys now use an identifier and token internally. The identifier is the first 16 characters of the key, and the token is the remaining 32. The token is stored encrypted at rest in the database and the identifier is used by the API middleware to grab that record and make a timing attack safe comparison.
2018-01-13 16:06:19 -06:00
Dane Everitt 11c4f3f6f2 Finish putting permissions on the API 2018-01-13 14:08:19 -06:00
Dane Everitt d644a53951 Update users & locations to use new permissions format 2018-01-12 20:39:15 -06:00
Dane Everitt a31e5875dc First round of changes to API to support simpler permissions. 2018-01-11 22:49:46 -06:00
Dane Everitt 0e24c669c4 docblock 2018-01-11 20:08:49 -06:00
Dane Everitt cf21fd5a4b More API updates, better support for node config edits 2018-01-10 23:19:03 -06:00
Dane Everitt 800e2df6b2 Merge branch 'develop' into feature/api-v1
# Conflicts:
#	app/Contracts/Repository/RepositoryInterface.php
#	app/Repositories/Eloquent/EloquentRepository.php
#	app/Services/Nodes/NodeUpdateService.php
#	tests/Unit/Services/Nodes/NodeUpdateServiceTest.php
2018-01-10 20:55:22 -06:00
Dane Everitt bd238c7555 No more OOME checkboxes 2018-01-08 23:03:14 -06:00
Dane Everitt 02e4c1424e Select less data from servers 2018-01-08 22:23:12 -06:00
Dane Everitt 0acc260b81 Change order that allocations are loaded in on the allocation listing 2018-01-08 22:21:35 -06:00
Dane Everitt 22511c8e24 Fix allocation behavior, closes #712 2018-01-08 22:12:19 -06:00