logstash: Support HTTP basic auth for logstash queries

Enabling the OpenSearch security plugin requires clients to
authenticate. Add the optional logstash_credentials_file setting. Its
first line that is neither blank nor a #-prefixed comment supplies the
"username:password" pair. When set, logstash queries send an
Authorization header. When unset, queries are unauthenticated as before.

An unreadable or unparsable file raises ValueError when the Logstash
client is constructed.

Bug: T434114

Edited by Ahmon Dancy

Merge request reports

Loading