Commit Graph

  • 64df3e168f Replace wg with workerpool Dane Everitt 2020-07-31 21:56:44 -07:00
  • 881cb84605 Actually set file permissions for servers when booting the daemon Dane Everitt 2020-07-31 21:55:30 -07:00
  • 03ef52c0db More use of workerpools for loading servers from the API Dane Everitt 2020-07-31 21:40:43 -07:00
  • f889a193bf Use NumCPU and not GOMAXPROCS Dane Everitt 2020-07-31 21:31:53 -07:00
  • 5366d0f652 Use a workerpool for configuration file updates Dane Everitt 2020-07-31 21:25:57 -07:00
  • 5e8425ad6a Code cleanup; use a worker pool for updating file permissions to avoid run-away go-routines Dane Everitt 2020-07-31 21:14:49 -07:00
  • 38efb68e8a Merge branch 'develop' of https://github.com/pterodactyl/wings into develop Dane Everitt 2020-07-31 21:02:27 -07:00
  • cf33a2464a Code cleanup for event listening and publishing Dane Everitt 2020-07-31 21:02:25 -07:00
  • cecc72110c Merge pull request #46 from pterodactyl/feature/docker-repo-auth Dane Everitt 2020-07-31 20:27:35 -07:00
  • 8f1ebdd39f Replace errors.Wrap with errors.WithStack #46 Matthew Penner 2020-07-31 21:22:01 -06:00
  • 776062107b Force upload file overwrite and remove un-needed TODO comments #44 Matthew Penner 2020-07-31 21:15:36 -06:00
  • da26b4c5c7 Merge pull request #41 from pterodactyl/fix/race-1 Dane Everitt 2020-07-31 20:11:21 -07:00
  • 5889d0585b Merge pull request #45 from pterodactyl/fix/disk-usage Dane Everitt 2020-07-31 20:06:58 -07:00
  • 8af26ac864 Merge pull request #43 from pterodactyl/impl/2194 Dane Everitt 2020-07-31 20:04:10 -07:00
  • d3843e1d28 Merge pull request #42 from pterodactyl/issue/2200 Dane Everitt 2020-07-31 20:02:39 -07:00
  • 5b999db7f3 Add Docker registry authentication Matthew Penner 2020-07-31 18:28:40 -06:00
  • afa6fb200e Force disk usage calculation when loading servers #45 Matthew Penner 2020-07-31 17:01:02 -06:00
  • b1940426c3 Merge develop into feature/file-uploads Matthew Penner 2020-07-31 16:31:06 -06:00
  • 43795a4be3 Document config options #43 Matthew Penner 2020-07-31 16:21:27 -06:00
  • b811d2474e Add the ability to define additional allowed origins Matthew Penner 2020-07-31 16:19:09 -06:00
  • e85b1cecb7 Fix 500 errors on file routes when accessing a file that doesn't exist #42 Matthew Penner 2020-07-31 16:01:32 -06:00
  • 5036077152 Hopefully fix a possible race condition when Unsubscribing from the EventBus while an event is being Published #41 Matthew Penner 2020-07-29 23:18:11 -06:00
  • 373dbd355e Better handling of subscribers to avoid a slice panic Dane Everitt 2020-07-29 21:56:22 -07:00
  • 7f9ec4402a Add emitters for install started/stopped Dane Everitt 2020-07-29 21:39:27 -07:00
  • f0d6f67c6b Fix memory leak with websocket not removing unused listeners Dane Everitt 2020-07-29 21:39:17 -07:00
  • 0b761320cc Fix error handling to be more accurate in the stacks Dane Everitt 2020-07-29 20:54:26 -07:00
  • db0dc17937 Fix exception when writing install logs Dane Everitt 2020-07-29 20:54:15 -07:00
  • 79ee259874 correctly return server resource stats; closes pterodactyl/panel#2183 Dane Everitt 2020-07-29 20:34:30 -07:00
  • 4d8f06a3e0 Use brute Dane Everitt 2020-07-19 19:16:01 -07:00
  • f567c2c15c Use the right files Dane Everitt 2020-07-19 18:40:01 -07:00
  • e7746a8359 Use the right files v1.0.0-beta.8 Dane Everitt 2020-07-19 18:40:01 -07:00
  • cb850fd81a Update all of the old UUID refs to new Dane Everitt 2020-07-19 17:53:41 -07:00
  • 5079c67aee Code cleanup and avoid server race Dane Everitt 2020-07-19 17:50:39 -07:00
  • e28c05ae56 Address some race conditions Dane Everitt 2020-07-19 17:46:39 -07:00
  • 21e58b57a1 Whoops, sync correctly Dane Everitt 2020-07-19 17:26:53 -07:00
  • 16467fa7ff Code cleanup Dane Everitt 2020-07-19 17:09:38 -07:00
  • 0cbaad5c72 Completely re-work the server configuration to be separated out better Dane Everitt 2020-07-19 16:27:55 -07:00
  • a00288aa64 Require a lock on the restart process to avoid double restarts causing unexpected behavior Dane Everitt 2020-07-18 16:46:41 -07:00
  • 6de18f09e5 Don't block websocket from handling another message when a long running proccess is triggered Dane Everitt 2020-07-18 16:45:10 -07:00
  • 8315ff8ae1 Misc mutex locking things to avoid data races Dane Everitt 2020-07-18 16:03:25 -07:00
  • 0b9d923d15 Allow the deletion of a file or directory that is a symlink pointing outside the data dir Dane Everitt 2020-07-18 12:19:54 -07:00
  • f0eeaae747 Remove debugging Dane Everitt 2020-07-18 11:58:55 -07:00
  • 085a02726b Handle path resolution errors better in the file walker Dane Everitt 2020-07-18 11:57:50 -07:00
  • 4f1b0c67d6 Address security vulnerabilities allowing certain internal processes to potentiallty escape server data directory Dane Everitt 2020-07-18 11:40:38 -07:00
  • 6e1844a8c9 Skip over when not exist Dane Everitt 2020-07-18 10:54:37 -07:00
  • 7c3da84248 chown the cleaned location, not the original path Dane Everitt 2020-07-18 10:49:28 -07:00
  • 1b5684e6f8 Make sure errors are handled Dane Everitt 2020-07-18 10:47:15 -07:00
  • 115131575d Return a 404 when the directory does not exist Dane Everitt 2020-07-18 10:16:40 -07:00
  • 21303dc517 Address race conditions when booting a server process Dane Everitt 2020-07-18 10:10:34 -07:00
  • daf682b991 Handle errors and cancel process when encountered Dane Everitt 2020-07-16 22:18:47 -07:00
  • a72d6f3768 Make the walk processor act the same as Go's walker Dane Everitt 2020-07-16 22:01:50 -07:00
  • d262c12b43 Less confusing waitgroup positioning Dane Everitt 2020-07-16 21:53:05 -07:00
  • f3c8220bd9 Change filewalker implementation to use a pool Dane Everitt 2020-07-16 21:51:31 -07:00
  • 7e1b7e7f36 Prevent race conditions when generating archives Dane Everitt 2020-07-16 19:56:53 -07:00
  • b2d34cf8e7 Don't cause a race condition Dane Everitt 2020-07-15 21:35:40 -07:00
  • a635cdd6b2 Support unarching in a better fashion with zip-slip protections and size checking Dane Everitt 2020-07-15 21:16:08 -07:00
  • ae46add8ef Remove unnecessary logic Dane Everitt 2020-07-15 19:24:13 -07:00
  • a4e6c4b701 Merge pull request #40 from pterodactyl/feature/decompress Dane Everitt 2020-07-15 18:48:20 -07:00
  • f4c10e5a23 Add some missing error handling, fix a few typos #40 Matthew Penner 2020-07-15 13:11:12 -06:00
  • b64f1897fb Add endpoint for decompressing archives Matthew Penner 2020-07-15 12:28:45 -06:00
  • 7a6397bf17 Add basic file upload support Matthew Penner 2020-07-12 16:43:25 -06:00
  • 6fd7ed23e3 Merge pull request #39 from pterodactyl/fix/2154 Dane Everitt 2020-07-12 12:02:27 -07:00
  • a98e376593 Calculate disk usage even if server has 'unlimited' disk space #39 Matthew Penner 2020-07-12 12:28:38 -06:00
  • eefc11bd0d Remove accidental debug line Dane Everitt 2020-07-12 10:26:26 -07:00
  • 60ebde4447 Fix deps? Dane Everitt 2020-07-12 10:26:20 -07:00
  • b3eba78743 Merge pull request #21 from pterodactyl/feature/server-mounts Dane Everitt 2020-07-11 17:19:51 -07:00
  • 233cefd129 Fix renaming to correctly create the base files if missing Dane Everitt 2020-07-11 16:19:51 -07:00
  • d60b2d6163 Support renaming multiple files at once Dane Everitt 2020-07-11 16:00:39 -07:00
  • 292f0d6452 Support deleting multiple files at the same time Dane Everitt 2020-07-11 15:33:53 -07:00
  • 7147f477e2 Throw error if empty files Dane Everitt 2020-07-11 13:38:25 -07:00
  • 2cef055ff2 use files not paths Dane Everitt 2020-07-11 13:28:17 -07:00
  • daf401e326 Block request if not enough space is available Dane Everitt 2020-07-11 13:16:12 -07:00
  • c1e591c99b Support generating a compressed archive for a server via the API Dane Everitt 2020-07-11 13:13:49 -07:00
  • 79928aff76 Merge branch 'develop' of https://github.com/pterodactyl/wings into develop Dane Everitt 2020-07-11 12:53:56 -07:00
  • 1f1eb507a9 Fix hilariously complex error stack retrevial Dane Everitt 2020-07-11 12:53:54 -07:00
  • 93228933bf Merge branch 'develop' into feature/server-mounts #21 Matthew Penner 2020-07-11 12:32:34 -06:00
  • 7afd5854bd Merge pull request #36 from pterodactyl/feature/diagnostics Dane Everitt 2020-07-05 10:53:04 -07:00
  • fe531e400d Merge pull request #37 from pterodactyl/server-environment-tweaks Dane Everitt 2020-07-05 10:40:32 -07:00
  • 1c92178091 Merge pull request #38 from schrej/ci/releases Dane Everitt 2020-07-05 10:37:40 -07:00
  • be990c9620 add release automation #38 Jakob Schrettenbrunner 2020-07-05 00:59:10 +02:00
  • 31d00333a7 change system.Version to var so we can set at build Jakob Schrettenbrunner 2020-07-05 01:26:36 +00:00
  • 7516ef1aa4 make binary built by actions executable Jakob Schrettenbrunner 2020-07-05 00:19:29 +02:00
  • 5ef58cadee add version flag Jakob Schrettenbrunner 2020-07-05 00:18:29 +02:00
  • a110d5768f guessing the ref name Jakob Schrettenbrunner 2020-07-05 00:10:35 +02:00
  • 13b89b93f2 ignore master and release branches, artifacts for PRs Jakob Schrettenbrunner 2020-07-05 00:06:23 +02:00
  • 39f3408e4f Well, that one was on me I guess Jakob Schrettenbrunner 2020-07-04 23:58:03 +02:00
  • c04042d07a oNlY sInGlE qUoTe StRiNgS Jakob Schrettenbrunner 2020-07-04 23:56:13 +02:00
  • 7d9c608f6b only create artifacts on develop and compress faster Jakob Schrettenbrunner 2020-07-04 23:54:03 +02:00
  • 7a456dcac4 add version to build artifact Jakob Schrettenbrunner 2020-07-04 23:44:22 +02:00
  • c071df2a31 add workflow to build and test Jakob Schrettenbrunner 2020-07-04 21:29:03 +00:00
  • f7948939eb Log if a mount isn't allowed Matthew Penner 2020-07-04 16:20:58 -06:00
  • f3419495cd Get the logger to log the cleaned mount paths as well Matthew Penner 2020-07-04 15:38:44 -06:00
  • 9f95efa3ae Clean the source and target paths when adding a mount Matthew Penner 2020-07-04 15:37:52 -06:00
  • 3a6050446f Add AllowedMounts configuration option, block any custom mounts if they are not in the AllowedMounts list Matthew Penner 2020-07-04 15:32:53 -06:00
  • 63e7bde39c Merge branch 'develop' into feature/server-mounts Matthew Penner 2020-07-04 15:17:59 -06:00
  • d339996b4e Tweaks to environment_docker.go, change container hostnames to use the server's uuid, add Domainname option #37 Matthew Penner 2020-07-04 15:14:22 -06:00
  • deb9305f56 add diagnostics command #36 vagrant 2020-07-04 20:57:54 +00:00
  • c5f4c3cfcb update github.com/docker/docker vagrant 2020-07-04 20:57:48 +00:00
  • 860e300c22 enable codeql security scanning Jakob 2020-07-04 21:30:38 +02:00
  • 82912595b7 Update SFTP logic for authentication to avoid brute forces; replicates logic from #9 Dane Everitt 2020-07-02 21:03:11 -07:00