How to Configure Authentication
This guide explains how to configure the Txlog Agent to authenticate with a secured Txlog Server.
Configure API Key Authentication
If your server uses API Key authentication (recommended for service accounts):
Open the configuration file:
bashsudo nano /etc/txlog.yamlFind the
serversection.Uncomment the
api_keyline and paste your key:yamlserver: url: https://your-server.com api_key: your_secret_api_key_hereSave the file.
Configure Basic Authentication
If your server uses Username/Password authentication:
Open the configuration file:
bashsudo nano /etc/txlog.yamlFind the
serversection.Uncomment the
usernameandpasswordlines and set your credentials:yamlserver: url: https://your-server.com username: your_username password: your_secure_passwordSave the file.
Verify the Configuration
To check if authentication is working, run a build:
bash
txlog buildIf authentication fails, the agent will exit with an error message indicating "Unauthorized" or "Forbidden".
