Bug Report: S3 Presigned URL Lifespan Unit Mismatch (Minutes vs. Seconds)
Hi! I wanted to report a bug regarding the S3 Backup presigned URL generation in your addon. There is a unit mismatch between the UI and the backend logic that causes AWS uploads to fail.
The Admin panel UI asks for the lifespan in seconds (Presigned URL Lifespan (seconds)), but the backend controller (app/Http/Controllers/Api/Remote/Backups/BackupRemoteUploadController.php) calculates the expiration using the addMinutes() function.
For example, if a user inputs 86400 (expecting 1 day in seconds), the backend adds 86,400 minutes (60 days) to the current time. This immediately triggers the following AWS S3 exception:
The expiration date of a signature version 4 presigned URL must be less than one week.
Suggested Fix:
A quick fix would be changing addMinutes() to addSeconds() in the controller to match the UI. It might also be a good idea to hardcode a maximum cap of 7 days (604800 seconds) to ensure the strict AWS limit is never exceeded.
Hi! Thank you so much for reporting this bug!
We're happy to let you know that it's been fixed in Version 2.0.2. We really appreciate you taking the time to help us improve our product.
For future bug reports, we'd love if you could share them with us on Discord instead. Since BuiltByBit's review system is primarily for user feedback, bug reports are better suited for our Discord community where we can address them more quickly and collaboratively.
We understand that leaving a lower rating can impact our overall score, and we're grateful for your patience as we continue to improve. Your feedback is invaluable to us, and we're committed to delivering a better experience with each update.
Thanks again for being part of our community! If you have any other issues or questions, don't hesitate to reach out on Discord.
An Addon For Pterodactyl Panel For Managing S3 Credentials
Not yet rated
3 purchases
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
We're happy to let you know that it's been fixed in Version 2.0.2. We really appreciate you taking the time to help us improve our product.
For future bug reports, we'd love if you could share them with us on Discord instead. Since BuiltByBit's review system is primarily for user feedback, bug reports are better suited for our Discord community where we can address them more quickly and collaboratively.
We understand that leaving a lower rating can impact our overall score, and we're grateful for your patience as we continue to improve. Your feedback is invaluable to us, and we're committed to delivering a better experience with each update.
Thanks again for being part of our community! If you have any other issues or questions, don't hesitate to reach out on Discord.