Skip to content

Integration tests for local rate limit http filter - #16666

Merged
yanavlasov merged 377 commits into
envoyproxy:mainfrom
gokulnair:perconn_rl_15637
May 27, 2021
Merged

yanavlasov merged 377 commits into
envoyproxy:mainfrom
gokulnair:perconn_rl_15637

Conversation

@gokulnair

Copy link
Copy Markdown
Contributor

Commit Message:
We currently do not have any integration tests for the local rate limit http filter.
This PR adds integration tests to it.

Additional Description:
We added new functionality to the local rate limit filter in the form of connection specific rate limiting under PR #15843. Since this filter was lacking integration tests, it was decided to have a follow up task to address this gap.

Risk Level: Low

Testing:
Added integration tests.

Docs Changes:
Release Notes:

nitgoy and others added 30 commits May 5, 2021 21:20
in the resent version of rules_go, the issue bazel-contrib/rules_go#2771 was fixed.
It should address the bazel build issue on some Linux or MacOS (bazelbuild/bazel#12986)

Signed-off-by: izemlyanskiy <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
* test: common: network: add udp listener fuzzer.

Signed-off-by: davkor <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
…xy#16038)

* Bring parity to the docker images in the install docs pages

Signed-off-by: Sotiris Nanopoulos <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
…15958)

* Fix the default sampling rate for AWS X-Ray tracer extension to 5% and test for the same if no localized sampling rule is applied. Update the release notes with the bug fix information

Signed-off-by: Sunil Narasimhamurthy <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
* Remove HCM stream error runtime override. Remove envoy.reloadable_features.hcm_stream_error_on_invalid_message now deprecated

Signed-off-by: Alex Konradi <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
another breakout from envoyproxy#15833

Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
This PR updates our QUICHE dependency to commit
88c8d5903d851744410ea9840201b6507feae981.

Signed-off-by: David Schinazi <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
Signed-off-by: Peter Jausovec <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
Signed-off-by: Asra Ali <[email protected]>

Commit Message: Temporary CI fix before envoyproxy#16074
Risk Level: Low
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:

Signed-off-by: Gokul Nair <[email protected]>
envoyproxy#16109)

This change will not change the functionality,  it just changes the internal implementation detail.

JwKsCache holds both config and cache.  Currently,  the whole JwksCache object is in the thread local slot, but actually, only the  cache data needs to be in in the thread local.

This change will move the thread local data inside JwksDataImpl,  only stores its {jwks, and expire} into thread local. Move JwksCache object out of thread local.

This change is in preparation to support async fetch of remote_jwks proposed in envoyproxy#14556 (comment).

Detail changes:
* Created `tls` for {jwks, expire} inside JwksDataImpl
* Removed `tls` for JwksCache in FilterConfigImpl
* Removed `enable_shared_from_this` from FilterConfigImpl

Risk Level:  Low
Testing:  Unit-tested.
Docs Changes: None
Release Notes: None

Signed-off-by: Wayne Zhang <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
…stream duration (envoyproxy#15585)" (envoyproxy#16133)

This reverts commit ffa1680.

Signed-off-by: Snow Pettersen <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
aggregate dependabot updates and use pip-compile to resolve dependency hashes

Signed-off-by: Ryan Northey <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Gokul Nair <[email protected]>
Signed-off-by: Dan Zhang <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
* api: Update xds_protocol doc to remove v2 and cleanup

Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
Signed-off-by: Kevin Baichoo <[email protected]>

Commit Message: Fixed proto leaks.
Additional Description: Let protos manage memory themselves vs explicitly handling it with set_foo and release_foo
Risk Level: Low
Testing: NA
Docs Changes: NA
Release Notes: NA
Platform Specific Features: NA

Signed-off-by: Gokul Nair <[email protected]>
Risk Level: low (removing deprecated flag)
Testing: n/a
Release Notes: inline
Fixes envoyproxy#16004

Signed-off-by: Alyssa Wilk <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
…oxy#16173)

Risk Level: Low (removing deprecated flag)
Testing: n/a
Docs Changes: n/a
Release Notes: inline
Fixes envoyproxy#16014

Signed-off-by: Alyssa Wilk <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
Most of these were fixed by David's "stop writing to packets while under the stack of reading packets" merge, but a couple were fixed up by other PRs.

Risk Level: n/a (test only)
Testing: yes
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Alyssa Wilk <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
)

