You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are no kubernetes options in Trivy default config file now.
@chen-keinan could you confirm that config files work correctly for k8s scans? thanks!
Desired Behavior
trivy-default.yaml contains next section:
kubernetes:
# Same as '--context'# Default is emptycontext:
# Same as '--namespace'# Default is emptynamespace:
# Same as '--kubeconfig'# Default is emptykubeconfig: ~/.kube/config2# Same as '--components'# Default is 'workload,infra'components:
- workload
- infra
Actual Behavior
there is no kubernetes section
Reproduction Steps
1.Generate default trivy config:
$ trivy image --generate-default-config
Look for kubernetes options
$ cat trivy-default.yaml | grep kubernetes
the output contains only - kubernetes for scanners block
Debug Output
$ trivy image -d --generate-default-config
2024-07-30T12:03:43+06:00 DEBUG Cache dir dir="/home/user/.cache/trivy"
2024-07-30T12:03:43+06:00 DEBUG Parsed severities severities=[UNKNOWN LOW MEDIUM HIGH CRITICAL]
2024-07-30T12:03:43+06:00 DEBUG Ignore statuses statuses=[]
2024-07-30T12:03:43+06:00 INFO Writing the default config to trivy-default.yaml...
kind/bugCategorizes issue or PR as related to a bug.
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description
There are no
kubernetes
options in Trivy default config file now.@chen-keinan could you confirm that config files work correctly for k8s scans? thanks!
Desired Behavior
trivy-default.yaml
contains next section:Actual Behavior
there is no
kubernetes
sectionReproduction Steps
1.Generate default trivy config:
kubernetes
options$ cat trivy-default.yaml | grep kubernetes
the output contains only
- kubernetes
forscanners
blockDebug Output
$ trivy image -d --generate-default-config 2024-07-30T12:03:43+06:00 DEBUG Cache dir dir="/home/user/.cache/trivy" 2024-07-30T12:03:43+06:00 DEBUG Parsed severities severities=[UNKNOWN LOW MEDIUM HIGH CRITICAL] 2024-07-30T12:03:43+06:00 DEBUG Ignore statuses statuses=[] 2024-07-30T12:03:43+06:00 INFO Writing the default config to trivy-default.yaml...
Operating System
Ubuntu 22.04.4 LTS
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions