> ## Documentation Index
> Fetch the complete documentation index at: https://docs.endorlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.endorlabs.com/feedback

```json
{
  "path": "/risk-remediation/endor-patches/auto-patching/index",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# Automatic patching with Endor Patches

> Learn how to minimize changes for an Endor patch.

Upgrading software can be challenging for development teams. **Endor Automatic Patching** allows you to seamlessly fix security vulnerabilities during each software build, minimizing the effort required to maintain a secure codebase.

By enabling automatic patching with Endor Labs for every build, you can automatically address vulnerabilities in both direct and transitive dependencies. This approach helps prevent a growing backlog of security issues.

## Enable Automatic Patching

To start using Endor Lab’s automatic patching, follow these steps:

1. Configure Endor Labs Patch Factory.

   Set **Endor Labs Patch Factory** as the top priority package repository in your package manager or Artifactory virtual repository.
   For detailed instructions, refer to the following documentation:

   * Learn how to [connect to the Endor Labs Patch Factory](/risk-remediation/endor-patches/connecting-to-the-factory).
   * Learn how to [configure JFrog Artifactory](/risk-remediation/endor-patches/configure-jfrog-artifactory).
   * Learn how to [configure a Nexus repository](/risk-remediation/endor-patches/configure-nexus-repository).

2. Enable Auto Patching in Endor Labs. See [Endor Patches settings](/platform-administration/configure-system-settings#configure-endor-patches-settings) to activate auto patching.

### Considerations for automatic patching

While automatic patching enhances security by addressing vulnerabilities, it introduces some trade-offs.

#### Build reproducibility

Automatically applied patches may alter the build process or the resulting binaries in unpredictable ways, potentially affecting build reproducibility.

Endor Labs strives to provide the minimal necessary security patches to ensure your software remains secure without introducing significant changes. With automatic patching enabled, new patches are applied automatically as they become available, reducing manual intervention and enhancing your security posture.
