liveBook · Manning

Basic authentication

As explained in Logs and Telemetry

Basic authentication is an HTTP authentication scheme that transmits a username and password in an encoded authorization header.

Basic authentication secures an HTTP destination by adding an Authorization header containing a username and password encoded with Base64. section 5.8

Configure it through the HTTP output plugin:

  • Set the username with http_user and the password with http_passwd. section 5.8
  • Expect an additional Authorization header whose value encodes the username, a colon, and the password. section 5.8
  • Use HTTPS for real traffic; without it, credentials travel in cleartext even though the header value looks random. section 5.8

Fluent Bit HTTP output

Run Fluent Bit with an authentication-specific configuration using fluent-bit -c fluentbit/http-auth-output.conf, then inspect the receiving endpoint’s output for the Authorization header. section 5.8

fluent-bit -c fluentbit/http-auth-output.conf

Open the authentication-specific Fluent Bit command used to send events through the HTTP output. section 5.8

How Logs and Telemetry covers it

How deep it goes
Explains plugin settings, header encoding, and HTTPS implications, but does not detail credential-management approaches.
Examples
Uses Fluent Bit, WireMock, an authentication configuration, and an observed Authorization header.
What you can do after
Operate Fluent Bit HTTP output with username-password authentication and verify the resulting authorization header.
How it connects
Connects HTTP output with HTTP endpoints, HTTPS, AWS authentication, and Base64 encoding.

Also explained in

Compare how 3 books explain basic authentication →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Logs and Telemetry. The section links point to the parts of the book it draws on.