Basic Authentication
Username and password authentication for Boltbase.
Configuration
YAML Configuration
yaml
# ~/.config/boltbase/config.yaml
auth:
basic:
enabled: true
username: admin
password: secure-passwordEnvironment Variables
bash
export BOLTBASE_AUTH_BASIC_ENABLED=true
export BOLTBASE_AUTH_BASIC_USERNAME=admin
export BOLTBASE_AUTH_BASIC_PASSWORD=secure-password
boltbase start-allUsage
CLI Access
bash
# Using environment variables
export BOLTBASE_AUTH_BASIC_ENABLED=true
export BOLTBASE_AUTH_BASIC_USERNAME=admin
export BOLTBASE_AUTH_BASIC_PASSWORD=secure-password
boltbase statusAPI Access
bash
# Basic auth header
curl -u admin:secure-password http://localhost:8080/api/v1/dags
# Or with Authorization header
curl -H "Authorization: Basic $(echo -n admin:secure-password | base64)" \
http://localhost:8080/api/v1/dagsNotes
- Basic authentication is enabled when
enabled: trueis set along with both username and password - Set
enabled: falseor omit theenabledfield to disable basic authentication - Credentials are checked on every request
