ext_authz: fixed a bug to honor filter_enabled_metadata when the filter is marked with disabled=true#41937
Conversation
…er is marked with disabled=true Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
10fecf7 to
56b3149
Compare
|
cc @envoyproxy/envoy-maintainers Edit: |
@adisuissa Should I revert this change first? We can discuss more offline. |
I believe that's up to a senior-maintainer to decide on this. |
|
@adisuissa @agrawroh I'm fine with however you want to proceed on this, whether it's revert or fix-forward. Whatever is easiest. Although if we're sure we don't want to keep the current behavior, and a replacement isn't ready before the next release (mid january I think), then revert would be better. |
…the filter is marked with disabled=true (envoyproxy#41937)" This reverts commit 04fe362.
…the filter is marked with disabled=true (envoyproxy#41937)" This reverts commit 04fe362. Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
## Description This PR clearly documents the limitations of using `filter_enabled_metadata` in the ExtAuthZ filter and that it doesn't work if the filter itself is disabled in the main filter chain or using a per-route override. We have also provided examples using `ExtensionWithMatcher` which should be the recommended way to invoke filters conditionally. The [previous attempt](#41937) which broke some expectations is reverted. Fix #41501 --- **Commit Message:** ext_authz: document the limitations of filter_enabled_metadata **Additional Description:** Add documentation for describing the limitations around using `filter_enabled_metadata` and provide workaround examples using `ExtensionWithMatcher`. **Risk Level:** N/A **Testing:** CI **Docs Changes:** Added **Release Notes:** N/A --------- Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
## Description This PR clearly documents the limitations of using `filter_enabled_metadata` in the ExtAuthZ filter and that it doesn't work if the filter itself is disabled in the main filter chain or using a per-route override. We have also provided examples using `ExtensionWithMatcher` which should be the recommended way to invoke filters conditionally. The [previous attempt](envoyproxy/envoy#41937) which broke some expectations is reverted. Fix envoyproxy/envoy#41501 --- **Commit Message:** ext_authz: document the limitations of filter_enabled_metadata **Additional Description:** Add documentation for describing the limitations around using `filter_enabled_metadata` and provide workaround examples using `ExtensionWithMatcher`. **Risk Level:** N/A **Testing:** CI **Docs Changes:** Added **Release Notes:** N/A --------- Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com> Mirrored from https://github.com/envoyproxy/envoy @ 2cdf0a1e8800bc9796a237c5965a976c4372f8f3
…proxy#42462) ## Description This PR clearly documents the limitations of using `filter_enabled_metadata` in the ExtAuthZ filter and that it doesn't work if the filter itself is disabled in the main filter chain or using a per-route override. We have also provided examples using `ExtensionWithMatcher` which should be the recommended way to invoke filters conditionally. The [previous attempt](envoyproxy#41937) which broke some expectations is reverted. Fix envoyproxy#41501 --- **Commit Message:** ext_authz: document the limitations of filter_enabled_metadata **Additional Description:** Add documentation for describing the limitations around using `filter_enabled_metadata` and provide workaround examples using `ExtensionWithMatcher`. **Risk Level:** N/A **Testing:** CI **Docs Changes:** Added **Release Notes:** N/A --------- Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com> Signed-off-by: MayorFaj <mayorfaj@gmail.com>
…er is marked with disabled=true (envoyproxy#41937) ## Description This PR fixes a bug to honor ``filter_enabled_metadata`` when the filter is marked with ``disabled: true``. The filter is now instantiated when ``filter_enabled_metadata`` is configured, allowing it to check dynamic metadata at runtime and enable itself conditionally. Fix envoyproxy#41501 --- **Commit Message:** ext_authz: fixed a bug to honor filter_enabled_metadata when the filter is marked with disabled=true **Additional Description:** Fixes a bug to honor ``filter_enabled_metadata`` when the filter is marked with ``disabled: true``. **Risk Level:** Low **Testing:** Added Tests **Docs Changes:** N/A **Release Notes:** Added Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com> Signed-off-by: Gustavo <grnmeira@gmail.com>
…proxy#42462) ## Description This PR clearly documents the limitations of using `filter_enabled_metadata` in the ExtAuthZ filter and that it doesn't work if the filter itself is disabled in the main filter chain or using a per-route override. We have also provided examples using `ExtensionWithMatcher` which should be the recommended way to invoke filters conditionally. The [previous attempt](envoyproxy#41937) which broke some expectations is reverted. Fix envoyproxy#41501 --- **Commit Message:** ext_authz: document the limitations of filter_enabled_metadata **Additional Description:** Add documentation for describing the limitations around using `filter_enabled_metadata` and provide workaround examples using `ExtensionWithMatcher`. **Risk Level:** N/A **Testing:** CI **Docs Changes:** Added **Release Notes:** N/A --------- Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com> Signed-off-by: Gustavo <grnmeira@gmail.com>
Description
This PR fixes a bug to honor
filter_enabled_metadatawhen the filter is marked withdisabled: true. The filter is now instantiated whenfilter_enabled_metadatais configured, allowing it to check dynamic metadata at runtime and enable itself conditionally.Fix #41501
Commit Message: ext_authz: fixed a bug to honor filter_enabled_metadata when the filter is marked with disabled=true
Additional Description: Fixes a bug to honor
filter_enabled_metadatawhen the filter is marked withdisabled: true.Risk Level: Low
Testing: Added Tests
Docs Changes: N/A
Release Notes: Added