vmuser: add support for src_headers_match_all and src_query_args_match_all new config options.

Open
#2,838 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
go, kubernetes
Domain
backend

Research direction

Read the VMUser CRD definitions and related configuration generation in the operator to find how src_headers and src_query_args are represented and passed through. Add support for src_headers_match_all and src_query_args_match_all in the VMUser CRD and generated configuration, following the upstream vmauth option names. Done means both options can be set in a VMUser and are included in the resulting configuration.

Written by the indexing model from the issue text.

Description

enhancement
Describe the solution you'd like

vmauth adds src_headers_match_all and src_query_args_match_all options to url_map in https://github.com/VictoriaMetrics/VictoriaMetrics/issues/11961. When set to true, a request is routed to the given url_prefix only if it matches all the src_headers or src_query_args entries, instead of at least one of them. This allows routing by several headers at once, e.g. AccountID and ProjectID. Read routing by header, routing by query arg docs for more details.

These options will be available starting with next latest VictoriaMetrics release (likely v1.157.0). It would be good to add support to the operator VMUser CRD too.

Dominant language
Go
Stars
603
Forks
242
Avg merge
1d 14h
Merged PRs (30d)
57

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from VictoriaMetrics/operator

All issues in VictoriaMetrics/operator

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.