Add support for "in" multiple values header match in virtualservice
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- go
- Domain
- api, networking
Research direction
Start by locating the VirtualService specification and its header-based match schema in this API repository. Review how exact and regex header matches are represented, then determine how an in list should be validated and translated. Done means the schema supports the proposed values and routing behavior is covered by appropriate tests.
Written by the indexing model from the issue text.
Description
Describe the feature request
Right now, the virtualService spec supports header based routing which is one of the fundamental features core to istio. A typical scenario would be to say, allow an ingress request if a particular header is in a list of allowed values.
One way to do this today is to have multiple header entries in the match list
match:
- headers:
x-env:
exact: prod
- headers:
x-env:
exact: stage
- headers:
x-env:
exact: dev
This could work for cases like env filtering, but if it's something like user, team or company filtering the list can get quite huge... increasing the CR size and degraded devX
or have a regex match with a list... This has clear limitations of performance, faulty regexes and the 1024 character limit preventing bigger lists
This issue proposes having a "in" semantic here which would simplify the CR, improve devX and potentially help with perf
headers:
x-tenant:
in:
- foo
- bar
- baz
Describe alternatives you've considered
On the user end, there are two ways folks currently work around this, apart from the obvious regex hack...
- yaml anchors reusing blocks, not ideal since these only work on repeated maps
- having custom helm templates over the vs spec to iterate that way, solves dx with downstream maintainability setback
Affected product area (please put an X in all that apply)
[ ] Configuration Infrastructure
[x] Docs
[ ] Installation
[x] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[x] User Experience
Additional context
- Dominant language
- Go
- Stars
- 523
- Forks
- 623
- Avg merge
- 5d 20h
- Merged PRs (30d)
- 4
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from istio/api
-
Gateway CRD accepts both credentialName and tlsCertificates in server TLS settingsPossibly taken @RaphaelFakhri claimed this 23 days ago. Openarea/networking area/user experience
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
area/user experience kind/docs kind/enhancement
Difficulty 5/5 Over a week Newbie friendliness 40/100
Maintainers usually reply within 1 day
-
[release-1.29] change default of statsCompression to trueMay be free again @keithmattix claimed this 304 days ago, and no pull request is open. Open
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Maintainers usually reply within 1 day
Similar issues
-
bug raised-by:verifier to:worker
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
medici-finance/assay#7835 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
golang-malawi/qatarina#496 ·
Maintainers usually reply within 2 days
-
hive size:simple
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
documentation stage:review
Difficulty 1/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
wso2/identity-customer-data-service#430 ·
Maintainers usually reply within 1 day