Telegraf problems with secretstores.systemd: invalid header field value for "Authorization"

For anyone wondering, turns out the issue is that when saving the key with vim (my default editor), agenix stores the key with a newline at the end.

I was able to resolve the issue by running executing the following in vim (found here)

:set binary
:set noeol
:set nofixeol
:set nofixendofline
:wq

If you’re using a different editor there are probably other options.

1 Like