Skip to content

matcher: add PathMatcher and use in routing, jwt and rbac#10010

Merged
lizan merged 2 commits intoenvoyproxy:masterfrom
yangminzhu:path-matcher
Feb 12, 2020
Merged

matcher: add PathMatcher and use in routing, jwt and rbac#10010
lizan merged 2 commits intoenvoyproxy:masterfrom
yangminzhu:path-matcher

Conversation

@yangminzhu
Copy link
Copy Markdown
Contributor

Signed-off-by: Yangmin Zhu ymzhu@google.com

For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md

Description: Add a new PathMatcher that strips the query and/or fragment string from the ":path" header before matching, use it in route, JWT and RBAC.
Risk Level: Low
Testing: Added unit tests and integration tests
Docs Changes: Updated types.rst for PathMatcher
Release Notes: Updated version_history.rst for RBAC API change
[Optional Fixes #Issue]
[Optional Deprecated:]

@repokitteh-read-only
Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/.

🐱

Caused by: #10010 was opened by yangminzhu.

see: more, trace.

@yangminzhu
Copy link
Copy Markdown
Contributor Author

This needs to be back-ported to 1.2 and 1.3 but it seems I cannot add the backport/review label according to https://github.com/envoyproxy/envoy/blob/master/RELEASES.md#backports.

@lizan @PiotrSikora , could you also review and approve for the backport, thank you.

@PiotrSikora
Copy link
Copy Markdown
Contributor

/backport

@repokitteh-read-only repokitteh-read-only bot added the backport/review Request to backport to stable releases label Feb 11, 2020
Signed-off-by: Yangmin Zhu <ymzhu@google.com>
Signed-off-by: Yangmin Zhu <ymzhu@google.com>
@yangminzhu
Copy link
Copy Markdown
Contributor Author

@lizan @mattklein123 Could you take a look at this one? The only change compared to the other approved PR in the private repo is the last commit that I pushed to fix the integration test.

It seems the path normalization is doing something strange here by changing the path from /allow#seg to /allow%23seg.

Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, great work! @PiotrSikora @lizan any further comments?

@PiotrSikora PiotrSikora added backport/approved Approved backports to stable releases and removed backport/review Request to backport to stable releases labels Feb 12, 2020
Copy link
Copy Markdown
Contributor

@PiotrSikora PiotrSikora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! One small comment.

@lizan lizan merged commit 7ea52d5 into envoyproxy:master Feb 12, 2020
@PiotrSikora
Copy link
Copy Markdown
Contributor

@yangminzhu could you send PRs with cherry-picks against the stable branches? Thanks!

@yangminzhu
Copy link
Copy Markdown
Contributor Author

@PiotrSikora Yes, I'm doing it now.

@yangminzhu yangminzhu deleted the path-matcher branch February 12, 2020 20:43
yangminzhu added a commit to yangminzhu/envoy that referenced this pull request Feb 12, 2020
…#10010)

Description: Add a new PathMatcher that strips the query and/or fragment string from the ":path" header before matching, use it in route, JWT and RBAC.
Risk Level: Low
Testing: Added unit tests and integration tests
Docs Changes: Updated types.rst for PathMatcher
Release Notes: Updated version_history.rst for RBAC API change

Signed-off-by: Yangmin Zhu <ymzhu@google.com>
yangminzhu added a commit to istio/envoy that referenced this pull request Feb 13, 2020
Cherrypick envoyproxy#10010

Signed-off-by: Yangmin Zhu <ymzhu@google.com>
PiotrSikora pushed a commit that referenced this pull request Feb 13, 2020
…10037)

Description: Add a new PathMatcher that strips the query and/or fragment string from the ":path" header before matching, use it in route, JWT and RBAC.
Risk Level: Low
Testing: Added unit tests and integration tests
Docs Changes: Updated types.rst for PathMatcher
Release Notes: Updated version_history.rst for RBAC API change

Signed-off-by: Yangmin Zhu <ymzhu@google.com>
PiotrSikora pushed a commit that referenced this pull request Feb 13, 2020
…rbac (#10010) (#10038)

Description: Add a new PathMatcher that strips the query and/or fragment string from the ":path" header before matching, use it in route, JWT and RBAC.
Risk Level: Low
Testing: Added unit tests and integration tests
Docs Changes: Updated types.rst for PathMatcher
Release Notes: Updated version_history.rst for RBAC API change

Signed-off-by: Yangmin Zhu <ymzhu@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/approved Approved backports to stable releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants