Skip to content

wasm: remove redundant xds attributes - #36619

Merged
kyessenov merged 2 commits into
envoyproxy:mainfrom
kyessenov:remove_wasm_attributes
Oct 21, 2024
Merged

kyessenov merged 2 commits into
envoyproxy:mainfrom
kyessenov:remove_wasm_attributes

Conversation

@kyessenov

@kyessenov kyessenov commented Oct 15, 2024 •

Copy link
Copy Markdown
Contributor

Change-Id: I152e259f3f8e5f69463a64fedce4181ce606824b

Commit Message: Remove attributes that were marked as deprecated in ff991f3. This improves the alignment of get_property ABI with the generic attribute support in Envoy in CEL, for example, and simplifies the implementation.

Additional Description:
Risk Level: low, experimental filter, advanced warning to stop using attributes was given
Testing: updated
Docs Changes: yes
Release Notes: yes

Change-Id: I152e259f3f8e5f69463a64fedce4181ce606824b
Signed-off-by: Kuat Yessenov <[email protected]>
@kyessenov

Copy link
Copy Markdown
Contributor Author

/coverage

@repokitteh-read-only

Copy link
Copy Markdown

Coverage for this Pull Request will be rendered here:

https://storage.googleapis.com/envoy-pr/36619/coverage/index.html

The coverage results are (re-)rendered each time the CI envoy-presubmit (check linux_x64 coverage) job completes.

🐱

Caused by: a #36619 (comment) was created by @kyessenov.

see: more, trace.

Change-Id: I729d48ded84ce3451c936cbe228eb3b0f2fc04d0
Signed-off-by: Kuat Yessenov <[email protected]>
@tyxia

tyxia commented Oct 16, 2024

Copy link
Copy Markdown
Member

/assign @mpwarres, based on CODEOWNER

@repokitteh-read-only

Copy link
Copy Markdown

neither of @mpwarres,, based, on, CODEOWNER can be assigned to this issue.

🐱

Caused by: a #36619 (comment) was created by @tyxia.

see: more, trace.

@tyxia

tyxia commented Oct 16, 2024

Copy link
Copy Markdown
Member

/assign @mpwarres

based on CODEOWNER

@tyxia

tyxia commented Oct 16, 2024

Copy link
Copy Markdown
Member

Side note: @kyessenov @alyssawilk looks like WSAM doesn't have maintainer sponsor currently given Lizan has left? https://github.com/envoyproxy/envoy/blob/main/CODEOWNERS#L106-L116

@kyessenov

Copy link
Copy Markdown
Contributor Author

I'm willing to sponsor the improvements to Wasm, as previously discussed.

tyxia added a commit that referenced this pull request Oct 16, 2024
@kyessenov
kyessenov merged commit 8fd5cc3 into envoyproxy:main Oct 21, 2024
wbpcode added a commit that referenced this pull request Aug 28, 2026
Commit Message: wasm: fix multiple bug of vm key and plugin key
calculation
Additional Description:

This PR fixed tow bugs of wasm vm cache key and wasm plugin cache key:
- now, the whole PluginConfig will be used to calculate the cache key.
Before this change, the plugins with different
`allow_on_headers_stop_iteration` may hit same cached plugin handle and
make unexpected behavior.
- now, the `capability_restriction_config` and `runtime` will be used to
calculate the vm cache key. Before this change, the plugin VMs with
different `capability_restriction_config` and `runtime` may hit same
cache and result in unexpected behavior.

---

Now, we also removed the traffic direction from the plugin cache key.
It's safe because it's unnecessary now.

Long time ago, before the #31365, we cannot extract the listener info
from the connection info, so the WASM will get the traffic direction and
listener metadata from the FactoryContext and store the reference at the
cached plugin. Then when `get_property` ABI is used, the plugin could
serve the related attributes.

And to avoid the wasm plugins that be configured in different listeners
(with different direction/metadata) hit same plugin cache, we added the
listener metadata and traffic direction in to plugin cache key
calculation at #17243.


But at the #36619 , we have did a great refactoring and removed the
dependencies to the traffic direction and listener metadata from the
FactoryContext. The `get_property` ABI will get attributes from the
stream info and stream level context. So, after that, it's unnecessary
to use the listener metadata and traffic direction as cache key. And at
the #36941, we removed the traffic direction and listener metadata from
the cached plugin completely. After that, the traffic direction/metadata
make nonsense in the cache key.

Risk Level: low.
Testing: n/a.
Docs Changes: n/a.
Release Notes: added.
Platform Specific Features: n/a.

---------

Signed-off-by: wbpcode <[email protected]>
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.

4 participants