Scan YAML files and get analysis from Kubescape
YAML files can be scanned using a command. You can access any of this extension's commands by opening the Command Palette (Ctrl+Shift+P on Linux/Windows and Cmd+Shift+P on Mac), and then typing in the command name.
The default behavior also scans YAML files on save 💾.
Scanning results are marked and can be found in
This extension downloads the latest Kubescape version. However, it is recommended to have Kubescape installed in your path.
Currently the following options can be configured:
Set custom directory for Kubescape
By default, this extension uses it's own Kubescape binary in order to provide as stable an experience as it can.
If, however, you desire to use a different or maybe a custom Kubescape executable
you can use the option
For the time being, Kubescape scans can take a while, so it might be unwise to run scans without a good reason (like a dirty file). I chose to run a background scan only when a new file is saved on the disk.
To choose between available files to scan on save use the option
Default : scan on save for all supported files.
Frameworks are collections of controls. There are some built-in controls that Kubescape can use by default and can be downloaded locally for an offline scan. The Kubescape extension for VS code uses this method to increase it's scanning speed.
Choosing required frameworks
You can choose which frameworks used by adding their names into the
Default : Empty. Meaning all available frameworks will be downloaded.
Overriding the framework directory
The used frameworks are downloaded to the Kubescape directory by default.
You can simply copy / download any desired framework to this directory.
Alternatively, you can use the
Default: Not set. Uses the Kubescape binary directory.
Specify frameworks for scanning
To specify which frameworks to use for scanning you can list them in the
The specified frameworks will be used for the scan. If they dont exist, they will be downloaded automatically.
Default: Not set. Uses frameworks from the framework directory.
By default, I use a version of Kubescape that works well with this extension.
If, however, you wish to use the latest and greatest it can be configured via
This extension is available officially at either:
🗒️ Release Notes
See Change Log