Repository navigation
fix(security): pin tflint; remove dive and devops docker analyze-layers - #2712
Merged
Merged
Conversation
Pin tflint 0.65.0 in tools.lock with a new zip archive format. Delete the hand-written tflint fallback. devops tf lint and the tf_lint tool now report a lint that did not run. Remove the dive adapter, devops docker analyze-layers and the docker_analyze_layers tool: dive has had no commit for 17 months and its release has 39 HIGH or CRITICAL findings. Plans #2427.
Run tflint with --recursive, so a target whose .tf files are in sub-directories is linted and does not read as clean. Plans #2427.
2 tasks
Owner
Author
Test resultsTargeted tests on the rebased branch: 522 passed ( Pending a person: the recorded tflint 0.65.0 run (criterion 3). The commands are in Fail-to-pass (
|
dan-petty
marked this pull request as ready for review
October 29, 2026 22:52
dan-petty
pushed a commit
that referenced
this pull request
Oct 30, 2026
🤖 I have created a release *beep* *boop* --- ## [0.21.0](v0.20.0...v0.21.0) (2026-10-29) ### Features * **telemetry:** count the project items by release tag, not by milestone ([#2710](#2710)) ([253a97d](253a97d)) ### Bug Fixes * **ai:** the MCP benchmark tool takes no server URL ([#2707](#2707)) ([7f7f84b](7f7f84b)), closes [#2638](#2638) * **rag:** name the Qdrant span server by host and port ([#2705](#2705)) ([57725c3](57725c3)), closes [#2459](#2459) * **roadmap:** take a plan that a person merged as a Planned item ([#2718](#2718)) ([043463b](043463b)), closes [#2714](#2714) * **security:** pin tflint; remove dive and devops docker analyze-layers ([#2712](#2712)) ([244bafb](244bafb)) * **vault:** the MCP tool vault_status takes no address ([#2706](#2706)) ([68c226c](68c226c)), closes [#2639](#2639) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.
This change removes the command
devops docker analyze-layersand the agent tooldocker_analyze_layers, with the dive scanner that they ran.Refs #2427. This change delivers criteria 1, 2 and 4. Criterion 3 (the recorded tflint 0.65.0 run) stays open until a person records it with the commands in design.md.
What and why
The scanner registry held a tflint adapter and a dive adapter, but
tools.lockpinned neither tool. Without tflint, each scan ran a hand-written check for0.0.0.0/0. Without dive, each scan wasunavailable.tools.lockpins tflint 0.65.0 forlinux-amd64,linux-arm64,darwin-amd64anddarwin-arm64. tflint publishes zip archives only, so the lock has a newzipformat that the installer unpacks with the standard libraryzipfile. Each sha256 equals the release asset digest and the line ofchecksums.txt.unavailableand has no finding.trivy-configchecks0.0.0.0/0in IaC files.devops tf lintnow says that the lint did not run and exits 1. The agent tooltf_lintreplies as the other agent scan tools reply.--recursive. Without it, tflint lints the starting directory only, so a target with.tffiles in sub-directories alone would read as clean.DEFAULT_DIVE_*, the dive models and strings, and its knowledge base page. The registry holds 13 scanners.tools.lockor the dev dependency zizmor).The tflint report shape, exit codes and severity names were read from the tflint v0.65.0 source, and no downloaded program was run. The proposal's Feasibility section has the evidence.
Change: openspec/changes/archive/2026-10-29-2427-pin-tflint-dive/