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

[TT-1475] respect ignored paths in CoProcessMiddleware #3452

Merged
merged 3 commits into from Feb 16, 2021

Conversation

gernest
Copy link
Contributor

@gernest gernest commented Feb 1, 2021

This adds a check before we process request with coprocess middleware to ensure we skip the middleware when we have
StatusOkAndIgnore set in context.

Related Issue

fixes #3383

Motivation and Context

If you have coprocess set and ignore extended paths. Then the ignored extended paths won't be respected.

How This Has Been Tested

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Refactoring or add test (improvements in base code or adds test coverage to functionality)

Checklist

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side). If pulling from your own
    fork, don't request your master!
  • Make sure you are making a pull request against the master branch (left side). Also, you should start
    your branch off our latest master.
  • My change requires a change to the documentation.
    • If you've changed APIs, describe what needs to be updated in the documentation.
    • If new config option added, ensure that it can be set via ENV variable
  • I have updated the documentation accordingly.
  • Modules and vendor dependencies have been updated; run go mod tidy && go mod vendor
  • When updating library version must provide reason/explanation for this update.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • Check your code additions will not fail linting checks:
    • go fmt -s
    • go vet

@buger buger added zendesk and removed zendesk labels Feb 2, 2021
Copy link
Contributor

@matiasinsaurralde matiasinsaurralde left a comment

Choose a reason for hiding this comment

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

Looks good, shouldn't break any existing functionality.

Copy link
Contributor

@tbuchaillot tbuchaillot left a comment

Choose a reason for hiding this comment

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

LGTM

@matiasinsaurralde matiasinsaurralde merged commit 8650e18 into master Feb 16, 2021
@matiasinsaurralde matiasinsaurralde deleted the respect-ignored-paths branch February 16, 2021 06:55
@matiasinsaurralde
Copy link
Contributor

/release to release-3

@tykbot
Copy link

tykbot bot commented Feb 16, 2021

Working on it! Note that it can take a few minutes.

@tykbot
Copy link

tykbot bot commented Feb 16, 2021

@matiasinsaurralde Succesfully merged 8650e1803309405da9ecd814da5e8efbf43732d5 to release-3 branch.

tykbot bot pushed a commit that referenced this pull request Feb 16, 2021
* respect ignored paths in CoProcessMiddleware

* add TestGRPCIgnore

This is initial test for checking if we have ingore plugin enabled

* check ignore on HookType_CustomKeyCheck

(cherry picked from commit 8650e18)
@matiasinsaurralde
Copy link
Contributor

/release to release-3-lts

@tykbot
Copy link

tykbot bot commented Feb 16, 2021

Working on it! Note that it can take a few minutes.

tykbot bot pushed a commit that referenced this pull request Feb 16, 2021
* respect ignored paths in CoProcessMiddleware

* add TestGRPCIgnore

This is initial test for checking if we have ingore plugin enabled

* check ignore on HookType_CustomKeyCheck

(cherry picked from commit 8650e18)
@tykbot
Copy link

tykbot bot commented Feb 16, 2021

@matiasinsaurralde Succesfully merged 8650e1803309405da9ecd814da5e8efbf43732d5 to release-3-lts branch.

@gregdelhon
Copy link

/release to release-3.2

@tykbot
Copy link

tykbot bot commented Feb 24, 2021

Working on it! Note that it can take a few minutes.

@tykbot
Copy link

tykbot bot commented Feb 24, 2021

@gregdelhon Seems like there is conflict and it require manual merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TT-1475 Ignored extended paths not working for coprocess auth/custom_middleware
5 participants