Skip to content
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

fix for issue #2951: internal error with invalid hmac-auth header #2994

Closed
wants to merge 13 commits into from

Conversation

mvanholsteijn
Copy link
Contributor

Summary

When an invalid hmac-auth header is sent by the client, kong generates an internal server error when enforce_headers are configured. The code did not check whether any headers were actually parsed.

Issues resolved

Fix #2951

Tieske and others added 13 commits September 11, 2017 13:52
This removes the `orderlist` property from the balancer entity. Due to a different implementation in the dns library, it is no longer required.

from Kong#2748
Follow-up commit to 5cb196c

This migration is targeted for landing in 0.12.0, and will ensure that
newly created APIs will have a `created_at` field with ms precision.

From Kong#2925
PRs Kong#2744 and Kong#2857 implemented the preflight options (for a minor
release). This adds the migrations including defaults (for a
major release).

From Kong#2883
See Kong#2643 Kong#1292 Kong#1535
Makes the `Authorization` header type configurable. The default remains `LDAP`, but strings such as `Basic` can be used for ease of testing via the browser. Incidentally, this fixes the case-insensitive parsing of the `LDAP` string, which was broken.

PR: Kong#2963.
Adds to the `oauth2` plugin a new parameter `auth_header_name` to define the header name
to use. By default its value is `"authorization"`.

From Kong#2928

Signed-off-by: Hisham Muhammad <[email protected]>
Adds a migration using the plugin_config_iterator helper.

Signed-off-by: Thibault Charbonnier <[email protected]>
Make sure we don't match "invalidldap" when searching for "ldap".

Prior to Kong#2963, this plugin did an incorrect pattern matching
leading it to accept invalid type strings, as long as they
ended with the letters in "LDAP". This adds a regression test
for that situation.

Signed-off-by: Thibault Charbonnier <[email protected]>
Adds tests for the functionality introduced in PR Kong#2963.

Signed-off-by: Thibault Charbonnier <[email protected]>
When the JWT plugin is configured with the property cookie_names, the
plugin will get the JWT token from one of the named cookies.

* add `config.cookie_names` ocnfiguration option
* add migration for previous records of this plugin
* add integration test suite

From Kong#2974
Fix Kong#2911 Kong#2894

Signed-off-by: Thibault Charbonnier <[email protected]>
@Tieske
Copy link
Member

Tieske commented Oct 30, 2017

@mvanholsteijn thx for the fix, would you mind rebasing this on master?

@mvanholsteijn mvanholsteijn deleted the issue-2951 branch October 30, 2017 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hmac-auth plugin results in an internal server error if the Authorization header is not matching
6 participants