Skip to content
Hibouhibou

Configuration

Hibou is configured entirely via environment variables with the HIBOU_ prefix.

Variable Default Description
HIBOU_HOST 0.0.0.0 Listen address
HIBOU_PORT 8585 Listen port
HIBOU_DATABASE_URL postgres://hibou:hibou@localhost:5432/hibou?sslmode=disable PostgreSQL connection string
HIBOU_LOG_LEVEL info Log level: debug, info, warn, error
HIBOU_LOG_FORMAT console Log format: console or json
HIBOU_TRIVY_URL http://localhost:4954 Trivy server URL
HIBOU_OSV_URL https://api.osv.dev OSV advisory API base URL
HIBOU_OSV_GIT_RANGES false Opt into repository/tag inference; requires deps.dev source metadata
HIBOU_ADVISORY_SCAN_PROVIDERS osv,trivy,cvelistv5 Package advisory providers
HIBOU_CVE_FEED_REMOTE Public CVEListV5 repository HTTPS or file:// mirror used by the shared CVE feed
HIBOU_CVE_FEED_INTERVAL 15m CVE feed polling interval
HIBOU_CACHE_TTL 6h Advisory cache TTL (e.g., 6h, 24h, 30m)
HIBOU_SESSION_SECRET change-me-in-production Secret for session cookie encryption

The cvelistv5 provider reads the local CVE feed index. It matches explicit CNA packageURL coordinates and supported affected-version ranges without deps.dev, repository-name inference, or a network request for each package. Existing product watches and human-authored mappings remain available for advisories without package coordinates.

On upgrade, migration 00088 creates the package index and durable feed work queue. The background worker backfills package coordinates from the configured feed mirror without overwriting existing product records or decision history. While the one-time initial import is running, cvelistv5 does not cache clean answers or allow scan reuse, while other healthy providers (osv, trivy) can still complete scans. Once ready, cvelistv5 fails closed when feed polling or a record refresh fails, while records are pending or retrying, or after four missed polling intervals. Individual upstream CVE entries with unsupported conditional applicability (for example platforms or custom version ordering) are skipped rather than failing unrelated packages in the scan batch.

Changed CVEs are durably queued together with the feed cursor. Successful records are removed individually; transient failures retain their ID and error for bounded retry (up to 5 attempts, reset on the next upstream revision) instead of forcing the entire backlog to repeat. Oversized records above the 2 MiB size cap are skipped until revised upstream. Feed activity shows pending records and failures. Git operations, record reads, and background database transactions have bounded timeouts; ordinary API database queries keep their configured limit. If an upstream mirror is re-created and no longer contains the stored cve_feed_revision commit, reset cve_feed_revision in instance_settings only after verifying the mirror matches the corpus baseline.

If advisory_scan.providers is explicitly configured, add cvelistv5 to that list. After the index and feed catch-up complete, rescan affected repositories. Feed updates invalidate affected package caches and scan reuse. An unavailable provider marks the scan failed and preserves existing findings.

osv.git_ranges is a separate optional fallback, disabled by default. A repository tag is not proof of the corresponding package artifact; explicit CVE package coordinates are preferred.

Forges use an indexed configuration pattern. Each forge is identified by its index number.

See Forge Providers for detailed configuration.

Variable Pattern Description
HIBOU_FORGE_N_TYPE Forge type: github, forgejo, gitea, or gitlab
HIBOU_FORGE_N_ID Unique identifier for this forge instance
HIBOU_FORGE_N_URL Base URL (required for Forgejo/GitLab)
HIBOU_FORGE_N_CLIENT_ID OAuth2 client ID
HIBOU_FORGE_N_CLIENT_SECRET OAuth2 client secret
HIBOU_FORGE_N_WEBHOOK_SECRET Shared secret for webhook signature verification

Where N is a zero-based index (0, 1, 2, …).

Terminal window
HIBOU_HOST=0.0.0.0
HIBOU_PORT=8585
HIBOU_DATABASE_URL=postgres://hibou:hibou@localhost:5432/hibou?sslmode=disable
HIBOU_LOG_LEVEL=debug
HIBOU_SESSION_SECRET=my-secret-key
# Forge 0: Local Forgejo
HIBOU_FORGE_0_TYPE=forgejo
HIBOU_FORGE_0_ID=forgejo-local
HIBOU_FORGE_0_URL=http://localhost:3030
HIBOU_FORGE_0_CLIENT_ID=abc123
HIBOU_FORGE_0_CLIENT_SECRET=secret456
HIBOU_FORGE_0_WEBHOOK_SECRET=whsec_xyz
# Forge 1: GitHub.com
HIBOU_FORGE_1_TYPE=github
HIBOU_FORGE_1_ID=github-com
HIBOU_FORGE_1_CLIENT_ID=gh_client_id
HIBOU_FORGE_1_CLIENT_SECRET=gh_client_secret
HIBOU_FORGE_1_WEBHOOK_SECRET=gh_webhook_secret