Skip to content

runtime: disable deprecated extensions names by default#18239

Merged
zuercher merged 7 commits intoenvoyproxy:mainfrom
zuercher:zuercher_flip_allow_deprecated_extensions_default_off
Sep 28, 2021
Merged

runtime: disable deprecated extensions names by default#18239
zuercher merged 7 commits intoenvoyproxy:mainfrom
zuercher:zuercher_flip_allow_deprecated_extensions_default_off

Conversation

@zuercher
Copy link
Member

Modifies the default value when looking up envoy.deprecated_features.allow_deprecated_extension_names such that deprecated extension names (e.g. envoy.router instead of envoy.filters.http.router) are no longer allowed. The deprecated names have been logged as such since Envoy 1.14.0. See #18238 which tracks removing this feature altogether.

Risk Level: low
Testing: updated unit tests
Docs Changes: n/a
Release Notes: updated
Platform Specific Features: n/a
Runtime guard: envoy.deprecated_features.allow_deprecated_extension_names

Signed-off-by: Stephan Zuercher <zuercher@gmail.com>
Signed-off-by: Stephan Zuercher <zuercher@gmail.com>
Signed-off-by: Stephan Zuercher <zuercher@gmail.com>
@zuercher zuercher added this to the 1.20.0 milestone Sep 23, 2021
Signed-off-by: Stephan Zuercher <zuercher@gmail.com>
@zuercher
Copy link
Member Author

cc @alyssawilk

Copy link
Contributor

@alyssawilk alyssawilk left a comment

Choose a reason for hiding this comment

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

Awesome!

}

// Test that the deprecated extension name still functions.
// Test that the deprecated extension name is disabled by default.
Copy link
Contributor

Choose a reason for hiding this comment

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

So I'm fine with all of these testing failure by default but if we hit coverage issue we may want to TestScopedRuntime these back to the prior behavior

Copy link
Member Author

Choose a reason for hiding this comment

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

I think the coverage is fine because there's still a test that exercises the logging path (e.g. when the runtime flag is enabled).

@alyssawilk alyssawilk self-assigned this Sep 23, 2021
Signed-off-by: Stephan Zuercher <zuercher@gmail.com>
Signed-off-by: Stephan Zuercher <zuercher@gmail.com>
Signed-off-by: Stephan Zuercher <zuercher@gmail.com>
@zuercher
Copy link
Member Author

/retest

@repokitteh-read-only
Copy link

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

🐱

Caused by: a #18239 (comment) was created by @zuercher.

see: more, trace.

@zuercher
Copy link
Member Author

Does this need another approval or is it minor enough that I should just merge it?

@alyssawilk
Copy link
Contributor

yeah AFIK I had approved and you retested?

@zuercher zuercher merged commit e77e587 into envoyproxy:main Sep 28, 2021
mpuncel added a commit to mpuncel/envoy that referenced this pull request Oct 29, 2021
* main: (114 commits)
  kafka: add header support to mesh-filter (envoyproxy#18248)
  rbac: add support for upstream ip policy. (envoyproxy#17645)
  SIPProxy BUGFIX UT failure for fastbuild/debug (envoyproxy#18303)
  quic: updating goaway code (envoyproxy#18291)
  various tiny fixes (envoyproxy#18287)
  dns cache: remove assert at this layer (envoyproxy#18301)
  [ext_authz]: ext_authz filter unit test that use real threading (envoyproxy#17742)
  signal action: fully disable sigaltstack on Apple (envoyproxy#18299)
  Add missing dependencies (envoyproxy#18297)
  ext_proc: Pass stream_info to gRPC streams (envoyproxy#18190)
  use clang 12 (envoyproxy#18220)
  Update PR template to include the "Fixes commit" message when reverting or fixing bad commits (envoyproxy#18298)
  [test] Fixing integration test to cleanup cleanly (envoyproxy#18293)
  test: moving grpc bridge tests out of core directory (envoyproxy#18227)
  runtime: disable deprecated extensions names by default (envoyproxy#18239)
  quiche: updating deps (envoyproxy#18272)
  sip_proxy: SIP protocol support in envoy (envoyproxy#18039)
  http: add core retry policy to route retry policy conversion utility (envoyproxy#17803)
  build: updating stale visibility (envoyproxy#18278)
  alternate_protocols_cache: Impose a max size limit on the alternate protocols cache (envoyproxy#18258)
  ...

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.

2 participants