-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signing does not work when using variables in URL #13
Comments
Thank you for reporting this @ludwigm Hassy changed this behavior in May: artilleryio/artillery-core@405b78e#diff-08c61297a57965f46e6bf18087f2066b I am following up there. |
This change allows beforeRequest hooks to create context vars, which will then be used in the templates of the current request as expected.
I have escalated this to artilleryio/artillery#544. |
For anyone impacted by this issue, @galvinhsiu has offered a workaround on #14 |
Fix for #13 and adds test target and notes.
@erikerikson I run into similar issue signature getting messed up due to later variable substitution than request validation. |
This issue ought to be resolved with release version |
@gwsii I currently on "artillery-plugin-aws-sigv4": "0.0.5". Still facing this issue. Any suggestions? |
Workaround is to use the changes from this pr - https://github.com/Nordstrom/artillery-plugin-aws-sigv4/pull/17/files |
I second mstoyanovv, please merge the fix above, it was very confusing navigating various open pull requests and comments to finally arrive here finding this unmerged fix. |
Hi,
I found out that the signing of the API calls does not work when using variables in your URL. I get 403 from the API Gateway that the Signature is wrong. More details can be found if the debug mode is switched on with setting
DEBUG=*
in front of your artillery run.The API Gateway responses are the following:
When debugging it can be seen that
requestParams
only contains the original URL with the placeholder variable:It seems that the templating and filling of variables is not done and the originally specified URL is used for signing which leads to a wrong signature.
Example config:
The text was updated successfully, but these errors were encountered: