* Centralized error throwing for encryption key
* Unifying the error message used by cli and core packages
* Improvements to error messages to make it more DRY
* Removed unnecessary throw
* Throwing error when credential does not exist to simplify node behavior (#3112)
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
* Changes to types so that credentials can be always loaded from DB
This first commit changes all return types from the execute functions
and calls to get credentials to be async so we can use await.
This is a first step as previously credentials were loaded in memory and
always available. We will now be loading them from the DB which requires
turning the whole call chain async.
* Fix updated files
* Removed unnecessary credential loading to improve performance
* Fix typo
* ⚡ Fix issue
* Updated new nodes to load credentials async
* ⚡ Remove not needed comment
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
* Setup custom endpoints properties in AWS credentials type
* Update AWS nodes to use new endpoints (if specified)
* Fix a few error scenarios cases where message was being obscured
* Extend usage of URL API to validate user inputted endpoints
https://nodejs.org/docs/latest-v12.x/api/url.html
* Add support to custom endpoints for SES
Forgot to add this in my earlier commits…
* Fix incorrect Amazon SES endpoint placeholder value
* Fixed signing problems with path being ignored. Standardized to avoid future problems
* Linting fix
* ⚡ Make parameters optinal (wip)
* Make sure that we fallback to correct URL without errors if custom endpoints are not used
Co-authored-by: Luis Ramos <luis@ramos.dev>
Co-authored-by: Omar Ajoue <krynble@gmail.com>