Configuration¶
Settings come from environment variables. kubedelos ui --context and --kubeconfig win over theirs, and the Scans
page can change the scope, parallelism and package types for one scan. kubedelos serve reads the same variables, and
the Helm chart sets them from its values (see Running kubedelos in a cluster). The UI's
Settings page shows every setting in use, its value and where the value came from.
General¶
| Variable | Default |
|---|---|
KUBEDELOS_KUBECONFIG |
the standard kubeconfig lookup |
KUBEDELOS_CONTEXT |
the current context |
KUBEDELOS_NAMESPACES |
all namespaces |
KUBEDELOS_EXCLUDE_NAMESPACES |
none |
KUBEDELOS_NAMESPACE_SELECTOR |
none |
KUBEDELOS_SELECTOR |
none |
KUBEDELOS_EXCLUDE_IMAGES |
none (JSON list of globs) |
KUBEDELOS_PARALLELISM |
4 images at once (1 to 32) |
KUBEDELOS_PKG_TYPES |
os,library (comma-separated: os, library or both) |
KUBEDELOS_SCAN_TIMEOUT_S |
600 seconds per image |
KUBEDELOS_LAYER_CACHE |
true: each parallel scan keeps Trivy's layer cache on disk (<cache dir>/trivy-layers, 32 slots of at most 128 MB) so a rescan skips layers it has seen; false keeps it in memory |
KUBEDELOS_TRIVY_PATH |
the pinned Trivy |
KUBEDELOS_CACHE_DIR |
the user cache dir (~/.cache/kubedelos on Linux, ~/Library/Caches/kubedelos on macOS): Trivy binary, DB and layer caches |
KUBEDELOS_DATA_DIR |
the user data dir (~/.local/share/kubedelos on Linux, ~/Library/Application Support/kubedelos on macOS): kubedelos.db |
KUBEDELOS_OWNER_ANNOTATION |
kubedelos.io/owner-email |
KUBEDELOS_TEAM_LABEL |
kubedelos.io/team |
KUBEDELOS_ATTACK_SURFACE |
true: record the attack-surface facts with each scan |
KUBEDELOS_THREAT_FEEDS |
true: download CISA KEV and EPSS at most once a day for the risk score |
KUBEDELOS_RETENTION_DAYS |
180: runs older than this are deleted when kubedelos ui starts and after each serve sweep, except the newest run of each comparable scan; 0 keeps every run |
List variables take a JSON list, not a comma-separated string (KUBEDELOS_PKG_TYPES is the exception: os,library):
Inside a pod with no kubeconfig, kubedelos uses the in-cluster service account. It never does that when a context or kubeconfig is set.
Logging¶
KUBEDELOS_LOG_LEVEL=info makes kubedelos ui print one access line (path only) per request on stderr.
kubedelos serve¶
These only matter to the in-cluster mode.
| Variable | Default |
|---|---|
KUBEDELOS_CLUSTER_NAME |
required: the name runs are stored under |
KUBEDELOS_SWEEP_SCHEDULE |
0 3 * * * (5-field cron; a numeric weekday is read as cron reads it, 0 and 7 are Sunday) |
KUBEDELOS_SWEEP_TIMEZONE |
UTC (an IANA name such as Europe/Vilnius) |
KUBEDELOS_SWEEP_ENABLED |
true; false turns the schedule off |
KUBEDELOS_READ_ONLY |
false; true refuses every write |
KUBEDELOS_TRUST_PROXY_HEADERS |
false; true reads the user's name from the identity header |
KUBEDELOS_IDENTITY_HEADER |
X-Auth-Request-Email |
KUBEDELOS_ALLOWED_HOSTS |
localhost,127.0.0.1: the Host header values the UI answers to (/healthz answers to any) |
Two more settings serve the container image: KUBEDELOS_TRIVY_DIR names a directory holding <version>/trivy, used
before the cache and never downloaded over (the image sets it to its bundled Trivy), and KUBEDELOS_SECURE_COOKIES
(default false; the chart sets true) marks the CSRF cookie Secure, for a UI reached over HTTPS.
Owner reports¶
Weekly emails to each namespace's owners; read Owner reports by email first. They only matter to
kubedelos serve, except that kubedelos ui previews them.
| Variable | Default |
|---|---|
KUBEDELOS_REPORTS_MODE |
off; dry-run builds and records each report and sends nothing; send mails them (the first round is a dry run) |
KUBEDELOS_REPORTS_SCHEDULE |
0 7 * * 1 (5-field cron, in KUBEDELOS_SWEEP_TIMEZONE; weekday numbers read as cron reads them, 0 and 7 are Sunday) |
KUBEDELOS_REPORTS_ALLOWED_DOMAINS |
none, any address (JSON list such as ["example.com"]; subdomains are allowed) |
KUBEDELOS_UI_URL |
none: the UI's http:// or https:// address, for links in an email |
KUBEDELOS_FALLBACK_RECIPIENT |
none: gets the findings of namespaces with no usable owner |
KUBEDELOS_ADMIN_RECIPIENT |
none: gets a summary of each round |
KUBEDELOS_REPORTS_SKIP_EMPTY |
true: no email when nothing is fixable |
KUBEDELOS_REPORTS_MAX_PER_ROUND |
200 emails per round (1 to 10000), the admin summary not counted |
KUBEDELOS_SMTP_HOST |
none; required with send |
KUBEDELOS_SMTP_PORT |
587 |
KUBEDELOS_SMTP_SECURITY |
starttls, tls or none (none only without a username) |
KUBEDELOS_SMTP_USERNAME |
none |
KUBEDELOS_SMTP_PASSWORD |
none; the Settings page shows set (hidden) |
KUBEDELOS_SMTP_FROM_ADDRESS |
none; required with send |
KUBEDELOS_SMTP_TIMEOUT_S |
30 seconds (1 to 300) |
The owner annotation is KUBEDELOS_OWNER_ANNOTATION (see General). In a cluster the chart sets the password from an
existing Secret, never from a value.
Registry credentials (set by the chart)¶
The chart sets these from its registries values; they are listed so the Settings page reads clearly.
| Variable | What it holds |
|---|---|
KUBEDELOS_DOCKER_CONFIGS |
mounted Docker config.json files (JSON list of paths); see Pull secrets and Docker configs |
KUBEDELOS_POD_PULL_SECRET_NAMESPACES |
the namespaces whose pods' pull secrets kubedelos may read |
KUBEDELOS_SECRETS_DIR |
the memory-backed directory for each scan's Docker config, deleted when the scan ends |
KUBEDELOS_CLOUD_PROVIDER |
azure, aws, gcp or none: the workload identity Trivy uses for ACR, ECR or GAR |
KUBEDELOS_CLOUD_IDENTITY |
that identity's client id or role name, never a token |
Related¶
- Install: where kubedelos keeps its files, and how to bring your own Trivy.
- How a scan works: what the scan settings change.
- All guides