Skip to content

http: return per route config when direct response is set#17449

Merged
mattklein123 merged 14 commits intoenvoyproxy:mainfrom
soulxu:fix_per_filter_regression
Aug 2, 2021
Merged

http: return per route config when direct response is set#17449
mattklein123 merged 14 commits intoenvoyproxy:mainfrom
soulxu:fix_per_filter_regression

Conversation

@soulxu
Copy link
Copy Markdown
Member

@soulxu soulxu commented Jul 22, 2021

Commit Message: http: return per route config when direct response is set
Additional Description:
When the direct response is set, the Route::routeEntry() could be nullptr, but it
doesn't mean there is no per route typed config. So the most specific route config
should be able to get from the class Route. So move the mostSpecificPerFilterConfigTyped
interface into class Route.
Risk Level: low
Testing: unittest
Docs Changes: n/a
Release Notes: n/a
[Optional Runtime guard:]
Fixes #17377

Signed-off-by: He Jie Xu hejie.xu@intel.com

Signed-off-by: He Jie Xu <hejie.xu@intel.com>
@soulxu
Copy link
Copy Markdown
Member Author

soulxu commented Jul 22, 2021

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #17449 (comment) was created by @soulxu.

see: more, trace.

Signed-off-by: He Jie Xu <hejie.xu@intel.com>
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 for fixing! One question.

/wait-any

soulxu added 4 commits July 25, 2021 13:58
Signed-off-by: He Jie Xu <hejie.xu@intel.com>
Signed-off-by: He Jie Xu <hejie.xu@intel.com>
Signed-off-by: He Jie Xu <hejie.xu@intel.com>
Signed-off-by: He Jie Xu <hejie.xu@intel.com>
@soulxu
Copy link
Copy Markdown
Member Author

soulxu commented Jul 26, 2021

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #17449 (comment) was created by @soulxu.

see: more, trace.

soulxu added 5 commits July 28, 2021 05:52
This reverts commit 202bf56.

Signed-off-by: He Jie Xu <hejie.xu@intel.com>
This reverts commit 9cb5663.

Signed-off-by: He Jie Xu <hejie.xu@intel.com>
Signed-off-by: He Jie Xu <hejie.xu@intel.com>
Signed-off-by: He Jie Xu <hejie.xu@intel.com>
Signed-off-by: He Jie Xu <hejie.xu@intel.com>
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, looks great. One small comment.

/wait

void RouteEntryImplBase::traversePerFilterConfig(
const std::string& filter_name,
std::function<void(const Router::RouteSpecificFilterConfig&)> cb) const {
const Router::RouteEntry* route_entry = routeEntry();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Isn't this the same bug? Shouldn't we not be gating this on routeEntry()? Or are you not fixing this because you want it changes extauth and you want to fix this separately? If the latter can you add a comment/TODO here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, I plan to fix this in separate PR, along with #17502, Let me add a todo.

Actually, I'm a little confused about the separate PR. I used to use gerrit before. Everybody is reviewing the each commit and merge each commit separately. But PR includes multiple commits, but look like people doesn't care about how many commits in a PR. But let me know what is preference way people do here :)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We squash all the commits when we merge, so just add as many commits as you want. The GH review system is very bad compared to Gerrit and this is the only way to make it reasonably work.

mattklein123
mattklein123 previously approved these changes Jul 28, 2021
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!

@soulxu
Copy link
Copy Markdown
Member Author

soulxu commented Jul 29, 2021

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #17449 (comment) was created by @soulxu.

see: more, trace.

@mattklein123
Copy link
Copy Markdown
Member

Sorry looks like this needs a main merge.

/wait

Signed-off-by: He Jie Xu <hejie.xu@intel.com>
@soulxu
Copy link
Copy Markdown
Member Author

soulxu commented Jul 29, 2021

Sorry looks like this needs a main merge.

/wait

done

@mattklein123
Copy link
Copy Markdown
Member

Sorry can you merge main again which should fix the verify examples breakage?

/wait

Signed-off-by: He Jie Xu <hejie.xu@intel.com>
@soulxu
Copy link
Copy Markdown
Member Author

soulxu commented Jul 31, 2021

Sorry can you merge main again which should fix the verify examples breakage?

/wait

haha, did merge again :)

@mattklein123
Copy link
Copy Markdown
Member

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #17449 (comment) was created by @mattklein123.

see: more, trace.

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!

@mattklein123 mattklein123 merged commit e071417 into envoyproxy:main Aug 2, 2021
@ggreenway
Copy link
Copy Markdown
Member

/backport

This results in broken configs, with no workaround.

@repokitteh-read-only repokitteh-read-only bot added the backport/review Request to backport to stable releases label Aug 4, 2021
baojr added a commit to baojr/envoy that referenced this pull request Aug 4, 2021
…bridge-stream

* upstream/main: (32 commits)
  tls: move ssl connection info into SocketAddressProvider (envoyproxy#17334)
  conn pool: default enable runtime feature `conn_pool_delete_when_idle` (envoyproxy#17577)
  api: LEDS api introduction (envoyproxy#17419)
  kafka: add support for api versions request in mesh-filter (envoyproxy#17475)
  ext_proc: Implement BUFFERED_PARTIAL processing mode (envoyproxy#17531)
  tooling: Async/pathlib/mypy cleanups and utils (envoyproxy#17505)
  xds: restructure CertificateProvider fields (envoyproxy#17201)
  Refactor OverloadIntegrationTest breaking out a test base, and the fake resource monitors. (envoyproxy#17530)
  listener: move active connection collection out of active tcp listener (envoyproxy#16947)
  tools: format checks for backticks (envoyproxy#17566)
  coverage: set lower limit for common/quic and common (envoyproxy#17573)
  v2: final source removal (envoyproxy#17565)
  test: bumping coverage (envoyproxy#17564)
  quic: enforcing header size and contents (envoyproxy#17520)
  Support for canonicalizing URI properly for AWS SigV4 signer (envoyproxy#17137)
  listener: add a stat for transport socket connect timeout (envoyproxy#17458)
  listener: add listen() error handling (envoyproxy#17427)
  http: return per route config when direct response is set (envoyproxy#17449)
  removing most v2 references from source/ (envoyproxy#17415)
  bug fix: return bootstrap when validating config (envoyproxy#17499)
  ...

Signed-off-by: Garrett Bourg <bourg@squareup.com>
ggreenway added a commit to ggreenway/envoy that referenced this pull request Aug 5, 2021
Backport of envoyproxy#17449, e071417

Co-authored-by: He Jie Xu <hejie.xu@intel.com>
Signed-off-by: Greg Greenway <ggreenway@apple.com>
ggreenway added a commit that referenced this pull request Aug 6, 2021
Backport of #17449, e071417

Co-authored-by: He Jie Xu <hejie.xu@intel.com>
Signed-off-by: Greg Greenway <ggreenway@apple.com>
@ggreenway ggreenway added backport/approved Approved backports to stable releases and removed backport/review Request to backport to stable releases labels Aug 9, 2021
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
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.

Disabling LuaPerRoute configuration doesn't work with envoy-v1.19.0

3 participants