Skip to content

Conversation

@philschleier
Copy link
Contributor

This pull request fixes several things related to resource path matching in the oauth-category plugins.

It fixes a critical security issue: The resource path patterns defined in products are not matched against the entire request path but only require a subpath match (missing ^ and $).

Further, it brings the microgateway resource path processing more in line with the documentation at Manage API products by:

  • Allowing the use of single AND double asterisk in one URL
  • Disallowing empty strings with /**

It also makes sure matchesProxyRules remains a boolean instead of the array returned by String.prototype.match().

@keyurkarnik
Copy link
Collaborator

Changes look good. Can you please add a couple of tests to cover this change?

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.

2 participants