Adds a new configuration flag that makes the metrics service use
Labels to express tags instead of sending the full stats name
that might include embedded tag keys/values.

When configured, tags will be sent as labels while the reported
name will be the tag extracted name instead of the full name.

Risk Level: Low, new configuration flag
Testing: UTs
Docs Changes: Inline proto docs
Release Notes: Added

Signed-off-by: Snow Pettersen <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
The release assert in question was ahead of verifying the return code.

Risk Level: low - most (possibly all) envoy production usage does not happen on apple hardware.
Testing: added new test that repro.

Fixes envoyproxy#16021
Signed-off-by: Jose Nino <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Gokul Nair <[email protected]>
…iB (envoyproxy#15921)

Commit Message:
Raise max configurable max_request_headers_kb limit to 8192 KiB (8MiB) from 96 KiB in http connection manager protobuf.

Additional Description:
Added/Updated relevant unit tests and integration tests. This change will allow increasing max_request_headers_kb to 8MiB from http connection manager's configuration. The change is mainly updating the limit in a validation check in the protobuf. Also, the old (merged) PR envoyproxy#5859 is read, no nghttp2 library-related issues are observed on raising the max_request_headers_kb beyond 96 KiB.
Risk Level: Low
Testing: Unit, Integration, Manual
Docs Changes: Inline in proto file.

Signed-off-by: Anirudha Singh <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
…ion to an origin. (envoyproxy#16127)

grid: Add a new class for tracking alternate protocols for a connection to an origin.

Create a new AlternateProtocols class which tracks the list of alternate
protocols which can be used to make connections to origins.

Risk Level: Low
Testing: New Unit tests
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

Signed-off-by: Ryan Hamilton <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
…envoyproxy#16155)

This PR
- adds a patched version of intersphinx (~from sphinx-doc/sphinx#8981)
- uses versioned refs for version history
- cleans up inline literals in version history

Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
Gokul Nair and others added 19 commits May 5, 2021 21:20
Signed-off-by: Gokul Nair <[email protected]>
* http::cache: Adds serving HEAD requests from cache.

Relevant issue: envoyproxy#10020

Signed-off-by: Eleonora Kiziv <[email protected]>

Commit Message: Adds serving HEAD requests from cache. Does not add storing HEAD responses in cache.
Additional Description: Relevant issue: envoyproxy#10020
Risk Level: Low
Testing: Unit, integration

Signed-off-by: Eleonora Kiziv <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
Commit Message: api: Fix generated_api_shadow BUILD
Additional Description:

Some changes were made to the api/BUILD file in envoyproxy#16077 which were not propagated to generated_api_shadow
this is also a possible reason that a dev reported an issue with ci formatting

Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
This PR introduces EnvoyQuicSessionCache, which is responsible
for saving QUIC+TLS session tickets which are required for 0-RTT.

Risk Level: Low
Testing: unit tests, integration test
Docs Changes: None
Release Notes: None
Platform Specific Features: None

Closes envoyproxy#16234

Signed-off-by: David Schinazi <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
* listener: allow changing address

Signed-off-by: Taylor Barrella <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
Commit Message: Support the clear_route_cache parameter on responses
from the remote server

Risk Level: Low. Only enabled if the flag is set.

Testing: New unit test to ensure that the method is called.

Docs Changes: Marked "clear_route_cache" in the API as no longer
"not-implemented".

Release Notes: If the clear_route_cache flag is set on a
response from the external processing server, then the filter will
call the "clearRouteCache" method on the filter state. Processors
should set this flag if they have changed any headers, such as
":path", which may affect routing after the filter runs.

Signed-off-by: Gregory Brail <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
Signed-off-by: Alyssa Wilk <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
@gokulnair
gokulnair requested a review from mattklein123 as a code owner May 25, 2021 23:39
@gokulnair

gokulnair commented May 25, 2021 •

Copy link
Copy Markdown
Contributor Author

Integration tests for local rate limit filter as follow up task of #15843 :-)
cc @antoniovicente @alyssawilk @rgs1

Signed-off-by: Gokul Nair <[email protected]>
@yanavlasov

Copy link
Copy Markdown
Contributor

Thanks for making this change. The tests look good. I'm unsure if it possible to add flake free tests with token refreshes using BaseIntegrationTest::time_system_

Maybe @jmarantz have any suggesting for that. Otherwise LGTM

@yanavlasov yanavlasov self-assigned this May 26, 2021
@alyssawilk

Copy link
Copy Markdown
Contributor

Drive by "thank you!" for the follow up tests :-)

@rgs1 rgs1 left a comment

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.

Thank you!

@antoniovicente antoniovicente self-assigned this May 26, 2021
@yanavlasov
yanavlasov merged commit e8ee43c into envoyproxy:main May 27, 2021
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
Signed-off-by: Nitin <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>


Co-authored-by: Nitin Goyal <[email protected]>
Co-authored-by: Teju Nareddy <[email protected]>
Co-authored-by: phlax <[email protected]>
Co-authored-by: Ivan Zemlyanskiy <[email protected]>
Co-authored-by: DavidKorczynski <[email protected]>
Co-authored-by: Sotiris Nanopoulos <[email protected]>
Co-authored-by: Sunil Narasimhamurthy <[email protected]>
Co-authored-by: Alex Konradi <[email protected]>
Co-authored-by: David Schinazi <[email protected]>
Co-authored-by: Peter Jausovec <[email protected]>
Co-authored-by: asraa <[email protected]>
Co-authored-by: Wayne Zhang <[email protected]>
Co-authored-by: Snow Pettersen <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: danzh <[email protected]>
Co-authored-by: Kevin Baichoo <[email protected]>
Co-authored-by: alyssawilk <[email protected]>
Co-authored-by: Jose Ulises Nino Rivera <[email protected]>
Co-authored-by: yanavlasov <[email protected]>
Co-authored-by: Anirudha Pratap Singh <[email protected]>
Co-authored-by: Ryan Hamilton <[email protected]>
Co-authored-by: Auni Ahsan <[email protected]>
Co-authored-by: Jared Tan <[email protected]>
Co-authored-by: Takeshi Yoneda <[email protected]>
Co-authored-by: Manish Kumar <[email protected]>
Co-authored-by: Mark D. Roth <[email protected]>
Co-authored-by: Rei Shimizu <[email protected]>
Co-authored-by: htuch <[email protected]>
Co-authored-by: Adi (Suissa) Peleg <[email protected]>
Co-authored-by: Greg Brail <[email protected]>
Co-authored-by: williamsfu99 <[email protected]>
Co-authored-by: Yuchen Dai <[email protected]>
Co-authored-by: Ravindra Akella <[email protected]>
Co-authored-by: Dan Zhang <[email protected]>
Co-authored-by: RenjieTang <[email protected]>
Co-authored-by: Renjie Tang <[email protected]>
Co-authored-by: OutOfControl <[email protected]>
Co-authored-by: Piotr Sikora <[email protected]>
Co-authored-by: tavishvaidya <[email protected]>
Co-authored-by: YaoLe <[email protected]>
Co-authored-by: Adrien Guinet <[email protected]>
Co-authored-by: Kornél Dávid <[email protected]>
Co-authored-by: Oleksiy Pylypenko <[email protected]>
Co-authored-by: James Mulcahy <[email protected]>
Co-authored-by: Christoph Pakulski <[email protected]>
Co-authored-by: chaoqin-li1123 <[email protected]>
Co-authored-by: Mike Schore <[email protected]>
Co-authored-by: Charissa Plattner <[email protected]>
Co-authored-by: yihuaz <[email protected]>
Co-authored-by: Gokul Nair <[email protected]>
Co-authored-by: Eleonora Kiziv <[email protected]>
Co-authored-by: Taylor Barrella <[email protected]>
Co-authored-by: Bryce Anderson <[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.