Matthew Penner
d1c0ca5260
server(filesystem): rebuild everything imaginable
...
This wonderfully large commit replaces basically everything under the
`server/filesystem` package, re-implementing essentially everything.
This is related to
https://github.com/pterodactyl/wings/security/advisories/GHSA-494h-9924-xww9
If any vulnerabilities related to symlinks persist after this commit, I
will be very upset.
Signed-off-by: Matthew Penner <me@matthewp.io>
2024-03-13 12:27:29 -06:00
Matthew Penner
d8df353ce8
replace deprecated ioutil function calls
2021-11-15 10:24:52 -07:00
Matthew Penner
d4a8f25cc6
parser: bug fixes ( #102 )
...
* parser: remove unnecessary type convertions
* parser: properly pass number and boolean values
* parser: set values if they don't exist
2021-08-24 17:05:02 -06:00
Jakob Schrettenbrunner
648072436f
organize imports with gopls format
2021-01-10 01:22:39 +00:00
Matthew Penner
a4c8b8714b
Bump all dependencies
2020-12-27 11:49:08 -07:00
Dane Everitt
59a111de39
Invite our lord and savior emperror back to the table
2020-12-15 21:56:53 -08: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
Dane Everitt
cff705f807
Support arrays within JSON and YAML documents better; closes pterodactyl/panel#1992
2020-09-09 20:27:41 -07:00
Dane Everitt
c19fc25882
Try to parse arrays more correctly; not quite working just yet but the concept seems to work
2020-09-07 17:27:23 -07:00
Dane Everitt
b33f14ddd9
Correctly handle replacements with escaped values; closes #2041
2020-06-29 20:08:36 -07:00
Dane Everitt
198a22f446
Replace even more zap occurences
2020-06-13 10:26:35 -07:00
Dane Everitt
bd063682dc
Better match handling I think?
2020-05-17 18:22:06 -07:00
Dane Everitt
c802a3397e
Fix warnings about configuration values; should always use the snake case since we're using a marshaled value
2020-05-17 17:25:53 -07:00
Dane Everitt
137b6cddae
Better parsing of regex replacements
2020-04-12 15:57:07 -07:00
Dane Everitt
9de094f078
Fix support for configuration files with more complex cases
2020-04-12 12:22:37 -07:00
Dane Everitt
e1435bfe8f
[#3896bk] Better support for XML documents
2019-12-01 15:40:08 -08:00
Dane Everitt
35cdff904f
[#3896bk] Support using configuration param inline with other values
2019-12-01 15:27:53 -08:00
Dane Everitt
6e9606bc89
[#3896bk] Add support for ini file parsing
2019-12-01 12:53:47 -08:00
Dane Everitt
86b909550c
[#3896bk] Migrate helper functions out of main file for readability
2019-12-01 12:25:16 -08:00