Skip to content

Remediation plans and pull requests (experimental)

Remediation plans and pull requests

Experimental feature

Remediation plans and fix pull requests are experimental features. Their configuration, notifications, and PR formats may change.

Overview

Remediation plans propose image and dependency updates based on findings in running images. Enabling fix pull requests also creates PRs for eligible updates to files in the GitHub repositories specified in your configuration.

Proposals and PR states appear in the Slack “Fix plan” section. See Terms for the terminology used on this page.

When you run a ready-made image as provided, its published image tag is the update target. When you build from your own source, configure the Dockerfile base image and dependency files as update targets, whether or not you push the resulting image to a registry.

The table shows what each plan proposes and which files a fix PR can change when enabled.

Update target Example What the plan shows Fix PR
Published image with a pinned tag nginx:1.27.0 Candidate tags and scan comparisons Tag changes in Compose files, Kubernetes manifests, Kustomize files, or Helm values
Published image with a floating tag latest Guidance on pulling new content for the same tag No PR
Dockerfile base image FROM python:3.12.3-slim Base image candidates and scan comparisons Pinned tag changes in the Dockerfile’s FROM
Language packages (npm, pnpm, pip, uv, Go, Maven, Gradle, Rust) pnpm-lock.yaml, pom.xml, Cargo.lock Package update candidates Dependency file changes

If an image contains only a binary built with ordinary cargo build, Trivy cannot detect its dependencies. Build it with cargo auditable build from cargo-auditable.

For containers started with docker run, fix PRs can update Dockerfiles and dependencies. They do not change the image tag used to start the container.

The following example shows a Slack notification after creating a dependency update PR. It shows the file to change, the PR number, and the versions before and after the update.

🔧 Fix plan

Image: example/app:latest
File to change: pnpm-lock.yaml in example/application
Pull request: #12 (opened now)
Update: package-a 1.2.3 → 1.2.4

See Reading notifications for field meanings, counts, and where to find detailed results.

KestreLynx performs different work depending on whether only plans or fix PRs are enabled. The table also shows the work you perform.

Enabled feature What KestreLynx does What you do
Plans only Selects candidates, reads the configured Compose files, Dockerfiles, dependency files, or other files on GitHub, and compares image scan results Review proposals, pull or build images, deploy, and check the deployment
Fix PRs also enabled Also updates and checks language packages, and creates and manages PRs for eligible changes Review and merge changes, pull or build images, deploy, and check the deployment

With plans only, KestreLynx does not run package managers or write to GitHub. For details, see Execution scope of plans and PRs.

Remediation plans and fix PRs are available in Docker mode (including Compose and docker run) and Kubernetes mode. GitHub is the only supported source host, and language packages must come from public registries.

See Scope and requirements for environment requirements and supported update targets.

Page guide

This guide lists the pages to consult by topic.

The following pages cover the overview and setup steps to read when getting started.

What you want to know Page
Feature overview and your responsibilities Remediation plans and pull requests (overview)
Shared settings needed to enable remediation Common preparation
Setup for Compose and docker run Docker
Setup for Kubernetes Kubernetes
Configuring disposable Pods that run package managers on Kubernetes Kubernetes work Pods

Read the notification guide to check results when getting started. The following pages also cover update results, PR checks, and troubleshooting.

What you want to know Page
Slack fields and where to find detailed results Reading notifications
Update results and guidance such as “Re-pull” and “Rebuild” Reading update results and guidance
PR descriptions PR contents
Why an update cannot reach a version reported to fix a vulnerability Guidance when a fixed version cannot be reached
Collecting diagnostics and checking plan, update, PR, or record problems When no candidate or PR appears

Use the following pages when you need details of candidate selection and PR processing.

What you want to know Page
Execution scope of plans and PRs, and comparison conditions Processing flow
How published image candidates are selected Published images
Changes to manifests, Kustomize files, and Helm values Kubernetes tag update PRs
How Dockerfile update candidates are selected Base images
Package candidate and runtime selection, and acceptance of update results Common rules for language packages
Rules for Node.js and Python dependency updates npm, pnpm, uv, pip
Updates that also change packages depending on the target Re-resolution through dependent packages
Go module update candidates and checks Go
Maven update candidates and checks Maven
Gradle update candidates and checks Gradle
Rust update candidates and checks Rust
Conditions for showing hints and checks on published releases How hints work when a package cannot reach its fix
How disposable containers run package managers Work containers
Handling existing PRs and recording PR processing PR management and records

Use the following pages to look up supported features, file constraints, result values, and reason codes.

What you want to know Page
Supported environments, update targets, and runtimes Scope and requirements
Accepted syntax in Compose files, manifests, Kustomize files, Helm values, and Dockerfiles Formats of files specifying images
Requirements for dependency files and version declarations Dependency file and version declaration formats
Result values and reasons processing did not proceed Result values and reason codes
Reasons related to image candidate selection and files to change Image and source reason codes
Reasons package updates or PR processing did not proceed Update and PR processing reason codes

Related configuration and specifications are on the following pages.