Configuration
Hibou is configured entirely via environment variables with the HIBOU_ prefix.
Core Settings
Section titled “Core Settings”| 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 |
CVEListV5 package matching
Section titled “CVEListV5 package matching”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.
Forge Configuration
Section titled “Forge Configuration”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, …).
Example .env
Section titled “Example .env”HIBOU_HOST=0.0.0.0HIBOU_PORT=8585HIBOU_DATABASE_URL=postgres://hibou:hibou@localhost:5432/hibou?sslmode=disableHIBOU_LOG_LEVEL=debugHIBOU_SESSION_SECRET=my-secret-key
# Forge 0: Local ForgejoHIBOU_FORGE_0_TYPE=forgejoHIBOU_FORGE_0_ID=forgejo-localHIBOU_FORGE_0_URL=http://localhost:3030HIBOU_FORGE_0_CLIENT_ID=abc123HIBOU_FORGE_0_CLIENT_SECRET=secret456HIBOU_FORGE_0_WEBHOOK_SECRET=whsec_xyz
# Forge 1: GitHub.comHIBOU_FORGE_1_TYPE=githubHIBOU_FORGE_1_ID=github-comHIBOU_FORGE_1_CLIENT_ID=gh_client_idHIBOU_FORGE_1_CLIENT_SECRET=gh_client_secretHIBOU_FORGE_1_WEBHOOK_SECRET=gh_webhook_secret