Comments (3)
You'll likely want to do something like:
- Use the gRPC field extraction filter to pull out the field and put it in the dynamic metadata for the request.
- Configure your routes to match on dynamic_metadata.
from envoy.
@tonya11en thanks for the suggestion.
I used the grpc_field_extraction filter and I can extract the needed field
I have created a dynamic_metadata under route match as follow
- name: local_service
domains: ["*"]
routes:
- match:
prefix: /path/
grpc: {}
dynamic_metadata:
- filter: envoy.filters.http.grpc_field_extraction
path:
- key: key1
value:
list_match:
one_of:
string_match:
exact: "value1"
route:
cluster: nrc_cluster1 ```
But my requests never match any route and fail.
anything wrong/missing with my config?
from envoy.
I had to add a lua filter to the config.
the lua filter that I added was failing and didn't do anything but somehow after adding the lua the route matching started to work.
I noticed Others had similar problem #19910 and might be related to route caching.
seems lua filter enforces a refresh to the route config
from envoy.
Related Issues (20)
- Why doesn't ActiveInternalListener::newActiveConnection increase num_connections_ HOT 2
- //test/common/router:config_impl_headermap_benchmark_test is broken HOT 2
- Connection attribute connection.transport_failure_reason doesn't work as expected HOT 1
- Build Issue with DataDog Dependency HOT 5
- Segmentation fault during file-based ECDS update HOT 3
- code segment access for CONSTRUCT_ON_FIRST_USE in c++20 HOT 10
- AWS STS API - Expiration field misunderstood - Timestamps are formatted according to the ISO 8601 not unix timestamp HOT 3
- Newer release available `bazel_skylib`: 1.6.1 (current: 1.5.0)
- Newer release available `com_github_gabime_spdlog`: v1.14.0 (current: v1.13.0) HOT 1
- Initial application logs are not respecting application_log_config HOT 3
- http health check unstable behavior HOT 1
- OAuth2 Filter - ID Token Cookie Too Large HOT 5
- Newer release available `com_github_grpc_grpc`: v1.63.0 (current: v1.59.4) HOT 1
- `io_uring` test fails with newer kernel (arm?) HOT 3
- rpc error: code = Unavailable desc = Starting HOT 1
- Linking failed when trying to compile the binary from the envoy 1.29.1 HOT 2
- Newer release available `rules_proto`: 6.0.0 (current: 4.0.0)
- Move datadog example (Docker) out of `/source` HOT 4
- Envoy endpoints not loading since Chrome release 124 HOT 21
- Referenced video in README.md is not available HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from envoy.