VictoriaMetrics/lib/flagutil
Nikolay 3bbb2aed72
fscore: rollback trailing space trim (#7106)
Previous commit 201fd6de1e removed
trailing space trim from data read from file. But common practice is to
remove such trailing space. And it leaded to the authorization errors
for the major group of users.

In first place, this change must help to mitigate an issue with
kubernetes. When authorization information was read from Secret content.
Changes to the operator was made to mitigate such problem at commit
1cf64358c8

We could introduce later optional flag for VictoriaMetrics to disable
trim space behavior.

Related issues:
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6986
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/7089 
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6947

---------

Signed-off-by: f41gh7 <nik@victoriametrics.com>
Co-authored-by: Zhu Jiekun <jiekun@victoriametrics.com>
2024-09-29 10:59:25 +02:00
..
testdata all: allow dynamically reading *AuthKey flag values from files and urls 2024-01-21 22:03:38 +02:00
array_test.go all: add support for specifying multiple -httpListenAddr options 2024-02-09 03:15:04 +02:00
array.go all: add support for specifying multiple -httpListenAddr options 2024-02-09 03:15:04 +02:00
bytes_test.go docs/CHANGELOG.md: support empty command-line flag values in short array notation 2024-02-07 20:53:13 +02:00
bytes.go app/vmagent: add max_scrape_size to scrape config (#6434) 2024-06-20 13:58:42 +02:00
dict_test.go all: add support for specifying multiple -httpListenAddr options 2024-02-09 03:15:04 +02:00
dict.go app/{vmagent,vmalert}: add the ability to set OAuth2 endpoint params via the corresponding *.oauth2.endpointParams command-line flags 2023-12-20 21:35:28 +02:00
duration_test.go lib/flagutil: use month limit for duration flag for parsed duration assessment (#6486) 2024-06-14 15:20:21 +02:00
duration.go lib/flagutil: use month limit for duration flag for parsed duration assessment (#6486) 2024-06-14 15:20:21 +02:00
flag.go lib/flagutil: do not expose sensitive info (passwords, keys and urls) at /flags page 2021-10-20 00:51:26 +03:00
password_test.go fscore: rollback trailing space trim (#7106) 2024-09-29 10:59:25 +02:00
password.go lib/httpserver: skip basic auth check for additional request paths, which should call httpserver.CheckAuthFlag() 2024-07-16 01:00:45 +02:00
secret.go app/vmagent: substitute -remoteWrite.url with secret-url value in logs, since it may contain sensitive info such as passwords or auth tokens 2020-09-16 22:36:25 +03:00
usage.go lib/flagutil: make golangci-lint happy by using strings.TrimPrefix instead of manual prefix removal via strings.HasPrefix 2020-12-03 22:07:57 +02:00