Secrets in HTTP
less than a minute
Store authentication credentials as secrets for HTTP destination nodes.
Bearer Token Authentication
Store an API token as a secret and use it in the Authorization header.
Secret to create:
| Secret Name | Description |
|---|---|
api-bearer-token | Your API bearer token |
HTTP Destination Node:
- name: http_destination
type: http_output
endpoint: https://api.example.com/logs
headers:
Authorization: 'Bearer {{ SECRET api-bearer-token }}'
Basic Authentication
Store username and password as secrets for HTTP Basic Authentication.
Secrets to create:
| Secret Name | Description |
|---|---|
http-username | The username |
http-password | The password |
HTTP Destination Node:
- name: http_destination
type: http_output
endpoint: https://api.example.com/logs
basic_auth:
username: '{{ SECRET http-username }}'
password: '{{ SECRET http-password }}'
Custom Headers
You can reference secrets in any custom header value.
Secrets to create:
| Secret Name | Description |
|---|---|
api-key | Your API key |
client-secret | Your client secret |
HTTP Destination with Custom Headers:
- name: http_destination
type: http_output
endpoint: https://api.example.com/logs
headers:
X-API-Key: '{{ SECRET api-key }}'
X-Client-Secret: '{{ SECRET client-secret }}'
See Also
- HTTP Destination Node - Complete HTTP destination configuration reference
- Secrets Overview - Secrets management concepts