VictoriaMetrics/lib/fs
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
..
fscore fscore: rollback trailing space trim (#7106) 2024-09-29 10:59:25 +02:00
dir_remover.go lib/fs: support NFS implementations that return EEXIST instead of ENOTEMPTY (#6398) 2024-06-04 15:17:38 +02:00
fadvise_darwin.go vlinsert: added opentelemetry logs support 2024-09-03 20:12:05 +02:00
fadvise_openbsd.go
fadvise_solaris.go
fadvise_unix.go all: cleanup: remove // +build ... lines, since they are no longer needed after Go1.17, and the minimum supported Go version for VictoriaMetrics source code is Go1.20 2023-11-13 19:12:51 +01:00
fs_nix.go lib: consistently use atomic.* types instead of atomic.* functions 2024-02-24 02:07:53 +02:00
fs_openbsd.go lib: consistently use atomic.* types instead of atomic.* functions 2024-02-24 02:07:53 +02:00
fs_solaris.go testing: allow disabling fsync to make tests run faster (#6871) 2024-08-30 10:54:46 +02:00
fs_test.go all: allow dynamically reading *AuthKey flag values from files and urls 2024-01-21 22:03:38 +02:00
fs_unix.go testing: allow disabling fsync to make tests run faster (#6871) 2024-08-30 10:54:46 +02:00
fs_windows.go lib/fs: properly call windows APIs (#6998) 2024-09-13 12:22:25 +02:00
fs.go testing: allow disabling fsync to make tests run faster (#6871) 2024-08-30 10:54:46 +02:00
reader_at_test.go all: use os.{Read|Write}File instead of ioutil.{Read|Write}File 2022-08-21 23:52:35 +03:00
reader_at_timing_test.go all: use os.{Read|Write}File instead of ioutil.{Read|Write}File 2022-08-21 23:52:35 +03:00
reader_at.go lib: consistently use atomic.* types instead of atomic.* functions 2024-02-24 02:07:53 +02:00