VictoriaMetrics/app/vmauth
andriibeee 5d85968659
app/vmauth: fix unauthorized_user routing inconsistency
This commit makes vmauth respect the routing config for unauthorized
requests for requests that despite having Authorization header failed to
authorize successfully.

 It covers the following use-cases:
- vmauth is used at load-balanacer and must forward requests as is. There is no any authorization configs.
- vmauth has authorization config, but it must forward requests with invalid credential tokens to some other backend.

related issue:
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/7543

---------
Signed-off-by: Andrii <andriibeee@gmail.com>
2024-11-15 12:28:25 +01:00
..
deployment all: suppress InvalidDefaultArgInFrom warning emitted by docker build when building Docker packages via make package-* command 2024-09-03 14:00:28 +02:00
multiarch app/*/multiarch: return back empty value for TARGETARCH 2024-09-06 18:12:17 +02:00
auth_config.go app/vmauth: properly inherit user-level options at url_map when url_prefix isnt set at the user level 2024-11-12 17:53:19 +01:00
auth_config_test.go app/vmauth: properly check for backend health before leastLoaded policy (#7489) 2024-11-08 11:45:16 +01:00
example_config.yml app/vmauth: adds metric_labels and backend_errors counter (#5585) 2024-01-21 04:40:52 +02:00
example_config_ent.yml vmauth: add browser authorization request for http requests without… (#5234) 2023-11-01 20:59:46 +01:00
main.go app/vmauth: fix unauthorized_user routing inconsistency 2024-11-15 12:28:25 +01:00
main_test.go app/vmauth: fix unauthorized_user routing inconsistency 2024-11-15 12:28:25 +01:00
Makefile Add build support for loong64 (#6222) 2024-05-09 14:22:03 +02:00
README.md all: replace old https://docs.victoriametrics.com/vmauth.html url with the new one - https://docs.victoriametrics.com/vmauth/ 2024-04-18 01:49:41 +02:00
target_url.go app/vmauth: follow-up for b155b20de4 2024-04-17 14:27:52 +02:00
target_url_test.go app/vmauth: properly inherit user-level options at url_map when url_prefix isnt set at the user level 2024-11-12 17:53:19 +01:00

See vmauth docs here.

vmauth docs can be edited at docs/vmauth.md.