HTTP Basic authentication environment
166-basic-auth-environment.yaml
Security
What this example does
HTTP Basic authentication environment.
Checks and behavior
- Set IPSONIC_BASIC_PASSWORD securely outside the YAML.
Replace example.com, documentation IPs, secrets and thresholds before production use.
YAML configuration
# Set IPSONIC_BASIC_PASSWORD securely outside the YAML.
name: HTTP Basic authentication environment
url: https://api.example.com/private/health
auth:
type: basic
username: monitoring
password_env: IPSONIC_BASIC_PASSWORD
tests:
status: {allow: [200]}
monitoring: {output: nagios, on_failure: critical}