Matthew Penner
ee08829a28
s3 backups: handle CompleteMultipartUpload and AbortMultipartUpload on the panel
2020-12-06 13:56:17 -07:00
Matthew Penner
de51fd1c51
Error handling improvements ( #71 )
...
* Remove `emperror.dev/errors`, remove all `errors#Wrap` and `errors#WithStack` calls
* Improve logging in `server/backup.go`
2020-11-28 16:57:10 -07:00
Dane Everitt
be9d1a3986
Replace error handling package with emperror; add better reporting for errors escaping server root
2020-11-08 13:52:20 -08:00
Matthew Penner
5475cb02c1
Cleanup s3 backup uploads, add request timeouts
2020-11-01 15:23:46 -07:00
Matthew Penner
1239b1c0ca
Switch to s3 multipart uploads for backups
2020-11-01 15:23:46 -07:00
Dane Everitt
b8598e90d4
Fix query parameter association on GET requests
2020-11-01 14:23:03 -08:00
Dane Everitt
fcccda2761
Endpoint fixes for GET requests and error handling
2020-11-01 14:04:57 -08:00
Dane Everitt
b8766d3c82
Start at next page, not current page
2020-10-31 13:38:19 -07:00
Dane Everitt
ca3becfb55
Correctly handle server responses and instantiation
2020-10-31 11:13:40 -07:00
Dane Everitt
41a67933eb
Use a paginated loop to fetch servers from the Panel rather than a single massive request
2020-10-31 11:05:53 -07:00
Dane Everitt
334b3e8d10
Refactor HTTP endpoints to be less complicated and follow better standards
2020-10-31 10:04:20 -07:00
Dane Everitt
947279a07c
Don't abort entire boot process due to one bad server egg; closes pterodactyl/panel#2448
2020-10-17 12:06:47 -07:00
Matthew Penner
ff597672db
Fix #2380
2020-09-20 12:51:12 -06:00
Dane Everitt
6ba15e9884
Better error handling from responses
2020-09-13 13:55:40 -07:00
Matthew Penner
7ba32aca84
Fix some typos and run gofmt on all .go files
2020-09-05 13:08:40 -06:00
Dane Everitt
1e633ae302
Bring the sftp server code into the package itself
2020-08-31 20:14:04 -07:00
Dane Everitt
a7ca6b2e34
Correctly report backup API errors; ref pterodactyl/panel#2271
2020-08-27 19:35:57 -07:00
Dane Everitt
7287b8e198
Pass the checksum type along in the request
2020-08-23 17:52:46 -07:00
Dane Everitt
cc52954a2a
Refactor environment handling logic to separate a server from the environment handler itself
...
This change makes the environment handling logic execute independent of the server itself and should make it much easier for people to contribute changes and additional environment handlers down the road without polluting the server object even more.
There is still a lot of work to do on this front to make things easier to work with, and there are some questionable design decisions at play I'm sure.
Welcome to additional modifications and cleanup to make this code easier to reason about and work with.
2020-08-10 21:38:42 -07:00
Dane Everitt
642e6e6a96
Different implementation of multi-check for done
...
Co-Authored-By: Matthew Penner <me@matthewp.io>
2020-08-04 21:29:43 -07:00
Matthew Penner
9bd10f1043
Changes to ProcessConfiguration
2020-08-04 21:41:09 -06:00
Matthew Penner
eb975e0cbd
Add option to strip ansi colors and split the done line in egg startup configuration
2020-08-04 17:39:54 -06:00
Dane Everitt
82912595b7
Update SFTP logic for authentication to avoid brute forces; replicates logic from #9
...
Co-Authored-By: Stepan Fedotov <trixterthetux@users.noreply.github.com>
2020-07-02 21:03:11 -07:00
Dane Everitt
db31722cfc
Don't cause a double stacktrace on certain errors
2020-06-22 20:51:41 -07:00
Dane Everitt
f8bffd8391
Start the process of migrating from zap to a cleaner CLI output for logs
2020-05-28 22:07:53 -07:00
Dane Everitt
911b809a4e
Clean debugging output to not include the full authorization key in debug output
2020-05-17 15:28:04 -07:00
Dane Everitt
b0fa5abe31
Less error spam for things not actually broken
2020-04-25 11:49:21 -07:00
Dane Everitt
11035b561a
Break out the backup functions of the daemon in prep for S3 support
2020-04-13 22:01:07 -07:00
Matthew Penner
814914ca19
Fix json#Unmarshal when there are no servers
2020-04-10 18:23:45 -06:00
Matthew Penner
4ea1b90560
Merge branch 'develop' into issues/1899
2020-04-10 17:27:39 -06:00
Dane Everitt
ac9ab4c0b0
Update to match new configuration structure
2020-04-10 15:22:15 -07:00
Matthew Penner
28c8f3f400
Add the ability to fetch all servers, fix cpu usage leak again..
2020-04-10 15:39:07 -06:00
Matthew Penner
5693d0431e
Merge branch 'develop' into feature/server-transfers
2020-04-04 17:17:09 -06:00
Dane Everitt
4ce2b73490
Add first implementation of local backups for a server
2020-04-04 16:07:25 -07:00
Matthew Penner
6af3cb2c9b
Get transfers 'fully' working, need to add fail request though
2020-04-04 16:15:49 -06:00
Matthew Penner
3dba11ac6f
Add ability to create archives of servers, add GET and POST /api/servers/:server/archive routes to get and request an archive of a server
2020-04-03 23:17:26 -06:00
Dane Everitt
59299d3cda
Add code to notify panel when install is completed
2020-01-19 13:30:54 -08:00
Dane Everitt
6ef2773c01
Very, very basic server installation process
2019-12-28 14:57:19 -08:00
Dane Everitt
fabaf21a0d
Sync all server details when booting daemon or server process
2019-12-22 13:21:21 -08:00
Dane Everitt
92a7c9d231
Don't freak out if the server doesn't exist on the remote
2019-12-16 20:47:35 -08:00
Dane Everitt
514c16ccc8
Less obtuse error handling from API responses
2019-12-16 20:34:58 -08:00
Dane Everitt
e2c04cc6f5
Change endpoint for SFTP credentials
2019-12-07 15:58:22 -08:00
Dane Everitt
865c1b3bad
Begin implementing SFTP server code
2019-12-07 15:53:07 -08:00
Dane Everitt
1003abaa63
[#3896bk] Configure base support for properties file parsing
2019-11-30 18:07:05 -08:00
Dane Everitt
cae0090763
Correct some error handling, use package that provides useful stack traces
2019-11-16 17:01:38 -08:00
Dane Everitt
00bc71afd1
Update stop for servers to use configuration
2019-09-22 21:22:16 -07:00
Dane Everitt
d7753d9c7f
Add initial support for fetching egg configuration from panel for servers
2019-09-22 20:47:38 -07:00
Dane Everitt
25053cb2db
Remove initial iterations of code for now, will ref it later
2019-04-03 23:15:47 -07:00
Jakob Schrettenbrunner
e1fbb03caf
remove api/routes.go
2018-05-17 21:24:23 +02:00
Jakob Schrettenbrunner
53a3fbc464
remove trailing slashes from api
...
use correct handler to provide server logs
remove Baerer from Authorization header to compare it with known tokens
fix wings-api.paw routes
2018-05-17 21:18:02 +02:00