-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Error calling HMAC plugin create_hash #2143
Comments
for reference see https://gitter.im/Mashape/kong?at=58b830f9f1a33b62756e9015 |
This was due to the |
@andjosh thx for the investigation, reopening this as to proper fix it in current versions as well. |
Since the credential secret is required to compute the signature, create a random secret which will be displayed back to the user as part of the response body. This fixes issue #2143.
Since the credential secret is required to compute the signature, create a random secret which will be displayed back to the user as part of the response body. This fixes issue #2143.
BTW, the fix in #2158 solves the issue of allowing a null secret; since this isn't a majorly pressing issue, I'd like to wait to merge until 0.10 is released, so as to avoid complicating the release any further. We'll also need to update the plugin docs to note this behavior change. |
Since the credential secret is required to compute the signature, create a random secret which will be displayed back to the user as part of the response body. This fixes issue #2143.
Since the credential secret is required to compute the signature, create a random secret which will be displayed back to the user as part of the response body. This fixes issue #2143.
Closing this, since it's fixed on the |
Summary
I have recently configured HMAC auth via the bundled plugin with only default settings on a new API. The only other plugin running on this API is the CORS bundled plugin. Upon receiving the signed request, kong returns a 500 error, with the logs:
I don't see what the
nil
value stems from. By line168
(https://github.com/Mashape/kong/blame/0.7.0/kong/plugins/hmac-auth/access.lua#L168) thehmac_params
have been collected and validated,headers
are present, andngx.req
is present. What's the issue?Steps To Reproduce
Additional Details & Logs
Here is the line in question: https://github.com/Mashape/kong/blame/0.7.0/kong/plugins/hmac-auth/access.lua#L58
The API in question is configured at the
mockbin
path.0.7.0
heroku
The text was updated successfully, but these errors were encountered: