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

wasm: clear route cache when modifying HTTP request headers. #14318

Merged
merged 4 commits into from
Dec 15, 2020

Conversation

PiotrSikora
Copy link
Contributor

Proxy-Wasm ABI v0.1.0 has a dedicated call for clearing route cache
(proxy_clear_route_cache).

Proxy-Wasm ABI v0.2.0 removed it in favor of automatically clearing
route cache, but that part was never implemented in Envoy.

Partially fixes proxy-wasm/spec#16.

Signed-off-by: Piotr Sikora piotrsikora@google.com

Proxy-Wasm ABI v0.1.0 has a dedicated call for clearing route cache
(proxy_clear_route_cache).

Proxy-Wasm ABI v0.2.0 removed it in favor of automatically clearing
route cache, but that part was never implemented in Envoy.

Partially fixes proxy-wasm/spec#16.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
mathetake
mathetake previously approved these changes Dec 8, 2020
Copy link
Member

@mathetake mathetake left a comment

Choose a reason for hiding this comment

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

LGTM ( once 0.0.1 removed, let's not forget to remove the ABI 😉 )

@PiotrSikora
Copy link
Contributor Author

LGTM ( once 0.0.1 removed, let's not forget to remove the ABI 😉 )

There is really no good reason for removing the support for Proxy-Wasm ABI v0.1.0. The extra code is minimal, it's always tested via Rust SDK, and we don't have deprecation policy written down anywhere. It also serves as a good test for support for multiple versions of the ABI.

On the other hand, if we really want to remove it, then we should do it before the next Envoy release, so that Proxy-Wasm ABI v0.1.0 is never shipped in a released version of Envoy.

@mathetake
Copy link
Member

I meant the future when we remove v0.0.1 after having deprecation policy 👍

Copy link
Member

@lizan lizan left a comment

Choose a reason for hiding this comment

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

any test?

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
@PiotrSikora
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

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

🐱

Caused by: a #14318 (comment) was created by @PiotrSikora.

see: more, trace.

@lizan lizan merged commit ca7250d into envoyproxy:master Dec 15, 2020
mpuncel added a commit to mpuncel/envoy that referenced this pull request Dec 16, 2020
* master: (49 commits)
  sds: allow multiple init managers share sds target (envoyproxy#14357)
  [http] Remove legacy codecs (envoyproxy#14381)
  http2: Add integration tests for METADATA and RST_STREAM frame flood mitigation for upstream servers (envoyproxy#14365)
  test: start dissolving :printers_include rule. (envoyproxy#14429)
  integration tests: re-enable set_node_on_first_message_only (envoyproxy#14270)
  formatter: add a formatter that returns a google::protobuf::Struct rather than a string (envoyproxy#14258)
  ratelimit: support returning custom response bodies for non-OK responses from the external ratelimit service (envoyproxy#14189)
  deps: update protobuf to 3.14 (envoyproxy#14253)
  stream_info: add setResponseCode and update local_reply to take a normal StreamInfo (envoyproxy#14402)
  http: alpn upstream (envoyproxy#13922)
  Moved starttls integration test to test/extensions/transport_sockets/starttls. (envoyproxy#14425)
  generic conn pool: directly use thread local cluster (envoyproxy#14423)
  wasm: add mathetake to CODEOWNERS (envoyproxy#14427)
  wasm: clear route cache when modifying HTTP request headers. (envoyproxy#14318)
  tls: disable TLS inspector injection (envoyproxy#14404)
  aggregate cluster: cleanups (envoyproxy#14411)
  Mark starttls_integration_test flaky on Windows (envoyproxy#14419)
  tcp: improved unit testing (envoyproxy#14415)
  config: making protocol config explicit (envoyproxy#14362)
  wasm: dead code (envoyproxy#14407)
  ...

Signed-off-by: Michael Puncel <mpuncel@squareup.com>
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.

ABI to customize upstream/origin selection
3 participants