feat(iac): scan Infrastructure-as-Code files for misconfigurations#47
Merged
Conversation
tembleking
enabled auto-merge (squash)
July 15, 2026 13:25
mateobur
approved these changes
Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds IaC scanning so the LSP can flag misconfigurations, not just image vulnerabilities. This is the biggest feature the VSCode extension had that the LSP lacked, and a prerequisite for the LSP becoming the extension's core engine.
The scanner runs
sysdig-cli-scanner --iacover a single file (via a "Scan IaC file" code lens on Compose/K8s manifests) or the whole workspace recursively (sysdig-lsp.execute-iac-scanwith no argument), and publishes findings as per-file diagnostics.Diagnostics are now source-tagged (
sysdig-iacvssysdig-vuln) so IaC and image-scan results have independent lifecycles on the same document: each scan replaces only its own findings, and document edits clear line-anchored vulnerability diagnostics while preserving IaC ones. Command execution was moved off the server lock so a long recursive scan no longer stalls unrelated editor requests.Also fixes the Neovim config examples in the README, which named the wrong environment variable (
SYSDIG_API_TOKENinstead ofSECURE_API_TOKEN), and documents the token fallback across all editors.Bumps to 0.9.0.