# Claude Code Source: https://docs.root.io/ai-integrations/claude-code Automatically detect and patch vulnerabilities in Claude Code The Root.io plugin for Claude Code automatically detects vulnerable packages and suggests Root.io patches as you edit dependency files. ## Prerequisites * Claude Code v1.x or later * Complete the [AI Integrations prerequisites](/ai-integrations/overview#prerequisites) (Root.io account, `rootio_patcher` CLI, registry configuration) ## Installation ### Plugin Marketplace (Recommended) Install directly through Claude Code's built-in plugin system: ``` /plugin marketplace add github:rootio-avr/root-ai /plugin install rootio-patcher@rootio ``` This is the easiest way to install and keep the plugin up to date. If Claude Code is already open, run `/reload-plugins` to activate without restarting. ### Manual Install If you prefer to install manually or already have `rootio_patcher` installed: ```bash theme={null} # Clone the repository git clone https://github.com/rootio-avr/root-ai.git # From your project root, copy the plugin files cp -r root-ai/platforms/claude-code/.claude-plugin .claude-plugin cp -r root-ai/platforms/claude-code/hooks .claude/hooks cp -r root-ai/platforms/claude-code/skills .claude/skills # Wire the PostToolUse hook mkdir -p .claude cat > .claude/settings.json <<'EOF' { "hooks": { "PostToolUse": [ { "matcher": "Edit|Write", "hooks": [ { "type": "command", "command": "bash \".claude/hooks/post-edit.sh\"", "timeout": 30 } ] } ] } } EOF ``` ### Verify Installation Restart Claude Code and check that the plugin loaded: ```bash theme={null} ls .claude-plugin/plugin.json ls .claude/hooks/post-edit.sh ls .claude/skills/rootio-patcher/SKILL.md ``` All three files should exist. ## How It Works The Claude Code integration uses a **PostToolUse hook** that triggers automatically when you edit dependency files. **Triggers when:** * Edit or Write tool modifies: `package.json`, `pom.xml`, `requirements.txt`, `pyproject.toml`, `Pipfile` **Behavior:** 1. Runs `rootio_patcher` in dry-run mode 2. If patches are available, Claude receives a notification with vulnerability counts 3. Claude offers to apply the patches 4. If you approve, Claude runs `rootio_patcher` with `--dry-run=false` The hook runs in the background and only notifies Claude when patches are found, so it doesn't interrupt your workflow. ## Example Interaction When you edit a dependency file: 1. **You or Claude edits** `package.json` to add a new dependency 2. **Hook runs automatically** - `rootio_patcher npm remediate` runs in the background 3. **Claude is notified** - "Found 3 vulnerable packages with Root.io patches available" 4. **Claude offers to fix** - "Would you like me to apply the Root.io patches?" 5. **You approve** - Claude runs `rootio_patcher npm remediate --dry-run=false` and `npm install` ## Manual Usage You can also manually trigger the vulnerability check by mentioning the skill: ``` "Check for Root.io patches" ``` Or invoke the patcher directly through Claude: ``` "Run rootio_patcher to check for npm patches" ``` For complete CLI usage, see the [Root Patcher CLI documentation](/rlc/patcher). # Codex Source: https://docs.root.io/ai-integrations/codex Automatically detect and patch vulnerabilities in Codex The Root.io plugin for Codex integrates vulnerability detection and patching directly into your Codex workflow. ## Prerequisites * Codex installed and configured * Complete the [AI Integrations prerequisites](/ai-integrations/overview#prerequisites) (Root.io account, `rootio_patcher` CLI, registry configuration) ## Installation Codex supports three installation methods for plugins. Choose the one that fits your workflow. ### Option 1: Clone the Repository Clone the root-ai repository and register the plugin path in Codex: ```bash theme={null} git clone https://github.com/rootio-avr/root-ai.git ``` Then in Codex settings, register the plugin directory: `/root-ai/platforms/codex` ### Option 2: Repository Marketplace Add the plugin to your project's `marketplace.json`: ```json theme={null} { "plugins": [ { "name": "rootio-patcher", "source": "https://github.com/rootio-avr/root-ai", "path": "platforms/codex" } ] } ``` Commit this file to your repository. Codex will automatically discover and install the plugin. ### Option 3: Personal Marketplace Add the plugin to your personal `marketplace.json` file (location varies by Codex configuration): ```json theme={null} { "plugins": [ { "name": "rootio-patcher", "source": "https://github.com/rootio-avr/root-ai", "path": "platforms/codex" } ] } ``` This makes the plugin available across all your Codex projects. ## Plugin Structure The plugin consists of: * **Plugin root:** `platforms/codex` * **Manifest:** `platforms/codex/.codex-plugin/plugin.json` * **Skill:** `platforms/codex/skills/rootio-patcher/SKILL.md` Codex reads the manifest to understand the plugin capabilities and loads the skill for AI-assisted patching. ## How It Works The Codex plugin automatically triggers when you're working with dependency files: **Triggers when:** * Editing or discussing: `package.json`, `pom.xml`, `requirements.txt`, `pyproject.toml`, `Pipfile` **Behavior:** 1. Codex recognizes dependency management context 2. The rootio-patcher skill becomes available 3. Codex can suggest vulnerability checks and patches 4. You can manually invoke the skill or let Codex suggest it ## Example Interaction When working with dependencies: 1. **You add a package** - Edit `package.json` to add a new dependency 2. **Codex detects context** - Recognizes you're managing dependencies 3. **Codex suggests check** - "Would you like me to check for vulnerabilities with Root.io?" 4. **You approve** - Codex runs `rootio_patcher npm remediate` 5. **Patches applied** - If vulnerable packages found, Codex offers to apply Root.io patches ## Manual Usage You can manually invoke the skill at any time: ``` "Use the rootio-patcher skill to check for vulnerabilities" ``` Or directly ask Codex to run the patcher: ``` "Run rootio_patcher to scan my Python dependencies" ``` For complete CLI usage, see the [Root Patcher CLI documentation](/rlc/patcher). # AI Integrations Source: https://docs.root.io/ai-integrations/overview Integrate Root.io with AI coding assistants for automatic vulnerability detection Root.io integrates with AI coding assistants to automatically detect and patch vulnerabilities as you code. When you edit package manifests (`package.json`, `pom.xml`, `requirements.txt`, etc.), your AI assistant checks for available Root.io patches and offers to apply them. ## Prerequisites Before setting up any AI integration, you need: 1. **Root.io account and API key** - See [Authentication](/getting-started/authentication) for setup instructions 2. **`rootio_patcher` CLI installed** - See [Root Patcher CLI](/rlc/patcher#installation) for installation 3. **Package registry configured** - See [Getting Started with RLC](/rlc/getting-started) for npm, pip, and Maven configuration ## Supported Platforms | Platform | Detection Method | Installation Type | | ------------------------------------------- | ---------------------------- | ------------------------ | | [Claude Code](/ai-integrations/claude-code) | Automatic (PostToolUse hook) | Plugin + Hook + Skill | | [Codex](/ai-integrations/codex) | Automatic (plugin) | Marketplace registration | GitHub Copilot and Cursor integrations coming soon. ## How It Works Once configured, your AI assistant automatically: 1. **Detects dependency changes** - When you edit package files, the integration triggers 2. **Scans for vulnerabilities** - Runs `rootio_patcher` in dry-run mode to check for patches 3. **Suggests fixes** - If patches are available, the AI offers to apply them 4. **Applies patches** - With your approval, runs the patcher to update your dependencies The integration is non-intrusive - it only activates when you're working with dependency files and doesn't interfere with normal coding. ## Next Steps Choose your AI assistant to get started: * [Set up Claude Code integration](/ai-integrations/claude-code) * [Set up Codex integration](/ai-integrations/codex) # Backported Patch Conformance Source: https://docs.root.io/compliance/backport-conformance How Root evaluates, validates, and delivers backported security patches. Root treats backporting as a disciplined security engineering activity. Every backported patch is evaluated as a complete technical deliverable — not an isolated code change — against Root's internal Backport Conformance Framework before it ships. This page describes the stages Root applies and the criteria a backported patch must meet. For an overview of what Root Patches are and how they differ from forced upgrades, see [Root Patches](/concepts/root-patches). ## Conformance Stages Each backported patch passes through five stages. A patch that does not satisfy all five is not shipped. ### Structured Analysis and Applicability Every backport begins with explicit analysis of the vulnerability, the affected code, and the target environment. This includes: * **Applicability determination** — whether the vulnerability exists in the target tree * **Fix tree identification** — locating the authoritative fix (upstream commit, maintainer patch, or advisory) * **Assumption documentation** — recording any differences in risk assessment between the fix tree and target tree ### Derivation from Prior Art Backports are derived from existing fixes wherever possible — they are not greenfield work. Root documents: * **How the fix was adapted** from the fix tree to the target tree * **Semantic gaps** — structural or behavioral differences that required reengineering * **Divergence from upstream intent** — any deliberate deviation is explained, not implicit ### Code Quality and Semantic Conformance Beyond functional correctness, Root evaluates whether the patch belongs in the target codebase: * **Semantic consistency** — the patch follows the conventions and idioms of the target tree * **Readability and maintainability** — the change is understandable in context * **Minimal footprint** — no unnecessary changes beyond what the fix requires ### Secondary Security Analysis Root does not assume reference fixes are inherently safe. Each backport undergoes a secondary security review: * **Attack surface assessment** — does the imported code introduce new vulnerabilities? * **Scope-proportional scrutiny** — larger or more complex changes receive deeper analysis * **Regression risk** — could the fix destabilize security-relevant behavior elsewhere? ### Verification and Evidence Backports are validated with concrete, reproducible evidence: * **Maintainer test suites** — run on the target tree with the patch applied * **Targeted tests** — added or adapted to cover the specific vulnerability * **Exploit-focused verification** — proof-of-concept or synthetic exploit validation confirms the vulnerable behavior no longer exists ## Deliverables Backports ship as complete, reviewer-oriented artifacts. An independent reviewer can inspect: * **Structured analysis** — the vulnerability assessment and applicability determination * **Source-level diffs** — the patch itself, with derivation context * **Verification results** — test outcomes and exploit validation * **SBOM, VEX, and provenance** — updated automatically with every Root Patch See [SBOMs](/concepts/sbom), [VEX Statements](/concepts/vex), and [Provenance](/concepts/provenance). ## How Conformance Is Determined Conformance is a holistic determination based on the complete set of artifacts and evidence. It reflects: * The quality of the underlying analysis * The soundness of the derivation from prior art * The safety of the implementation in the target codebase * The strength of the verification evidence There is no single pass/fail metric. Conformance is the outcome of rigorous, artifact-based review across all five stages. ## Glossary Terms specific to Root's Backport Conformance Framework. For general terms, see the [Glossary](/reference/glossary). | Term | Definition | | ------------------------------- | ------------------------------------------------------------------------------------------------------------------- | | **Fix Tree** | The source tree where the authoritative fix exists and from which the backport is derived. | | **Target Tree** | The source tree and version to which the backported patch is applied and validated. | | **Semantic Gap** | Structural or behavioral differences between the fix tree and target tree that must be addressed during adaptation. | | **Derivation** | The documented adaptation of a fix from the fix tree to the target tree. | | **Secondary Security Analysis** | Focused review to identify new risks introduced by the backport or imported code. | | **Prior Art** | Existing fixes, commits, or design patterns that inform how a backport is derived. | # Certifications & Attestations Source: https://docs.root.io/compliance/certifications Root's compliance certifications and how to access audit reports. Root maintains third-party certifications and attestations to support customer compliance programs and procurement requirements. ## SLSA Compliance Root's AVR pipeline generates SLSA (Supply chain Levels for Software Artifacts) provenance attestations for every artifact it produces. Attestations are available for all images and packages from `cr.root.io` and `pkg.root.io`. Every artifact includes: * **Signed SLSA provenance** - cryptographically signed build record in SLSA format * **SPDX SBOM** - full component inventory * **OpenVEX statements** - vulnerability exploitability assertions * **cosign image signatures** - image signing for supply chain verification See [Provenance](/concepts/provenance) for details on verification. ## FIPS & STIG Root has published FIPS and STIG attestation materials at [github.com/rootio-avr/fips-attestations](https://github.com/rootio-avr/fips-attestations). For questions about FIPS requirements and current availability, contact [security@root.io](mailto:security@root.io). ## SOC 2 Type II Root holds SOC 2 Type II certification, validating controls for security, availability, and confidentiality. To request the report, contact [security@root.io](mailto:security@root.io). ## Cyber Essentials Root holds Cyber Essentials certification, demonstrating essential cybersecurity measures. ## Industry Memberships Root is an active participant in key open source and security standards bodies: * **CNCF** - Contributing member * **OWASP Global** - Member * **OASIS** - Voting member ## Requesting Compliance Documentation | Document | How to Access | | ------------------------------------------- | --------------------------------------------------------------------------------------------------- | | SOC 2 Type II report | Email [security@root.io](mailto:security@root.io) | | FIPS attestations and STIG scan results | [github.com/rootio-avr/fips-attestations](https://github.com/rootio-avr/fips-attestations) (public) | | SLSA provenance for any artifact | Root API - `/v1/images/tags/{rrtID}/provenance` | | SBOMs for any artifact | Root API - `/v1/images/tags/{rrtID}/sbom` | | Security questionnaire / procurement review | Email [security@root.io](mailto:security@root.io) | # Trust & Compliance Overview Source: https://docs.root.io/compliance/overview Root's security posture, certifications, and resources for compliance and procurement teams. Root is built for organizations with rigorous security and compliance requirements. This section covers Root's own security posture, the certifications and attestations Root holds, and resources for procurement, legal, and compliance reviews. ## What's in This Section Root's secure development practices, vulnerability disclosure policy, and infrastructure security. SOC 2, and other compliance certifications with audit report access. Sub-processors, data residency, and security FAQ for procurement reviews. ## Compliance Use Cases ### Vulnerability Management SLA Many compliance frameworks (SOC 2, PCI-DSS, FedRAMP) require that vulnerabilities be remediated within defined time windows. Root's SLA-backed remediation provides the documented evidence auditors need: | Severity | Root SLA | Typical Requirement | | -------- | -------- | --------------------- | | Critical | 7 days | 30 days (PCI-DSS 4.0) | | High | 14 days | 30–60 days | | Medium | 60 days | 90 days | ### Software Bill of Materials (SBOM) Executive Order 14028 and emerging regulations (EU CRA, NTIA minimum elements) require SBOMs for software in production. Every Root artifact ships with an automatically generated SBOM in SPDX or CycloneDX format. See [SBOMs](/concepts/sbom). ### VEX Statements VEX documents let you communicate to auditors and downstream consumers which vulnerabilities in your software are not exploitable. Root generates VEX statements alongside every Root Patch. See [VEX Statements](/concepts/vex). ### Provenance and Supply Chain Attestation SLSA and SSDF frameworks require attestation of how software was built. Root's provenance attestations provide cryptographic proof that every artifact passed through Root's verified AVR pipeline. See [Provenance](/concepts/provenance). ### FedRAMP Root's SLA-backed CVE remediation, SBOM generation, and provenance attestations align with FedRAMP's continuous monitoring and supply chain risk management requirements. [Contact Root](https://root.io) for agency-specific guidance. ### PCI-DSS 4.0 PCI-DSS 4.0 (Requirement 6.3.3) requires that all software components are protected from known vulnerabilities. Root's automated, SLA-backed patching and SBOM artifacts directly address these requirements. [Contact Root](https://root.io) for QSA guidance materials. # Security Posture Source: https://docs.root.io/compliance/security-posture How Root secures its own platform, development practices, and infrastructure. Root applies the same rigor to its own software supply chain that it applies to its customers'. This page documents Root's security practices for procurement and security review purposes. ## Secure Development Practices **Root uses its own products internally.** The software that runs Root's platform - the AVR pipeline, API services, and registry infrastructure - is built and deployed using Root Image Catalog and Root Library Catalog. This means Root's own images and packages are continuously patched by the same pipeline it provides to customers. **Code review:** All changes to Root's platform require peer review before merging. No direct pushes to main branches. Security-sensitive changes (authentication, data handling, cryptographic operations) require review from a senior engineer. **Dependency management:** Application dependencies are managed through Root Library Catalog. All direct and transitive dependencies in Root's services are resolved through `pkg.root.io`, ensuring that vulnerable dependencies are patched before they reach production. **Secret scanning:** Automated secret scanning runs on every commit. Credentials, API keys, and tokens are never committed to source control. **SSDLC (Secure Software Development Lifecycle):** Root's development process includes security requirements at the design stage, threat modeling for significant features, and security-focused code review criteria. ## Infrastructure Security **Cloud provider:** Root runs on AWS. All services are deployed in VPCs with private subnets for application workloads. Public-facing endpoints are protected by load balancers and WAF rules. **Network segmentation:** Application services, data stores, and build infrastructure run in separate security groups with minimal required connectivity between them. The AVR build pipeline runs in an isolated network segment with no inbound internet access. **Encryption at rest:** All data stored by Root - PostgreSQL databases, S3 buckets, Redis - uses encryption at rest with AWS-managed keys (AES-256). **Encryption in transit:** All communication between Root services and between Root and its customers uses TLS 1.2+. Registry credentials are never transmitted in plaintext. **Access control:** Production access requires MFA. Access to production systems is granted on a least-privilege basis and reviewed quarterly. Engineers have no standing access to production customer data. ## Vulnerability Disclosure Policy Root welcomes responsible disclosure of security vulnerabilities in its platform. **To report a vulnerability:** 1. Email [security@root.io](mailto:security@root.io) with a description of the issue 2. Include steps to reproduce if possible 3. Root will acknowledge receipt within 1 business day 4. Root commits to providing an initial response within 5 business days **Please do not:** * Exploit vulnerabilities beyond what is necessary to confirm the issue * Access, modify, or delete customer data * Perform denial-of-service testing Root does not pursue legal action against researchers who act in good faith. ## Penetration Testing Root conducts third-party penetration testing annually covering the Root API, registries, and platform web application. A summary of the most recent penetration test is available to enterprise customers under NDA. Contact your Root account representative to request it. ## Data Handling **What Root collects:** When you pull an image or package from Root's registries, Root logs: * The image or package name and version pulled * A timestamp * Your organization identifier (not individual user identity for package pulls) Root does not log the contents of your images, source code, or application data. **Retention:** Registry access logs are retained for 90 days. Vulnerability and patch data is retained for the duration of your subscription and deleted within 30 days of account termination upon request. **Data processing locations:** Root processes and stores data in AWS US East (us-east-1). Enterprise customers can request data residency options - see [Trust Center](/compliance/trust-center). **Data Processing Agreement:** A DPA is available for customers who require it for GDPR compliance. Contact [legal@root.io](mailto:legal@root.io) to request a DPA. # Trust Center Source: https://docs.root.io/compliance/trust-center Sub-processors, data residency, and security FAQ for procurement and legal reviews. Root's Trust Center provides the information procurement, legal, and security teams need to evaluate Root as a vendor. ## Sub-Processors Root uses the following third-party sub-processors in delivering its services: | Sub-Processor | Purpose | Location | | ----------------------------- | --------------------------------------------------------------------- | ------------- | | **Amazon Web Services (AWS)** | Cloud infrastructure, compute, storage (S3, RDS, ECR), and networking | United States | | **SendGrid (Twilio)** | Transactional email (invitation emails, notifications) | United States | For the most current and complete sub-processor list, contact [security@root.io](mailto:security@root.io). ## Data Residency **Default:** Root processes and stores all customer data in AWS US East (us-east-1). **Enterprise options:** Contact your Root account representative to discuss data residency requirements for European or other regional compliance needs. **What data Root stores:** * Registry access logs (which images and packages your organization pulled, and when) * Vulnerability and patch metadata for your subscribed artifacts * User account and organization configuration * SBOM, VEX, and provenance artifacts for your subscribed images and packages Root does not store the contents of your container images or application source code. ## Data Retention | Data Type | Retention Period | | ----------------------------------- | ------------------------ | | Registry access logs | 90 days | | Vulnerability and patch metadata | Duration of subscription | | SBOM, VEX, and provenance artifacts | Duration of subscription | | User account data | Until account deletion | Upon account termination, Root will delete your organization's data within 30 days upon written request. ## Security FAQ **Is data encrypted at rest?** Yes. All data stored by Root uses AES-256 encryption at rest via AWS-managed keys. S3 buckets, RDS databases, and Redis caches are all encrypted. **Is data encrypted in transit?** Yes. All communication between Root and customers uses TLS 1.2 or higher. Registry credentials are never transmitted in plaintext. **How does Root control access to customer data?** Root engineers do not have standing access to production customer data. Access is granted on a break-glass basis with logging and requires approval. **Does Root have a SOC 2 report?** Root's SOC 2 program is in progress. Contact [security@root.io](mailto:security@root.io) for information about Root's current security controls documentation. **Does Root conduct penetration testing?** Yes. Contact [security@root.io](mailto:security@root.io) for information about Root's penetration testing program. **Does Root provide FIPS or STIG documentation?** Root has published FIPS and STIG attestation materials at [github.com/rootio-avr/fips-attestations](https://github.com/rootio-avr/fips-attestations). Contact [security@root.io](mailto:security@root.io) for current status and availability. ## Legal Documents For legal and compliance documentation, contact [legal@root.io](mailto:legal@root.io). | Document | How to Access | | ----------------------------------- | ------------------------------------------------------------------------------------------ | | **Data Processing Agreement (DPA)** | Email [legal@root.io](mailto:legal@root.io) to request | | **Security questionnaire** | Email [security@root.io](mailto:security@root.io) | | **FIPS attestations** | [github.com/rootio-avr/fips-attestations](https://github.com/rootio-avr/fips-attestations) | # Agentic Vulnerability Remediation (AVR) Source: https://docs.root.io/concepts/avr How Root's fleet of AI agents researches, patches, tests, and delivers fixes for vulnerable open source packages - automatically. Agentic Vulnerability Remediation (AVR) is the engine behind Root. Instead of identifying vulnerabilities and leaving remediation to your team, AVR fixes them - automatically, continuously, and at a scale no manual process can match. The term "agentic" reflects how AVR works: specialized AI agents handle different aspects of remediation collaboratively, operating as a fleet rather than a single model. ## The Five Stages of AVR When a new CVE is published, Root's system ingests the vulnerability data within seconds - NVD advisories, upstream commit history, exploit databases, affected version ranges. Affected components are identified automatically, and remediation is triggered without any human intervention. Research agents analyze the vulnerability in depth: locating upstream fixes, assessing compatibility with the specific versions you're running, and determining whether a backport or native distribution package upgrade is the right approach. This stage produces a precise remediation strategy before any code is changed. Patching agents generate the fix for the exact version you're running. Root patches existing software rather than rebuilding from source. If an upstream fix exists, it's backported to your pinned version. This preserves compatibility - your dependencies don't change, only the vulnerability is removed. The patched artifact is validated against multiple layers of testing: the package's own test suite, functional tests, CVE-specific regression tests that confirm the exploit is blocked, and compatibility verification that confirms nothing else broke. A patch doesn't ship until it passes. The validated artifact is rebuilt with the patch applied, signed with cryptographic attestations (SBOM, VEX, provenance), and published to Root's registries. Your next `docker pull` or `pip install` gets the fix. ## AVR vs. Rebuilding from Source Other secure image providers rebuild entire images from source. This creates breaking changes, forces migrations to vendor registries, and limits version support. Root's approach is different: | | Rebuild Approach | Root AVR | | ------------------ | ----------------------------------------- | --------------------------------- | | Method | Rebuild entire image from upstream source | Patch in place | | Breaking changes | Possible | None | | Registry migration | Required | Not required | | Version support | Limited to maintained versions | Any version | | User control | Reduced - tied to vendor's build | Full - you validate and implement | ## Why AVR Scales Manual CVE remediation is a per-ticket, per-engineer process. AVR handles hundreds of vulnerabilities daily across every subscribed artifact, operating continuously without fatigue or backlog. When a CVE is published, remediation starts within seconds - not after a standup. ## Trust and Verifiability AVR is built to be audited, not just trusted: * **Transparency** - every patched artifact documents what was fixed and how * **Verifiability** - Patch Explorer lets security teams review the full remediation for any artifact * **Testing** - fixes are validated before delivery; test results are included in the artifact's provenance * **Cryptographic attestation** - SBOM, VEX, and provenance prove the artifact came from Root's pipeline See [Root Artifacts](/concepts/provenance) for details on the full attestation model. # Root Patches & Patch Stream Source: https://docs.root.io/concepts/patch-stream Enterprise capability for receiving standalone patch artifacts as reproducible build streams - for organizations that need to validate and implement patches themselves. Root Patches / Patch Stream is an enterprise capability that delivers patch artifacts as standalone packages your organization validates and implements independently. Where Root Image Catalog and Root Library Catalog deliver secured artifacts ready to use, Patch Stream delivers the patch itself - complete with build evidence - for integration into your own CI/CD pipeline. Root Patches / Patch Stream is available through enterprise engagements. Contact your Root account representative or [Root Sales](https://root.io) to learn more. ## What Patch Stream Delivers Instead of a pre-patched image or package, Patch Stream delivers a complete patch package containing: * **The fix itself** - the source code changes or binary patch * **Remediation intelligence** - documentation of the vulnerability, the fix approach, and why it was chosen * **Build artifacts** - all evidence produced during the AVR build process * **Test results** - comprehensive testing documentation including exploit blocking confirmation * **Merge instructions** - guidance for implementing the patch in your own build pipeline ## Why Patch Stream Exists Patch Stream serves organizations with specific requirements that the standard RIC/RLC model doesn't fully address: **Non-upgradable critical systems.** Large institutions with mission-critical systems that cannot be modified by an external party can receive Root's patch work as a deliverable and apply it under their own change management process. **Full supply chain control.** Organizations that need to validate every artifact that enters their environment - and cannot allow an external system to write directly to their registries - can use Patch Stream to receive patches, review them, and implement them themselves. **High-security and air-gapped environments.** Patch Stream operates outside your perimeter. Root delivers; you validate and implement on your own schedule and through your own controls. **Enterprise CI/CD integration.** Organizations with established patch feed workflows in their CI/CD pipelines can integrate Patch Stream directly, consuming Root's reproducible fix build streams as inputs to their existing processes. ## How Patch Stream Works Patch Stream uses the same AVR Factory that powers RIC and RLC: 1. CVE detected → AVR Research begins 2. Patching agents generate the fix for your specific version 3. Testing validates the patch (exploit blocked, functionality preserved) 4. Human validators review and approve 5. Standalone patch artifacts are delivered as a patch feed The result is a reproducible patch artifact with complete build evidence - not a pre-applied fix in a managed artifact, but the fix itself for you to implement. ## Universal Coverage Patch Stream supports: * **Any OS** - Alpine, Ubuntu, Debian, RHEL, and specialized distributions * **Any package manager** - all major ecosystems * **Any version** - current, legacy, and end-of-life versions that other providers won't touch ## Getting Access Patch Stream is available through enterprise engagements. Reach out to: * Your Root account representative * [Root Sales](https://root.io/contact) * [support@root.io](mailto:support@root.io) # Provenance Source: https://docs.root.io/concepts/provenance Cryptographic attestations that prove how and when Root built every secured artifact. Every artifact Root delivers includes a provenance attestation - a cryptographic record that proves the artifact was built by Root's AVR pipeline, documents exactly how it was built, and includes the test results that validated the fix. Provenance is what makes Root's claims verifiable, not just trustworthy. You don't have to take Root's word that a CVE was fixed - provenance gives you the proof to check. ## What Provenance Records A Root provenance attestation includes: * **Builder identity** - proof that Root's AVR Factory produced the artifact (cryptographically signed) * **Build timestamp** - when the artifact was built and when the patch was applied * **Build inputs** - the exact source materials used: which patch was applied, from which upstream source * **Test results** - the outcomes of package tests, functional tests, and CVE regression tests run against the patch * **Configuration** - the parameters used to produce the artifact, ensuring reproducibility ## Why Provenance Matters **For supply chain security:** Provenance verifies that an artifact wasn't tampered with between Root's build pipeline and your registry pull. The cryptographic signature is unforgeable. **For compliance:** Provenance supports SLSA (Supply chain Levels for Software Artifacts) requirements and satisfies audit needs for software build verification. **For trust:** Provenance answers the question "how do I know Root actually fixed this?" with evidence, not assertion. ## Patch Explorer Root's Patch Explorer is the platform interface for reviewing provenance without needing to parse raw attestation formats. It provides a human-readable view of: * Which vulnerabilities were fixed in a specific image or package version * How Root fixed them - the remediation approach and patch type * When fixes were applied - the full timeline of security updates * Before/after comparison - what changed and what was preserved Patch Explorer is accessible from the Root platform UI in three places: the image report for a specific image, the library report for a specific package, and the Vulnerabilities page for any remediated CVE. ## Accessing Provenance Attestations **For container images (RIC):** SLSA compliant Provenance files are available via API or in the UI using the unique image id (`rrtID`): **Via the Root platform UI:** Navigate to any subscribed image and download the Provenance directly. **Via the Root API:** See [API Reference](/reference/api) for the `/images/tags/{rrtID}/provenance` endpoint. ## SLSA Compliance Root's build pipeline is designed to meet SLSA (Supply chain Levels for Software Artifacts) requirements. Provenance attestations are generated in SLSA format and are verifiable using standard tooling. Root targets **SLSA Level 2** for all artifacts produced by AVR: * **Source integrity** - all build inputs are version-controlled; source references in provenance are traceable to specific commits * **Build integrity** - builds run on Root's controlled infrastructure; no external parties can influence the build process * **Signed provenance** - provenance is cryptographically signed and available for download from the Root API **Verifying provenance with cosign:** ```bash theme={null} # Download the provenance attestation for an image tag curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/images/tags/{rrtID}/provenance" -o provenance.json # Verify the attestation signature cosign verify-attestation \ --type slsaprovenance \ --certificate-identity-regexp "https://github.com/root-io/" \ cr.root.io/python:3.12-slim ``` **Provenance format:** Attestations follow the [SLSA Provenance v0.2](https://slsa.dev/spec/v0.2/provenance) schema: ```json theme={null} { "_type": "https://in-toto.io/Statement/v0.1", "predicateType": "https://slsa.dev/provenance/v0.2", "subject": [ { "name": "cr.root.io/python", "digest": { "sha256": "abc123..." } } ], "predicate": { "builder": { "id": "https://avr.root.io/pipeline" }, "buildType": "https://avr.root.io/build/v1", "invocation": { ... }, "metadata": { "buildStartedOn": "2026-03-08T12:00:00Z", "completeness": { "environment": true, "materials": true } }, "materials": [ ... ] } } ``` # Root Patches Source: https://docs.root.io/concepts/root-patches What a Root Patch is, how it's applied, and how it differs from a forced version upgrade. A Root Patch is the smallest safe change that eliminates a known vulnerability in an open source package or container image. Root Patches are applied in-place - without bumping to a newer release or forcing a rebase - and every patch ships with updated SBOM, VEX, and provenance documentation. ## The Core Principle Root patches the version you're already running. Your declared dependency version doesn't change. Your lockfile stays stable. The vulnerability is removed from the version you chose, not replaced with a different version that may or may not be compatible with your application. ## Two Patch Types ### Backported Patches A fix is taken from a newer upstream version and applied to the older version you're running. This is the preferred approach when: * The upstream project has already fixed the issue in a newer release * Your application cannot safely upgrade to that newer release * The fix can be cleanly separated from other changes in the newer version Root's patching agents perform the backport, run the full test suite, and confirm the exploit is blocked before the patch ships. ### Native Distribution Package Upgrades When a Linux distribution (Debian, Ubuntu, Alpine, RHEL) has already released an updated package that includes the fix, Root applies the distribution's own update. This approach is used when: * The distro's security team has already done the backport work * The distribution's package is available for the OS version in your image * The distribution's update is the canonical fix for that platform ## What Root Never Does * Force a major or minor version bump you didn't ask for * Rebuild your image from a different upstream base * Change package APIs or behaviors * Introduce new dependencies beyond what the fix requires ## Patch Validation Every Root Patch is validated before delivery: 1. **Package test suite** - the patched package's own tests run against the fix 2. **Functional tests** - end-to-end tests confirm the package behaves correctly after patching 3. **CVE regression tests** - tests specific to the vulnerability confirm the exploit path is blocked 4. **Compatibility checks** - downstream dependencies are tested against the patched version A patch that fails any of these stages is not shipped. ## Patch Transparency Each Root Patch is documented in the artifact's SBOM and VEX statement: * **SBOM** - the component inventory is updated to reflect the patched version of the vulnerable package * **VEX** - a statement is generated asserting the CVE is fixed in this artifact, with the remediation approach documented * **Provenance** - the full build record, including test results, is included as a cryptographic attestation See [SBOMs](/concepts/sbom), [VEX Statements](/concepts/vex), and [Provenance](/concepts/provenance) for details. # SBOMs Source: https://docs.root.io/concepts/sbom How Root generates and maintains Software Bills of Materials for every image and package it delivers. Every artifact in Root's registries ships with a Software Bill of Materials (SBOM) - a complete inventory of every component, package, and dependency in that artifact, including the specific versions and which ones were patched by Root. ## What is an SBOM? An SBOM is a machine-readable list of all the software components in an artifact. Think of it as an ingredient label for software: it tells you exactly what's inside, at what version, and where it came from. SBOMs are increasingly required for compliance (NTIA minimum elements, Executive Order 14028, NIST guidance) and are the foundation of supply chain transparency. ## Why Root's SBOMs Matter Root doesn't just generate SBOMs from an initial scan - it **updates them continuously** as Root Patches are applied. When a vulnerability is patched, the SBOM reflects the new state of the artifact: the patched component version, the change that was made, and when it was applied. This means Root SBOMs always represent the current, post-remediation state of the artifact - not a snapshot from when it was first built. ## What Root SBOMs Include * Complete component inventory - every OS package, language runtime, and installed library * Version information for every component * Patch records - which components were modified by Root, and how * Dependency relationships - transitive dependencies are included, not just direct ones ## Supported Formats Root generates SBOMs in two industry-standard formats: | Format | Version | Notes | | --------- | ------- | ----------------------------------------------------------------- | | SPDX | 2.3 | Widely supported; used for compliance and government requirements | | CycloneDX | 1.5 | Rich VEX integration; preferred for toolchain ingestion | ## Accessing SBOMs **For container images (RIC):** SBOMs are available via API or in the UI using the unique image id (`rrtID`): **Via the Root platform UI:** Navigate to any subscribed image and download the SBOM directly. **Via the Root API:** See [API Reference](/reference/api) for the `/images/tags/{rrtID}/sbom` endpoint. ## Integrating Root SBOMs with Your Toolchain Root SBOMs can be ingested by major vulnerability scanners and SBOM management platforms: * **Grype / Syft** - use Root's SPDX or CycloneDX SBOM as input * **Trivy** - supports SBOM input for offline scanning * **Dependency-Track** - ingest CycloneDX SBOMs for continuous tracking * **Anchore** - supports both formats See [VEX Statements](/concepts/vex) for how to pair SBOMs with Root VEX data to suppress already-patched findings in your scanner output. # VEX Statements Source: https://docs.root.io/concepts/vex How Root uses Vulnerability Exploitability eXchange (VEX) to document the fix status of every CVE in its artifacts. Every Root Patch is accompanied by a VEX statement - a machine-readable document that asserts the exploitability status of a specific CVE in a specific artifact. VEX lets your scanners know that a vulnerability has been addressed, eliminating false positives and keeping compliance reports accurate. ## What is a VEX Statement? VEX (Vulnerability Exploitability eXchange) is a standard for communicating whether a known vulnerability in a software component is actually exploitable in a specific context. Where an SBOM says "this package is present," a VEX statement says "this CVE in this package has been fixed" or "this CVE is present but not exploitable in this artifact." ## Root's Use of VEX Root generates VEX statements for every vulnerability it addresses. Each statement records: * **The CVE** - the specific vulnerability identifier * **The affected artifact** - the image or package version where it was present * **The status** - `fixed` (Root Patch applied) or `not_affected` (present but not exploitable in this context) * **The justification** - how it was fixed and why the fix can be trusted * **The timestamp** - when the statement was issued ## Why VEX Matters for Scanner Output Without VEX, scanners like Trivy, Grype, and Snyk will flag CVEs that Root has already patched. This creates noise in security reports and wastes triage time. With Root's VEX statements: * Patched findings are suppressed automatically * Remaining findings are genuinely unaddressed * Compliance reports reflect actual risk, not scanner noise ## Supported Formats | Format | Notes | | ------------- | -------------------------------------------------------------------- | | OpenVEX | CISA-endorsed open standard; broadly supported | | CycloneDX VEX | Tightly integrated with CycloneDX SBOMs; preferred for toolchain use | ## Accessing VEX Statements **For container images (RIC):** VEX documents are available as via API or in the UI using the unique image id (`rrtID`): **Via the Root platform UI:** Download VEX statements per-artifact from the Inventory view. **Via the Root API:** See [API Reference](/reference/api) for the `images/tags/{rrtID}/vex` endpoint. ## Using VEX with Scanners ```bash theme={null} # Trivy - pass VEX file to suppress fixed findings trivy image --vex root-vex.json cr.root.io/python:3.12 # Grype - use VEX to filter results grype cr.root.io/python:3.12 --vex root-vex.json ``` See [VEX Reports](/reports/vex-reports) for bulk VEX export and scanner integration patterns. # Vulnerability Lifecycle Source: https://docs.root.io/concepts/vulnerability-lifecycle From CVE publication to Root Patch delivery - how Root closes the exposure window. The time between a CVE being published and it being fixed in your environment is your exposure window. Without Root, this is measured in weeks or months. With Root, it's measured in hours. ## Without Root: The CVE Treadmill A typical remediation cycle without Root: 1. CVE is published 2. Scanner detects the vulnerability in your images or packages (hours to days later) 3. AppSec triages the finding and opens a ticket (days later) 4. Engineering receives the ticket and investigates (days to weeks later) 5. A fix is applied, reviewed, and merged (weeks later) 6. The fix is deployed to production (weeks to months later) Throughout this entire cycle, your systems remain exposed. And the next CVE is already in the queue. ## With Root: Automated Remediation When a CVE is published for a package in your Root subscription: 1. **Seconds** - AVR ingests the CVE and identifies affected components 2. **Hours** - Research agents analyze the vulnerability and build a remediation plan 3. **Hours to days** (within SLA) - Patching agents generate and test the fix 4. **On delivery** - The patched artifact is published at Root's registries with updated SBOM, VEX, and provenance 5. **On your next pull/install** - Your environment gets the fix See [Vulnerability Statuses](/concepts/vulnerability-statuses) for SLA timelines by severity. ## Exposure Window Reduction The exposure window collapses from weeks or months to the time between CVE publication and your next deployment cycle - because Root has already done the remediation work before you even know the CVE exists. ## Continuous Coverage Root doesn't remediate once and stop. Every subscribed artifact is monitored continuously. When a new CVE is discovered for a package you're using: * AVR automatically begins the remediation pipeline * Your existing deployment gets a patched update at the same tag or version * You receive notification of the new patch and updated artifacts ## Zero-Day and No-Fix Scenarios When a CVE is published with no upstream fix available, Root tracks the vulnerability and assigns it a "No Fix Available" status. As soon as an upstream fix or viable patch candidate exists, AVR begins remediation and the SLA clock starts. See [Vulnerability Statuses](/concepts/vulnerability-statuses) for the full status model. # Vulnerability Statuses Source: https://docs.root.io/concepts/vulnerability-statuses How Root tracks and communicates the remediation status of every CVE across your subscribed images and packages. Every vulnerability Root tracks for your subscribed artifacts has one of three statuses. These statuses reflect where Root is in the remediation process and set expectations for when a fix will be available. ## Status Definitions ### Under SLA Root has identified the vulnerability in a subscribed image or package, a fix candidate has been found, and AVR is actively working on the patch. The SLA clock is running. **SLA timelines:** | Severity | SLA | | -------- | ------- | | Critical | 7 days | | High | 14 days | | Medium | 60 days | When a vulnerability enters "Under SLA" status, you can expect a Root Patch within the timeframe above. ### Fixed Root has produced and applied a patched version of the affected package or image. The remediated artifact is available at Root's registries. An updated SBOM and VEX statement are available documenting the fix. ### No Fix Available Root has identified the vulnerability in a subscribed artifact but cannot currently remediate it - because no upstream fix or applicable patch candidate exists yet. When a vulnerability is in "No Fix Available" status: * The SLA clock has **not** started - Root cannot commit to a timeline without a fix to work from * Root monitors the vulnerability continuously and will begin remediation as soon as an upstream fix is available * You will be notified when the status changes to "Under SLA" ## Viewing Vulnerability Status Vulnerability statuses are visible in the Root platform UI per-artifact and in the aggregate vulnerability report. They're also available via the Root API for integration into your ASPM or ticketing tools. See [Vulnerability Reports](/reports/vulnerability-reports) for details on accessing and exporting status data. # Registry Credentials Source: https://docs.root.io/getting-started/authentication How to authenticate to Root's registries for container images and application packages. Root's registries require authentication. This page covers credential setup for both `cr.root.io` (Root Image Catalog) and `pkg.root.io` (Root Library Catalog), including CI/CD and service account configurations. ## Getting Credentials Access to Root's registries is provisioned during onboarding. You'll receive: * A **username** (`rootio` for package registries, or your organization's identifier) * A **registry token** - used as the password for all Root registries Your token authenticates to both `cr.root.io` and `pkg.root.io`. Tokens are long-lived by default and can be rotated from the Root platform. To request access, [contact Root](https://root.io). ## Authenticating to cr.root.io **Docker CLI:** ```bash theme={null} docker login cr.root.io \ --username rootio \ --password YOUR_ROOT_TOKEN ``` After logging in, Docker stores credentials in `~/.docker/config.json`. All subsequent `docker pull cr.root.io/...` commands use these credentials automatically. **containerd credential helper:** For `containerd` (used by Kubernetes nodes), configure credentials in `/etc/containerd/config.toml`: ```toml theme={null} [plugins."io.containerd.grpc.v1.cri".registry] [plugins."io.containerd.grpc.v1.cri".registry.configs."cr.root.io".auth] username = "rootio" password = "YOUR_ROOT_TOKEN" ``` Restart containerd after making changes: ```bash theme={null} sudo systemctl restart containerd ``` **Kubernetes ImagePullSecrets:** ```bash theme={null} kubectl create secret docker-registry root-registry-credentials \ --docker-server=cr.root.io \ --docker-username=rootio \ --docker-password=YOUR_ROOT_TOKEN \ --namespace=your-namespace ``` Reference the secret in your Pod spec: ```yaml theme={null} spec: imagePullSecrets: - name: root-registry-credentials containers: - name: app image: cr.root.io/python:3.12-slim ``` To apply credentials cluster-wide, add the secret to the `default` ServiceAccount in each namespace. ## Authenticating to pkg.root.io Each package manager uses its own configuration format. The token is the same across all ecosystems. **pip / uv:** ```bash theme={null} # ~/.netrc machine pkg.root.io login rootio password YOUR_ROOT_TOKEN ``` **npm:** ```bash theme={null} npm config set //pkg.root.io/npm/:_authToken YOUR_ROOT_TOKEN --location=project ``` **Maven (`~/.m2/settings.xml`):** ```xml theme={null} root-io rootio ${env.ROOT_TOKEN} ``` See the individual integration guides for full setup instructions: [pip](/integrations/pip), [npm](/integrations/npm), [Maven](/integrations/maven), [Yarn](/integrations/yarn), [pnpm](/integrations/pnpm), [Poetry](/integrations/poetry), [uv](/integrations/uv). ## Service Accounts for CI/CD For CI/CD pipelines, store your Root token as a secret rather than hardcoding it. **Recommended environment variable name:** `ROOT_TOKEN` **GitHub Actions:** ```yaml theme={null} - name: Log in to Root Image Catalog uses: docker/login-action@v3 with: registry: cr.root.io username: rootio password: ${{ secrets.ROOT_TOKEN }} ``` **GitLab CI:** ```yaml theme={null} before_script: - docker login cr.root.io --username rootio --password "$ROOT_TOKEN" ``` **Generic shell:** ```bash theme={null} echo "$ROOT_TOKEN" | docker login cr.root.io --username rootio --password-stdin ``` ## Rotating Credentials To rotate your registry token, generate a new one from the Root platform and update it in: 1. Your CI/CD secret store (`ROOT_TOKEN` secret) 2. Any `~/.netrc`, `.npmrc`, or `settings.xml` files with the old token 3. Kubernetes ImagePullSecrets: delete and recreate with the new token ```bash theme={null} # Re-create the Kubernetes ImagePullSecret after rotation kubectl delete secret root-registry-credentials -n your-namespace kubectl create secret docker-registry root-registry-credentials \ --docker-server=cr.root.io \ --docker-username=rootio \ --docker-password=NEW_ROOT_TOKEN \ --namespace=your-namespace ``` Tokens can be rotated without downtime - old tokens remain valid for a short grace period after a new token is issued. # Free Trial Source: https://docs.root.io/getting-started/free-trial Get full access to Root's secure supply platform — container images and application libraries — free for 2 months. Root is offering a free, self-service trial with full product access in response to the Q1 2026 supply chain attacks that compromised widely used packages including Trivy, LiteLLM, and axios. [Read the full background on our blog](https://www.root.io/blog/root-has-a-fix-q1-2026). ## What's included The free trial gives you the same access as a paid Root organization: | Capability | Included | | -------------------------------------------------------------- | -------- | | Root Image Catalog (RIC) — `cr.root.io` | ✅ | | Root Library Catalog (RLC) — `pkg.root.io` | ✅ | | UI, API, and package registry access | ✅ | | Python, JavaScript, Java, Go, .NET, and PHP package registries | ✅ | | SBOM, VEX, and provenance attestations | ✅ | | FIPS images | ❌ | | Jira SLA-backed support tickets | ❌ | The free trial provides full product access without a service-level agreement (SLA). For SLA-backed support, [contact us](https://www.root.io/contact) about a paid plan. ## Trial duration The free trial runs for **2 months**, ending **June 16, 2026** for all trial organizations. The trial period is based on a fixed end date, not the date you sign up — so the earlier you start, the more time you get. ## Sign up Go to [app.root.io](https://app.root.io/) and sign up. Your organization is automatically provisioned with full trial access — no approval process, no credit card. After creating your organization, generate an API token from the Root UI. You'll need this to authenticate with Root's registries. Configure your package manager or Docker client to point at Root's registries. See the guides below to get started. ## What to expect When you sign in for the first time, you'll land in the Root platform where you can browse the **Image Catalog** and **Library Catalog**. ### Container images Replace your base image references with `cr.root.io` to pull pre-patched images with zero Critical/High CVEs: ```dockerfile theme={null} # Before FROM python:3.12-slim # After — same image, vulnerabilities removed FROM cr.root.io/python:3.12-slim ``` See [Getting Started with RIC](/ric/getting-started) for full setup instructions. ### Application libraries Point your package manager at `pkg.root.io` to install patched versions of Python, JavaScript, Java, Go, .NET, and PHP packages — including packages compromised in the Q1 2026 supply chain campaigns: ```bash theme={null} pip config set global.index-url https://pkg.root.io/pypi/simple pip config set global.extra-index-url https://pypi.org/simple ``` ```bash theme={null} npm config set registry https://pkg.root.io/npm/ --location=project npm config set //pkg.root.io/npm/:_authToken YOUR_ROOT_TOKEN --location=project ``` ```xml theme={null} root-io rootio ${env.ROOT_TOKEN} root-io https://pkg.root.io/maven/ central ``` ```bash theme={null} # Configure GOPROXY export GOPROXY="https://:${ROOTIO_API_KEY}@pkg.root.io/gobinary,https://proxy.golang.org,direct" # Use the Root Patcher CLI to add replace directives rootio_patcher go remediate --dry-run=false go build ./... ``` ```bash theme={null} export ROOTIO_API_KEY="your-api-key" export COMPOSER_AUTH='{"http-basic":{"pkg.root.io":{"username":"","password":"your-api-key"}}}' # Use the Root Patcher CLI to patch composer.json and update composer.lock rootio_patcher composer remediate --dry-run=false ``` See [Getting Started with RLC](/rlc/getting-started) for full setup instructions including CI/CD integration. ### Packages secured in Q1 2026 Root has already produced secured versions for every package compromised in the Q1 2026 supply chain campaigns: | Package | Safe version | Ecosystem | | ----------------------------- | ----------------- | ------------ | | `aquasec/trivy` | 0.69.3 | Docker (RIC) | | `litellm` | 1.82.6 | PyPI | | `axios` | 1.14.0 | npm | | `telnyx` | 4.87.0 / 4.88.1 | npm | | `@opengov/ppf-backend-types` | 1.141.1 / 1.141.3 | npm | | `react-leaflet-heatmap-layer` | 2.0.0 | npm | | `@emilgroup/insurance-sdk` | 1.97.0 / 1.98.0 | npm | | `@opengov/form-builder` | 0.12.2 / 0.13.0 | npm | | `@opengov/form-renderer` | 0.2.19 | npm | | `@emilgroup/billing-sdk` | 1.56.0 / 1.57.0 | npm | | `@emilgroup/customer-sdk` | 1.54.0 | npm | These are the last known-good versions before each compromise. Root pins you to these versions and backports security fixes without requiring upgrades. ## What happens after the trial When the trial ends on June 16, 2026, your organization's `free_trial` entitlement will be removed. To continue using Root: * **Upgrade to a paid plan** — [Contact us](https://www.root.io/contact) or [book a demo](https://www.root.io/book-a-demo) to discuss pricing and SLA options. * **Talk to a human** — Use the chat on [root.io](https://root.io) to reach our team directly. After June 16, 2026, trial organizations will lose access to Root's registries. Make sure to plan your transition before the trial ends. ## Getting help During the trial, you can get support through the following channels: Full product docs, setup guides, and API reference. Use the chat widget on root.io to reach the Root team. ## Next steps Get secure open source into your pipeline in minutes. Understand pinning, backporting, and AVR. Explore pre-patched container images. Set up secure Python, JavaScript, Java, Go, .NET, and PHP packages. # How Root Works Source: https://docs.root.io/getting-started/how-it-works The Root adoption journey - from discovering what you use to continuously consuming secured artifacts. Root's adoption model is designed to be easy to start and easy to maintain. There are no complex migrations and no breaking changes. The journey follows four stages. ## The Adoption Journey Root identifies which images and libraries your organization is currently using. This gives you a complete picture of your open source footprint and its current vulnerability exposure before you change anything. You subscribe to Root's secured equivalents for the images and packages in your inventory. Subscriptions are per-project - you choose what Root secures, and you stay in control. Point your Dockerfiles and package managers at Root's registries. Pull and install exactly as you do today - the difference is that every artifact has already been through Root's AVR pipeline. Root monitors every subscribed artifact continuously. When a new CVE is published, AVR kicks in automatically - research, patch, test, deliver - and a patched version is available at Root's registries before your next pull or install. ## Root's Two Registries | Registry | Endpoint | What it serves | | -------------------- | ------------- | ----------------------------- | | Root Image Catalog | `cr.root.io` | Patched container base images | | Root Library Catalog | `pkg.root.io` | Patched application packages | Both registries are fully compatible with their upstream equivalents. No tooling changes are required. ## The AVR Pipeline Every artifact in Root's registries has passed through AVR - Root's Agentic Vulnerability Remediation pipeline. When a new CVE is published, AVR automatically: 1. **Scans and detects** - ingests the CVE within seconds, identifies affected components 2. **Builds a remediation plan** - research agents analyze the vulnerability, locate upstream fixes, and assess compatibility 3. **Applies the fix** - patching agents backport the fix to the exact version you're running, preserving compatibility 4. **Tests and validates** - the patch is verified against package tests, functional tests, and CVE-specific regression tests 5. **Delivers** - the secured artifact is published to Root's registries with updated SBOM, VEX, and provenance attestation See [AVR](/concepts/avr) for the full technical breakdown. ## No Code Changes Required Root acts as a transparent registry. Package names, version numbers, tags, and APIs are identical to their upstream equivalents. You don't update dependency files, lockfiles, or application code. ## Transparency by Default Every artifact Root delivers includes: * **SBOM** - a complete inventory of all components, including what was patched * **VEX statement** - which vulnerabilities were fixed and why the fix can be trusted * **Provenance attestation** - cryptographic proof of how and when Root built the artifact These are available via the Root platform, the API, and as OCI annotations on images. Get started with secure container images. Get started with secure application packages. # SSO with Okta Source: https://docs.root.io/getting-started/okta-saml-sso Configure single sign-on between your Okta Workforce Identity tenant and Root using SAML 2.0. This guide walks through configuring SSO between your Okta Workforce Identity tenant and Root using SAML 2.0. The process has two parts: configuration you complete in Okta, and configuration Root's support team completes on the Auth0 side. ## Prerequisites * Admin access to your Okta organization * A Root support contact to complete the Auth0 side of setup — [contact Root](https://root.io) if you don't have one * A `CONNECTION_NAME` agreed upon with Root (see Step 1) * Group names should be `root-io-admins`, `root-io-members` and `root-io-readonlys`. if they need to change, contact Root support. ## Step 1: Define a Connection Name Choose a `CONNECTION_NAME` that will be used in both Okta and Auth0 to identify this integration. Once set in Auth0, the connection name **cannot be changed**. Agree on the name with your Root support contact before proceeding. **Format requirements:** * All lowercase * No spaces * No special characters **Example:** `acme-okta-saml` ## Step 2: Configure Okta ### 2.1 Create a SAML 2.0 App Integration 1. In your Okta Admin Console, go to **Applications > Applications** 2. Click **Create App Integration** 3. Select **SAML 2.0** and click **Next** 4. In **General Settings**, enter an app name (e.g., `Root SAML 2.0`) and click **Next** ### 2.2 Configure SAML Settings In the **Configure SAML** tab, enter the following: | Field | Value | | --------------------------- | ----------------------------------------------------------------- | | Single sign-on URL | `https://login.root.io/login/callback?connection=CONNECTION_NAME` | | Audience URI (SP Entity ID) | `urn:auth0:slimdotai:CONNECTION_NAME` | Replace `CONNECTION_NAME` with your chosen value from Step 1. For example, using `acme-okta-saml`: | Field | Example value | | ------------------ | ---------------------------------------------------------------- | | Single sign-on URL | `https://login.root.io/login/callback?connection=acme-okta-saml` | | Audience URI | `urn:auth0:slimdotai:acme-okta-saml` | Scroll down and click **Next**, then **Finish** on the Feedback tab. ### 2.3 Collect IdP Values for Root In the **Sign On** tab: 1. Click **View SAML setup instructions** 2. Copy the **Identity Provider Single Sign-On URL** 3. Click **Download Certificate** to get the X.509 certificate file (`okta.cert`) - if file is not downloaded when clicking the link, right-click the button and select 'Open link in new tab' If the certificate download does not trigger, open the link in a new browser tab. Send both the **IdP SSO URL** and the **certificate file** to your Root support contact. The SAML setup instructions page displays three values: | # | Field | Example | | - | ------------------------------------ | --------------------------------------------------------------------------------------------- | | 1 | Identity Provider Single Sign-On URL | `https://your-org.okta.com/app/your-app/exk.../sso/saml` | | 2 | Identity Provider Issuer | `http://www.okta.com/exk...` | | 3 | X.509 Certificate | PEM-encoded certificate block (`-----BEGIN CERTIFICATE-----` ... `-----END CERTIFICATE-----`) | Copy the **Single Sign-On URL** (item 1) and click **Download certificate** at the bottom of the page to save the X.509 certificate file. ### 2.4 Add Attribute Statements Still in the **Sign On** tab: 1. In the **Attribute statements** panel, click **Show legacy configuration** 2. Click **Edit** under **Profile attribute statements** 3. Add the following three rows: | Name | Name format | Value | | ----------- | ----------- | ---------------- | | `firstName` | Unspecified | `user.firstName` | | `lastName` | Unspecified | `user.lastName` | | `email` | Unspecified | `user.email` | 4. Under **Group attribute statements**, have a single row and enter the following: | Name | Name format | Filter | (filter value) | | -------- | ----------- | --------------- | -------------- | | `groups` | Unspecified | `Matches regex` | `.*` | 5. Click **Save** ### 2.5 Assign Groups 1. Go to **Directory > Groups** 2. Click **Add group** and add 3 groups * `root-io-admins` * `root-io-members` * `root-io-readonlys` 3. For each group, assign the appropriate people 4. Go to the **Applications > Application > \[app]** tab for your app 5. Click **Assign > Assign to groups** 6. Assign the 3 groups and click **Save**, then **Done** the connection will work without groups, but without them set up correctly, all users will be in read only mode. When moving a member from one group to another or removing from a group, the changes in it's role in Root.io app will only update once after the user goes through the app's login page. ## Step 3: Hand Off to Root Once Okta is configured, provide the following to your Root support contact: | Item | Where to find it | | ------------------------------------ | --------------------------- | | Connection name (`CONNECTION_NAME`) | Agreed in Step 1 | | Identity Provider Single Sign-On URL | Okta Sign On tab | | X.509 certificate file (`okta.cert`) | Okta Sign On tab > Download | | The names of the created groups | Okta groups | Root will complete the Auth0 configuration and confirm when the connection is ready to test. ## Step 4: Verify the Integration Once Root confirms setup is complete: 1. Log in to the Root platform at [app.root.io](https://app.root.io) using your Okta credentials 2. Confirm successful authentication and that your user profile (name, email) appears correctly ## Troubleshooting | Symptom | Likely cause | Resolution | | -------------------------------------------------------- | ------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------- | | `Invalid audience` or `SAML assertion audience mismatch` | Audience URI in Okta doesn't match the Auth0 connection name | Verify the Audience URI is exactly `urn:auth0:slimdotai:CONNECTION_NAME` with your correct connection name | | `Invalid certificate` or signature validation failure | Certificate format mismatch or wrong cert uploaded | Re-download the X.509 certificate from Okta in PEM format and resend to Root | | Login redirects back to Okta without error | Clock skew between Okta and Auth0 | Confirm your Okta org's system clock is accurate; SAML assertions expire after a few minutes | | User authenticates but profile fields are empty | Missing attribute statements | Verify the three attribute statements (`firstName`, `lastName`, `email`) are configured per Step 2.4 | If you encounter other issues, contact Root support with any error messages or screenshots. # Docker Source: https://docs.root.io/integrations/docker Integrate Root Image Catalog with Docker - authentication, Dockerfile changes, Compose, and registry mirroring. Root Image Catalog works with Docker out of the box. Images are pulled from `cr.root.io` using standard Docker commands and credentials. ## Prerequisites * Docker 20.10 or later * Root registry credentials (username and token - see [Authentication](/getting-started/authentication)) ## Authentication ```bash theme={null} docker login cr.root.io \ --username rootio \ --password YOUR_ROOT_TOKEN ``` Or pipe the token to avoid it appearing in shell history: ```bash theme={null} echo "$ROOT_TOKEN" | docker login cr.root.io --username rootio --password-stdin ``` Docker stores credentials in `~/.docker/config.json`. All subsequent pulls from `cr.root.io` use these credentials automatically. **Credential helpers (optional):** You can use any Docker-compatible credential helper (`docker-credential-pass`, macOS Keychain, etc.) for more secure credential storage. Configure them in `~/.docker/config.json` as you would for any other registry. ## Pulling Images ```bash theme={null} docker pull cr.root.io/python:3.12-slim docker pull cr.root.io/node:20-slim docker pull cr.root.io/nginx:1.25 ``` Tags mirror Docker Hub exactly. `cr.root.io/python:3.12-slim` is the same image as `docker.io/python:3.12-slim` - same behavior, same entrypoints, with CVEs remediated. **Multi-architecture pulls:** ```bash theme={null} docker pull --platform linux/amd64 cr.root.io/python:3.12-slim docker pull --platform linux/arm64 cr.root.io/python:3.12-slim ``` ## Updating Your Dockerfile Change the `FROM` directive to use `cr.root.io`: ```dockerfile theme={null} # Before FROM python:3.12-slim # After FROM cr.root.io/python:3.12-slim ``` No other changes are needed. The image behaves identically. **Using a build argument for flexibility:** ```dockerfile theme={null} ARG BASE_REGISTRY=cr.root.io FROM ${BASE_REGISTRY}/python:3.12-slim # Build with Root Image Catalog (default): # docker build . # Build with Docker Hub (override): # docker build --build-arg BASE_REGISTRY=docker.io . ``` **Multi-stage builds:** ```dockerfile theme={null} ARG BASE_REGISTRY=cr.root.io FROM ${BASE_REGISTRY}/golang:1.22-alpine AS builder WORKDIR /app COPY . . RUN go build -o /app/server ./cmd/server FROM ${BASE_REGISTRY}/alpine:3.20 COPY --from=builder /app/server /usr/local/bin/server CMD ["/usr/local/bin/server"] ``` ## Docker Compose Use `cr.root.io` images in `docker-compose.yml` the same way: ```yaml theme={null} services: app: image: cr.root.io/python:3.12-slim environment: - DATABASE_URL=postgresql://db:5432/myapp db: image: cr.root.io/postgres:16-alpine environment: - POSTGRES_PASSWORD=secret cache: image: cr.root.io/redis:7-alpine ``` Docker Compose inherits credentials from `~/.docker/config.json`, so no extra configuration is needed after running `docker login`. ## Registry Mirror Configuration To use `cr.root.io` as a registry mirror (so all pulls transparently go through Root), configure Docker's `daemon.json`: ```json theme={null} { "registry-mirrors": ["https://cr.root.io"] } ``` Restart Docker after making changes: ```bash theme={null} sudo systemctl restart docker ``` With mirror mode, `docker pull python:3.12-slim` automatically resolves to the Root-patched version without changing any Dockerfiles. ## CI/CD with Docker **GitHub Actions:** ```yaml theme={null} name: Build and push on: [push] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Log in to Root Image Catalog uses: docker/login-action@v3 with: registry: cr.root.io username: rootio password: ${{ secrets.ROOT_TOKEN }} - name: Build image uses: docker/build-push-action@v5 with: push: true tags: your-registry/your-app:latest ``` **GitLab CI:** ```yaml theme={null} build: stage: build before_script: - echo "$ROOT_TOKEN" | docker login cr.root.io --username rootio --password-stdin script: - docker build -t your-registry/your-app:latest . - docker push your-registry/your-app:latest ``` **CircleCI:** ```yaml theme={null} jobs: build: docker: - image: cimg/base:stable steps: - checkout - setup_remote_docker - run: name: Authenticate to Root registry command: echo "$ROOT_TOKEN" | docker login cr.root.io --username rootio --password-stdin - run: name: Build image command: docker build -t your-registry/your-app:latest . ``` # Amazon ECR Pull-Through Cache Source: https://docs.root.io/integrations/ecr Mirror Root Image Catalog images into your AWS ECR account for faster pulls, local caching, and private subnet access. This guide walks through setting up an Amazon ECR mirror cache for images from `cr.root.io`. Once configured, your workloads pull Root images from your own ECR - reducing external network dependency, enabling lifecycle policies, and keeping image access within your AWS account. ## What you will achieve * A copy of selected `cr.root.io` images stored in **your** AWS account in **your** ECR. * Your workloads pull from your ECR, reducing repeated external downloads from `cr.root.io`. A safe approach for **mutable tags** (e.g., `:prod`, `:latest`) where the mirroring job detects tag changes and updates your cache accordingly. * Optional **architecture pinning** (e.g., mirror only `linux/amd64`) to avoid cross-platform surprises. ## Prerequisites You'll need: * Your **AWS account ID** and **AWS region(s)** where you want the cache (ECR is regional). * Credentials for pulling from `cr.root.io` (username/password/token you already use). * A place to run a small scheduled job (anything that can run a script on a timer). * Docker installed (the mirroring flow uses `docker pull/tag/push`). ## AWS authentication (required) The mirroring job needs AWS credentials. Use **either**: **Option A: AWS profile** ```bash theme={null} export AWS_PROFILE="" ``` **Option B: Access keys** ```bash theme={null} export AWS_ACCESS_KEY_ID="..." export AWS_SECRET_ACCESS_KEY="..." # optional if you use it: export AWS_SESSION_TOKEN="..." ``` (And also set `AWS_REGION` in either case.) ## Step 1 — Choose a destination naming convention in ECR Pick a prefix in your ECR, for example: `root-mirror/` Example mapping: * Source: `cr.root.io/team/app:prod` * Destination: `.dkr.ecr..amazonaws.com/root-mirror/team/app:prod` ## Step 2 — Create the mirror repositories in ECR You can either: * **Pre-create** the repositories you plan to mirror into (recommended for tighter IAM + predictability), or * Allow the mirroring job to **auto-create** repositories (simpler, requires additional permission). ### Option A (recommended): Pre-create repositories For each source repo path (everything after `cr.root.io/` up to `:tag`), create a matching ECR repo under your chosen prefix. Example: * Source: `cr.root.io/team/app:prod` * Create ECR repo: `root-mirror/team/app` Create via AWS CLI: ```bash theme={null} aws ecr create-repository \ --region \ --repository-name root-mirror/team/app ``` **Optional (recommended): add a lifecycle policy** to limit storage growth (example keeps last 30 images): ```bash theme={null} aws ecr put-lifecycle-policy \ --region \ --repository-name root-mirror/team/app \ --lifecycle-policy-text '{ "rules": [ { "rulePriority": 1, "description": "Keep last 30 images", "selection": { "tagStatus": "any", "countType": "imageCountMoreThan", "countNumber": 30 }, "action": { "type": "expire" } } ] }' ``` ### Option B: Auto-create repositories from the script If you prefer not to pre-create repos, the script can create them as needed. If you choose this, ensure the job role has: * `ecr:CreateRepository` * `ecr:DescribeRepositories` ## Step 3 — Ensure your mirroring job can push to ECR Your job needs permission to push images into ECR. Minimum AWS permissions commonly required: * `ecr:GetAuthorizationToken` * `ecr:BatchCheckLayerAvailability` * `ecr:InitiateLayerUpload` * `ecr:UploadLayerPart` * `ecr:CompleteLayerUpload` * `ecr:PutImage` * (optional) `ecr:CreateRepository` + `ecr:DescribeRepositories` (if auto-creating repos) You can scope these permissions to `root-mirror/*` repositories for least privilege. ## Step 4 — Define what to mirror (images.txt format) Create an `images.txt` file. ### Format Each line is: ``` [:] [arch] ``` * The **first column** is required: `cr.root.io/...:tag` * The **second column** is optional: architecture such as `amd64` or `arm64` * If provided, the script treats it as `linux/` (it prepends `linux/` internally) ### Example `images.txt` ``` # : [arch] cr.root.io/team/app:prod amd64 cr.root.io/team/worker:prod amd64 cr.root.io/team/app:1.2.3 amd64 # Without arch = no override (script uses default platform behavior) cr.root.io/team/dev-tool:latest ``` Why the optional `arch` column exists: * If you run the job from macOS (darwin/arm64) or a different architecture, you often still want to mirror `linux/amd64`. * Explicit arch avoids pulling the "wrong" platform variant (or failing to resolve). ## Step 5 — Mirror images (with tag-change detection and retries) ### What the script does (behavior) The mirroring script is designed to be safe for **mutable tags** and reliable across environments: * **Cross-platform logging:** uses a portable UTC timestamp format (works on Linux + macOS). * **Retries:** wraps network-sensitive operations (especially `docker push`) with retries (configurable attempts + delay). * **Architecture support:** reads optional `arch` from `images.txt` and mirrors `linux/` when specified. * **Change detection:** avoids re-copying images unless the content changed: * It compares **image config digests** (SHA256 of the image config JSON), which is stable across OCI vs Docker v2 manifest format differences. * This prevents false-positive "changed" loops that can happen when only manifest formatting differs. ### How tag-change detection works (in plain terms) For each `: [arch]`: 1. Resolve the **current config digest** for the source tag in `cr.root.io` (optionally for a specific platform). 2. Resolve the **current config digest** for the same tag in your ECR mirror repo (same platform). 3. If digests match → skip (already cached). 4. If digests differ or destination tag is missing → pull, tag, and push to ECR. ### 5.1 Create this mirroring script Save as `mirror_to_ecr.sh`: ```bash theme={null} #!/usr/bin/env bash set -euo pipefail # Required env vars: # AWS_REGION, AWS_ACCOUNT_ID, ROOT_USER, ROOT_PASS AWS_REGION="${AWS_REGION:?}" AWS_ACCOUNT_ID="${AWS_ACCOUNT_ID:?}" ROOT_USER="${ROOT_USER:?}" ROOT_PASS="${ROOT_PASS:?}" ROOT_REGISTRY="cr.root.io" DST_REGISTRY="${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com" PREFIX="root-mirror" IMAGES_FILE="${IMAGES_FILE:-images.txt}" # Set to "true" to auto-create ECR repos if they don't exist AUTO_CREATE_REPOS="${AUTO_CREATE_REPOS:-false}" log() { echo "[$(date -u +"%Y-%m-%dT%H:%M:%SZ")] $*"; } # Retry a command up to N times with a delay between attempts retry() { local attempts="${RETRY_ATTEMPTS:-3}" local delay="${RETRY_DELAY:-10}" local count=0 until "$@"; do count=$((count + 1)) if [[ ${count} -ge ${attempts} ]]; then log "ERROR: Command failed after ${attempts} attempts: $*" return 1 fi log "Attempt ${count}/${attempts} failed, retrying in ${delay}s..." sleep "${delay}" done } # Extract repo path and tag from a fully qualified image reference. # Input: cr.root.io/team/app:prod # Output: repo_path="team/app", tag="prod" parse_image() { local img="$1" local no_registry="${img#${ROOT_REGISTRY}/}" local repo_path="${no_registry%:*}" local tag="${no_registry##*:}" echo "${repo_path}" "${tag}" } ecr_repo_exists() { local repo_name="$1" aws ecr describe-repositories --region "${AWS_REGION}" --repository-names "${repo_name}" >/dev/null 2>&1 } ecr_create_repo() { local repo_name="$1" aws ecr create-repository --region "${AWS_REGION}" --repository-name "${repo_name}" >/dev/null log "Created ECR repository: ${repo_name}" } # Return the image config digest (sha256 of the image config JSON). # This is format-independent (same whether manifest is OCI or Docker v2), # making it a stable comparison key across registries. # # For manifest list images, resolves linux/ to the platform manifest first. # Usage: image_config_digest [arch] image_config_digest() { local image="$1" local arch="${2:-}" local raw raw=$(docker manifest inspect "${image}" 2>/dev/null) || { echo ""; return 0; } # If it's a manifest list, resolve to the platform-specific manifest first if echo "${raw}" | python3 -c "import json,sys; sys.exit(0 if 'manifests' in json.load(sys.stdin) else 1)" 2>/dev/null; then local platform_ref platform_ref=$(echo "${raw}" | python3 -c " import json, sys data = json.load(sys.stdin) arch, image = sys.argv[1], sys.argv[2] repo = image.rsplit(':', 1)[0] for m in data.get('manifests', []): p = m.get('platform', {}) if p.get('os') == 'linux' and (not arch or p.get('architecture') == arch): print(repo + '@' + m['digest']) break " "${arch}" "${image}" 2>/dev/null) || true [[ -z "${platform_ref}" ]] && { echo ""; return 0; } raw=$(docker manifest inspect "${platform_ref}" 2>/dev/null) || { echo ""; return 0; } fi echo "${raw}" | python3 -c " import json, sys print(json.load(sys.stdin).get('config', {}).get('digest', '')) " 2>/dev/null || echo "" } log "Logging into ${ROOT_REGISTRY}..." echo "${ROOT_PASS}" | docker login "${ROOT_REGISTRY}" -u "${ROOT_USER}" --password-stdin >/dev/null log "Logging into ECR ${DST_REGISTRY}..." aws ecr get-login-password --region "${AWS_REGION}" \ | docker login --username AWS --password-stdin "${DST_REGISTRY}" >/dev/null log "Starting mirroring from ${IMAGES_FILE}..." while IFS= read -r LINE; do [[ -z "${LINE}" ]] && continue [[ "${LINE}" =~ ^# ]] && continue SRC_IMAGE="${LINE%% *}" ARCH="" if [[ "${LINE}" == *" "* ]]; then ARCH="${LINE##* }" fi if [[ "${SRC_IMAGE}" != ${ROOT_REGISTRY}/*:* ]]; then log "Skipping invalid line (expected ${ROOT_REGISTRY}/path:tag): ${SRC_IMAGE}" continue fi read -r REPO_PATH TAG < <(parse_image "${SRC_IMAGE}") TARGET_REPO="${PREFIX}/${REPO_PATH}" DST_IMAGE="${DST_REGISTRY}/${TARGET_REPO}:${TAG}" if [[ "${AUTO_CREATE_REPOS}" == "true" ]]; then if ! ecr_repo_exists "${TARGET_REPO}"; then ecr_create_repo "${TARGET_REPO}" fi fi # Resolve source config digest log "Inspecting source digest: ${SRC_IMAGE}" SRC_DIGEST="$(image_config_digest "${SRC_IMAGE}" "${ARCH}")" if [[ -z "${SRC_DIGEST}" ]]; then log "ERROR: Could not resolve source digest for ${SRC_IMAGE}" continue fi # Compare with ECR config digest (if image exists) CURRENT_ECR_DIGEST="$(image_config_digest "${DST_IMAGE}" "${ARCH}" || true)" if [[ -n "${CURRENT_ECR_DIGEST}" && "${CURRENT_ECR_DIGEST}" == "${SRC_DIGEST}" ]]; then log "Up-to-date (no copy needed): ${SRC_IMAGE} -> ${DST_IMAGE} (digest ${SRC_DIGEST})" continue fi if [[ -z "${CURRENT_ECR_DIGEST}" ]]; then log "Not present in ECR: ${DST_IMAGE} (will copy digest ${SRC_DIGEST})" else log "Changed tag detected: ${DST_IMAGE}" log " ECR digest: ${CURRENT_ECR_DIGEST}" log " SRC digest: ${SRC_DIGEST}" fi # Pull, tag, push log "Copying ${SRC_IMAGE} -> ${DST_IMAGE}${ARCH:+ (linux/${ARCH})}" if [[ -n "${ARCH}" ]]; then docker pull --platform "linux/${ARCH}" "${SRC_IMAGE}" else docker pull "${SRC_IMAGE}" fi docker tag "${SRC_IMAGE}" "${DST_IMAGE}" retry docker push "${DST_IMAGE}" # Cleanup local images docker rmi "${SRC_IMAGE}" "${DST_IMAGE}" 2>/dev/null || true log "Copied ${SRC_IMAGE} -> ${DST_IMAGE}" done < "${IMAGES_FILE}" log "Mirroring complete." ``` ### 5.2 Running the script Export required environment variables: ```bash theme={null} export AWS_REGION="" export AWS_ACCOUNT_ID="" # Choose ONE AWS auth method: export AWS_PROFILE="" # OR: # export AWS_ACCESS_KEY_ID="..." # export AWS_SECRET_ACCESS_KEY="..." # export AWS_SESSION_TOKEN="..." # if applicable export ROOT_USER="" export ROOT_PASS="" # optional: create ECR repos automatically if missing export AUTO_CREATE_REPOS=true # list of images to mirror export IMAGES_FILE=images.txt ``` Then run: ```bash theme={null} chmod +x mirror_to_ecr.sh ./mirror_to_ecr.sh ``` ## Step 6 — Update workloads to pull from your ECR Change pulls from: * `cr.root.io/team/app:prod` to: * `.dkr.ecr..amazonaws.com/root-mirror/team/app:prod` With mutable tags, your workloads will see updates after the mirror job runs and pushes the updated tag to your ECR. If you want the strongest "never change unexpectedly" guarantee, you can still deploy by digest, but it is not required for caching—your ECR tag will track the mirrored tag based on the script's change detection. ## Step 7 - Suggested scheduling (platform-agnostic) The mirroring script is designed to be run repeatedly. Pick a cadence based on how often your mutable tags change (for example: every 15–60 minutes for frequently-changing tags, less often for stable version tags). You can schedule it in any environment that can run a command on a timer: * **Cron on a VM/bastion/utility host** * Install Docker + AWS CLI, store `images.txt` + `mirror_to_ecr.sh`, then add a cron entry. * Example (runs every 30 minutes): ```bash theme={null} */30 * * * * /path/to/mirror_to_ecr.sh >> /var/log/root-mirror.log 2>&1 ``` * **CI scheduler** * Most CI systems support scheduled workflows/pipelines. * Store `images.txt` in the repo, inject secrets (`ROOT_USER`/`ROOT_PASS`, AWS creds/profile) via the CI secret manager, run `./mirror_to_ecr.sh`. * **A scheduled container/job runner** * Package the script + `images.txt` into a small container image (or mount them), then run it periodically using whatever scheduler you already use (Kubernetes CronJob, a container task scheduler, etc.). * Make sure Docker is available (either inside the job image, or via a Docker-enabled runner). **Tip:** Send stdout/stderr to centralized logs (or at least a file) so you can alert on failures, and keep `images.txt` focused on the specific images/tags your production workloads actually use. ## Networking note (optional) If your workloads run in private subnets, consider configuring **ECR VPC endpoints / PrivateLink** so pulls can stay private and reduce NAT usage. The exact endpoint setup depends on your VPC architecture. ## Troubleshooting * **401/403 pulling from `cr.root.io`**: credentials/token expired or not authorized * **Denied pushing to ECR**: IAM role missing `ecr:PutImage` or upload permissions * **Repository not found**: either pre-create repos (Step 2 Option A) or set `AUTO_CREATE_REPOS=true` * **Wrong architecture mirrored**: add the second column (`amd64` / `arm64`) in `images.txt` * **Intermittent push failures**: retries are built-in; if persistent, check network throttling / ECR limits and increase retry settings (attempts/delay) # JFrog Artifactory Source: https://docs.root.io/integrations/jfrog-artifactory Configure JFrog Artifactory as a pull-through cache for Root Image Catalog, consolidating container image access through your existing Artifactory instance. Configure JFrog Artifactory as a pull-through cache for `cr.root.io`. This lets teams pull Root-secured images through their existing Artifactory instance - applying organizational access controls, enabling local caching, and maintaining a single source of truth for container images. ## Prerequisites * JFrog Artifactory Pro, Enterprise, or Cloud instance with admin access * A Root Container Registry account and access token * Docker client configured to authenticate with your Artifactory instance ## Step 1: Create a Remote Docker Repository 1. Log into your JFrog Platform UI 2. Navigate to **Administration → Repositories → Repositories** 3. Click **+ Add Repositories → Remote Repository** 4. Select **Docker** as the package type ## Step 2: Configure Repository Settings In the **Basic** tab: | Field | Value | | -------------- | -------------------- | | Repository Key | `root-containers` | | URL | `https://cr.root.io` | Under **Credentials**: | Field | Value | | -------- | ---------------------- | | Username | `root` | | Password | Your Root access token | ## Step 3: Configure Advanced Settings (Recommended) In the **Advanced** tab: | Setting | Recommended Value | Description | | ----------------------------- | ----------------- | ----------------------------------------------------- | | Store Artifacts Locally | Enabled | Caches pulled images in Artifactory | | Retrieval Cache Period | `7200` seconds | How long to cache metadata before rechecking upstream | | Missed Retrieval Cache Period | `1800` seconds | How long to cache "not found" responses | | Block Mismatching MIME Types | Enabled | Security best practice | Click **Create Remote Repository** to save. ## Step 4: Test the Configuration Navigate to **Application → Artifactory → Artifacts**, select your `root-containers` repository, and browse available images to confirm connectivity. ## Pulling Images Through Artifactory ```bash theme={null} # Authenticate with Artifactory docker login your-instance.jfrog.io # Pull a Root image through Artifactory docker pull your-instance.jfrog.io/root-containers/python:3.12 ``` Compare to pulling directly from Root: ```bash theme={null} # Direct from Root docker pull cr.root.io/python:3.12 # Through Artifactory docker pull your-instance.jfrog.io/root-containers/python:3.12 ``` The image contents are identical. Artifactory caches the layers after the first pull. ## Optional: Virtual Repository To aggregate Root images with other container registries behind a single URL: 1. Navigate to **Administration → Repositories → Repositories** 2. Click **+ Add Repositories → Virtual Repository** 3. Select **Docker** as the package type 4. Configure: | Field | Value | | ----------------------------- | ---------------------------------------------------------- | | Repository Key | `docker-virtual` | | Repositories | Select `root-containers` and any other Docker repositories | | Default Deployment Repository | Your local Docker repository | Teams then pull from a single virtual registry: ```bash theme={null} docker pull your-instance.jfrog.io/docker-virtual/python:3.12 ``` ## Kubernetes Integration Update image references in your manifests: ```yaml theme={null} # Before (direct from Root) spec: containers: - name: app image: cr.root.io/python:3.12 # After (through Artifactory) spec: containers: - name: app image: your-instance.jfrog.io/root-containers/python:3.12 ``` Create an ImagePullSecret for your Artifactory instance: ```bash theme={null} kubectl create secret docker-registry artifactory-pull-secret \ --docker-server=your-instance.jfrog.io \ --docker-username=your-artifactory-username \ --docker-password=your-artifactory-token \ --namespace=your-namespace ``` Reference it in your deployments: ```yaml theme={null} spec: imagePullSecrets: - name: artifactory-pull-secret ``` ## Troubleshooting | Issue | Solution | | ------------------ | ----------------------------------------------------------------------------------------------- | | `401 Unauthorized` | Verify Root access token is valid and correctly entered in Artifactory credentials | | Images not found | Check that the image path matches exactly; verify remote repository URL is `https://cr.root.io` | | Slow initial pulls | First pull fetches from Root and caches in Artifactory; subsequent pulls are served locally | | Stale images | Reduce **Retrieval Cache Period** if you need Root Patches to propagate faster | For Root credential issues: [support@root.io](mailto:support@root.io) For Artifactory configuration issues: refer to [JFrog documentation](https://jfrog.com/help/) # Scanner Compatibility Source: https://docs.root.io/integrations/scanner-compatibility Vulnerability scanners that recognize Root-patched packages and report accurate CVE counts. Root patches are recognized by all major vulnerability scanners. When you scan a Root image or package, these scanners correctly report patched CVEs as fixed — no configuration required. ## Supported Scanners | Scanner | Root patches recognized | | ------------- | ----------------------- | | Grype | ✓ | | Trivy | ✓ | | Wiz | ✓ | | Orca Security | ✓ | | Sysdig | ✓ | | Ox Security | ✓ | | Mend | ✓ | | GitLab | ✓ | | VMware Harbor | ✓ | | Qualys | ✓ | | Jit | ✓ | | Rancher | ✓ | | Datadog | ✓ | ## Verifying with Wiz See the [Wiz integration guide](/integrations/wiz) for a before/after example showing the reduction in findings when scanning a Root image vs. its upstream Docker Hub equivalent. # Wiz Source: https://docs.root.io/integrations/wiz Scan Root with wizcli and verify the reduction in vulnerabilities compared to upstream Docker Hub images. Root works with [Wiz](https://www.wiz.io/) out of the box. Use `wizcli docker scan` to compare the vulnerability posture of any upstream image against its Root-patched equivalent. ## Prerequisites * `wizcli` installed and authenticated — see [Wiz CLI docs](https://docs.wiz.io/wiz-docs/docs/wizcli) * Root registry credentials — see [Authentication](/getting-started/authentication) ## Scanning Root images Pass any `cr.root.io` image reference directly to `wizcli docker scan`: ```bash theme={null} wizcli docker scan --image cr.root.io/: ``` ## Before and after Root The example below scans `node:25.0.0` from Docker Hub alongside its Root equivalent. **Upstream (Docker Hub):** ```bash theme={null} wizcli docker scan --image node:25.0.0 ``` Wiz scan results for node:25.0.0 from Docker Hub ``` Results summary: OS packages: 1860 results Severity: 373 HIGH, 125 CRITICAL, 10 INFO, 839 LOW, 513 MEDIUM Failed Policies: 99 Default vulnerabilities policy Libraries: 20 results Severity: 1 LOW, 18 HIGH, 1 MEDIUM CPEs: 6 results Severity: 1 MEDIUM, 3 HIGH, 2 CRITICAL Failed Policies: 2 Default vulnerabilities policy ``` **Root (`cr.root.io`):** ```bash theme={null} wizcli docker scan --image cr.root.io/node:25.0.0 ``` Wiz scan results for cr.root.io/node:25.0.0 ``` Results summary: OS packages: 204 results Severity: 39 HIGH, 39 CRITICAL, 36 MEDIUM, 90 LOW Failed Policies: 39 Default vulnerabilities policy Libraries: 20 results Severity: 1 LOW, 18 HIGH, 1 MEDIUM CPEs: 6 results Severity: 2 CRITICAL, 3 HIGH, 1 MEDIUM Failed Policies: 2 Default vulnerabilities policy ``` | | node:25.0.0 (Docker Hub) | cr.root.io/node:25.0.0 (Root) | | -------------------- | ------------------------ | ----------------------------- | | OS packages found | 1,860 | 204 | | CRITICAL | 125 | 39 | | HIGH | 373 | 39 | | MEDIUM | 513 | 36 | | LOW | 839 | 90 | | Failed policies (OS) | 99 | 39 | Root patches OS-level vulnerabilities directly into the image layers. Library and CPE findings are the same in both scans — those come from your application dependencies, not the base OS. ## CI/CD Add a scan step to your pipeline to gate on policy failures: **GitHub Actions:** ```yaml theme={null} - name: Scan image with Wiz run: wizcli docker scan --image cr.root.io/node:25.0.0 env: WIZ_CLIENT_ID: ${{ secrets.WIZ_CLIENT_ID }} WIZ_CLIENT_SECRET: ${{ secrets.WIZ_CLIENT_SECRET }} ``` **GitLab CI:** ```yaml theme={null} wiz-scan: stage: test variables: WIZ_CLIENT_ID: $WIZ_CLIENT_ID WIZ_CLIENT_SECRET: $WIZ_CLIENT_SECRET script: - wizcli docker scan --image cr.root.io/node:25.0.0 ``` For policy enforcement, failure thresholds, and output formats, see the [Wiz CI/CD integration docs](https://docs.wiz.io/wiz-docs/docs/cicd-integration). ## Troubleshooting | Issue | Solution | | -------------------------------------------- | --------------------------------------------------------------------------------------- | | `401 Unauthorized` pulling from `cr.root.io` | Verify your Root token is valid — see [Authentication](/getting-started/authentication) | | `wizcli` not authenticated | Run `wizcli auth` and confirm your Wiz credentials are set | | Scan returns no results | Confirm the image was pulled successfully before scanning | # Welcome to Root Source: https://docs.root.io/introduction A secure supply platform that delivers end-to-end vulnerability remediation for container images and application packages. Open source makes up around 80% of the code in any modern application - and it's the biggest attack surface in your stack. Traditional security tools identify vulnerabilities. Root actually fixes them: automatically, continuously, and without breaking your existing stack. ## What is Root? Root is a **secure software supply platform** that delivers container images and application packages with vulnerabilities already remediated. You pull from Root's registries exactly as you do today. No migrations. No forced upgrades. No code changes. Root is powered by **Agentic Vulnerability Remediation (AVR)**: a fleet of specialized AI agents that research, patch, test, and deliver fixes for vulnerable packages at a scale and speed no manual process can match. Every artifact ships with an updated SBOM, VEX statement, and provenance attestation - so you can verify exactly what was fixed and why the fix can be trusted. ## The CVE Treadmill Without Root, your options for any given CVE are: * Wait weeks for a manual patch while systems stay exposed * Upgrade to a newer version that breaks your application * Rebuild from source and migrate to a new registry * Accept the risk and move on None of these are good options. Root removes all of them from the table. ## Two Products, One Platform Secure container images at `cr.root.io`. Drop-in replacements for Docker Hub images - same tags, same behavior, zero Critical/High CVEs. Secure application packages at `pkg.root.io`. Works with pip, uv, Poetry, npm, pnpm, yarn, Maven, and Gradle. ## What Makes Root Unique **No migration required.** Root works with your existing registries and infrastructure. There's no new stack to adopt, no vendor lock-in, and no switching cost. **Pinned versions, not forced upgrades.** Root patches the versions you're already running. You stay on the version you chose - Root just removes the vulnerabilities from it. **Complete coverage.** Root addresses base image OS packages, language runtimes, application libraries, and transitive dependencies - not just the top layer. **Full transparency.** Every artifact Root delivers includes an SBOM, a VEX statement, and provenance attestation. You can verify Root's work, not just trust it. ## How Root Helps Your Team Eliminate the exposure window. CVE triage drops to zero. Every Root Patch is transparent - you can see what was changed, how it was tested, and why it can be trusted. Point your registries at Root. No pipeline changes, no image rebuilds, no ecosystem changes. Keep using the open source you rely on, at the versions you declared. Root patches it - you don't touch a line of code. Full SBOM, VEX, and provenance coverage across your supply chain. Audit-ready artifacts and a shrinking CVE backlog. ## How Root Compares Other approaches to container and package security require you to change your stack to become secure. Root patches what you already have. | | Manual patching | Hardened image catalogs | Root | | ------------------------------- | ------------------- | ----------------------- | -------------------------------- | | Works with your existing images | ✅ | ❌ Requires migration | ✅ | | Patches your pinned version | ✅ (if you do it) | ❌ Forces upgrades | ✅ | | Remediation SLA | None | 7–14 days | Critical in 7 days, often faster | | Breaking changes | Possible on upgrade | Possible | None | | SBOM + VEX + Provenance | DIY | Partial | Every artifact | | Ecosystem changes | None | Required | None | ## The Shift Out Movement Shift Left put remediation on Engineering teams that never signed up for it. AppSec owns the problem, Engineering owns the solution - and the exposure window stays open while tickets queue up. Root's answer is **Shift Out**: open source arrives clean and secure by default. Root's fleet of AI agents patches ALL open source - at the OS level and the application level - so your teams stop doing CVE janitor work and start building. Ready to get started? Jump into the [Quick Start](/quickstart), start a [Free Trial](/getting-started/free-trial), or learn [how Root works](/getting-started/how-it-works). ## Try Root free Full product access — Root Image Catalog, Root Library Catalog, UI, API, and package registries — free until June 16, 2026. No credit card required. # Alpine Linux Source: https://docs.root.io/os-packages/alpine Configure pkg.root.io in your Dockerfile to install Root-patched OS packages on Alpine Linux. ## Supported Versions Alpine 3.22, 3.21, 3.20, 3.19, 3.18 *** ## Dockerfile ```dockerfile theme={null} # syntax=docker/dockerfile:1.6 ARG ALPINE_VERSION=3.20 FROM alpine:${ALPINE_VERSION} ARG ALPINE_VERSION RUN --mount=type=secret,id=rootio_api_key \ # Install Root.io Alpine signing key echo "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFvcG1yUjR1em95WEFiTHFiRUE3cwpBNWQrVytnUzE0TzEwMlJHUjhxa0h0cDhSUEs2b3FvZkhJZzNYSWpnSVlzalQwYTk1VXNzbGFlL2FDWU1UeFBVCmhnSmxkTVU1SnlzZmYxT1BEQld4R2ZCOFJCL081cjA1cU9JLzJ3QlgwQjl5NjhhU0xQZi9UWEA3akY5STRKL3EKdjArWVF2c3owRWdqUEFjeVN2MlgvOHE2R2RoOHRkWG4rbTVBYjJoUU5YUE1TdTM3aXMwUVR3Uk9DSFV4ZXZLeAo0OUZ5UGkvQUR5UDB6bVFYaUtCQW52alN6YVNQNmZPQm1yYlNNY05wYnVPV2lwUUJoajRnVE5KOVNzaDZSQmdmCmJVUlFhdmlwWlAyL0RiNTNiLzJ5UTJJU21QMEo1cmdjWnkrdXoyZndTWmtHb3pUa0ErZDE1dHludlJRVFQwbGkKWXdJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==" | \ base64 -d > /etc/apk/keys/root@alpinelinux.org-67b85bd5.rsa.pub && \ \ # Add pkg.root.io repository with credentials from secret echo "https://root:$(cat /run/secrets/rootio_api_key)@pkg.root.io/alpine/${ALPINE_VERSION}" \ >> /etc/apk/repositories && \ \ apk update && \ \ # Install packages, preferring Root.io patched versions when available for pkg in curl git openssl wget tini; do \ if apk search -e "rootio-$pkg" | grep -q "rootio-$pkg"; then \ apk add --no-cache "rootio-$pkg"; \ else \ apk add --no-cache "$pkg"; \ fi; \ done && \ \ # Remove repository credentials sed -i '/pkg\.root\.io/d' /etc/apk/repositories CMD ["/bin/sh"] ``` To target a different Alpine version, pass it as a build argument: ```bash theme={null} DOCKER_BUILDKIT=1 docker build \ --build-arg ALPINE_VERSION=3.21 \ --secret id=rootio_api_key,env=ROOTIO_API_KEY \ -t my-app:latest . ``` *** ## Build ```bash theme={null} export ROOTIO_API_KEY="your-api-token" DOCKER_BUILDKIT=1 docker build \ --secret id=rootio_api_key,env=ROOTIO_API_KEY \ -t my-app:latest . ``` *** ## How It Works 1. Root.io's RSA public key is written to `/etc/apk/keys/` for package signature verification. 2. The `pkg.root.io` repository URL (with credentials inline) is appended to `/etc/apk/repositories`. 3. For each package, `apk search -e rootio-` checks if a Root-patched version exists. If yes, the patched version is installed; if not, the standard upstream package is used. 4. The `pkg.root.io` line is removed from `/etc/apk/repositories` in the same `RUN` layer, so credentials are never persisted in the image. *** ## CI/CD Integration ```yaml theme={null} - name: Build container image env: ROOTIO_API_KEY: ${{ secrets.ROOTIO_API_KEY }} run: | DOCKER_BUILDKIT=1 docker build \ --secret id=rootio_api_key,env=ROOTIO_API_KEY \ -t my-app:latest . ``` ```yaml theme={null} build: variables: DOCKER_BUILDKIT: "1" ROOTIO_API_KEY: $ROOTIO_API_KEY script: - docker build --secret id=rootio_api_key,env=ROOTIO_API_KEY -t my-app:latest . ``` *** ## Troubleshooting | Issue | Solution | | ---------------------------------- | --------------------------------------------------------------------------------- | | `401 Unauthorized` on `apk update` | Verify `ROOTIO_API_KEY` is set and passed via `--secret` | | `rootio-` not found | Root hasn't patched this package yet - the fallback installs the upstream version | | `--secret` flag not recognized | Prepend `DOCKER_BUILDKIT=1` to your build command | | Key verification error | Ensure the base64-encoded key is copied in full without line breaks | # Debian Source: https://docs.root.io/os-packages/debian Configure pkg.root.io in your Dockerfile to install Root-patched OS packages on Debian. ## Supported Releases | Codename | Debian Version | | -------- | -------------- | | trixie | 13 (testing) | | bookworm | 12 | | bullseye | 11 | *** ## Dockerfile ```dockerfile theme={null} # syntax=docker/dockerfile:1.6 FROM debian:bookworm-slim RUN --mount=type=secret,id=rootio_api_key \ DEBIAN_FRONTEND=noninteractive apt-get update && \ # Install dependencies for adding repositories apt-get install -y --no-install-recommends gnupg ca-certificates && \ \ # Initialize keyring and add Root.io GPG key mkdir -p /etc/apt/keyrings && \ echo "LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCgptRE1FYVlIQ1dSWUpLd1lCQkFIYVJ3OEJBUWRBcDdXVHNLMTVrWTNmQ0pxOUNRVnlxODluRzFoNEw4OHZvVndqCnB0NGNXSjYwSkZKdmIzUXVhVzhnUVZCVUlGSmxjRzl6YVhSdmNua2dQR0Z3ZEVCeWIyOTBMbWx2UG9pVEJCTVcKQ2dBN0ZpRUUzSVVhWTlLRDFsTUhKYTdNZ09RM004RHd3c2tGQW1tQndsa0NHd01GQ3drSUJ3SUNJZ0lHRlFvSgpDQXNDQkJZQ0F3RUNIZ2NDRjRBQUNna1FnT1EzTThEd3dzbGY2d0QrSWxqSGRkVmFKM2xKYjBsSE0rZVFubWNvCnlmTTlpWis5cXI0SjBNYnZsNG9CQUtOL0pYZkJvR2JGYzgzM0ZmN1I5R3M5UXU2bm1EUVZlSDI4eHEwdDRwWU4KPWs3ZHMKLS0tLS1FTkQgUEdQIFBVQkxJQyBLRVkgQkxPQ0stLS0tLQo=" \ | base64 -d | gpg --dearmor -o /etc/apt/keyrings/rootio.gpg && \ \ # Write API key to auth.conf.d (never embedded in the source URL) mkdir -p /etc/apt/auth.conf.d && \ printf "machine pkg.root.io\nlogin root\npassword %s\n" \ "$(cat /run/secrets/rootio_api_key)" > /etc/apt/auth.conf.d/rootio.conf && \ chmod 600 /etc/apt/auth.conf.d/rootio.conf && \ \ # Add Root.io APT repository echo "deb [signed-by=/etc/apt/keyrings/rootio.gpg] https://pkg.root.io/debian/bookworm bookworm main" \ > /etc/apt/sources.list.d/rootio.list && \ \ DEBIAN_FRONTEND=noninteractive apt-get update && \ \ # Install packages, preferring Root.io patched versions when available for pkg in curl git openssl wget bash tini; do \ if apt-cache show "rootio-$pkg" >/dev/null 2>&1; then \ apt-get install -y --no-install-recommends "rootio-$pkg"; \ else \ apt-get install -y --no-install-recommends "$pkg"; \ fi; \ done && \ \ # Remove credentials and clean up rm -f /etc/apt/auth.conf.d/rootio.conf && \ rm -rf /var/lib/apt/lists/* CMD ["/bin/bash"] ``` Replace both occurrences of `bookworm` with your target release codename. *** ## Build ```bash theme={null} export ROOTIO_API_KEY="your-api-token" DOCKER_BUILDKIT=1 docker build \ --secret id=rootio_api_key,env=ROOTIO_API_KEY \ -t my-app:latest . ``` *** ## How It Works 1. `gnupg` and `ca-certificates` are installed from the upstream Debian registry first. 2. Root.io's GPG key is imported to `/etc/apt/keyrings/rootio.gpg` for package signature verification. 3. The API key is written to `/etc/apt/auth.conf.d/rootio.conf` - APT reads it automatically and it never appears in the source URL. 4. For each package, `apt-cache show rootio-` checks if a Root-patched version exists. If yes, the patched version is installed; if not, the standard upstream package is used. 5. The auth file is removed in the same `RUN` layer, so credentials are never persisted in the image. *** ## CI/CD Integration ```yaml theme={null} - name: Build container image env: ROOTIO_API_KEY: ${{ secrets.ROOTIO_API_KEY }} run: | DOCKER_BUILDKIT=1 docker build \ --secret id=rootio_api_key,env=ROOTIO_API_KEY \ -t my-app:latest . ``` ```yaml theme={null} build: variables: DOCKER_BUILDKIT: "1" ROOTIO_API_KEY: $ROOTIO_API_KEY script: - docker build --secret id=rootio_api_key,env=ROOTIO_API_KEY -t my-app:latest . ``` *** ## Troubleshooting | Issue | Solution | | -------------------------------------- | --------------------------------------------------------------------------------- | | `401 Unauthorized` on `apt-get update` | Verify `ROOTIO_API_KEY` is set and passed via `--secret` | | `rootio-` not found | Root hasn't patched this package yet - the fallback installs the upstream version | | GPG key import fails | Ensure `gnupg` and `ca-certificates` are installed before the key import step | | `--secret` flag not recognized | Prepend `DOCKER_BUILDKIT=1` to your build command | # Getting Started with the OS Package Registry Source: https://docs.root.io/os-packages/getting-started Configure pkg.root.io in your Dockerfile to install Root-patched OS packages for Debian, Ubuntu, and Alpine. ## Prerequisites Before you begin, ensure you have: * A Root account with an active subscription ([app.root.io](https://app.root.io)) * A Root API token (generated from the Root dashboard) * Docker with BuildKit support (Docker 23.0+ or `DOCKER_BUILDKIT=1`) * A Dockerfile that installs OS packages via `apt-get` or `apk` *** ## Step 1: Generate an API Token 1. Log in to [app.root.io](https://app.root.io). 2. Navigate to **Settings → API Tokens**. 3. Click **Generate Token**. 4. Copy the token value. You will need it to authenticate with `pkg.root.io`. Store your API token in a secrets manager (e.g., AWS Secrets Manager, HashiCorp Vault, or your CI/CD platform's secrets store). Pass it to Docker builds using BuildKit secrets - never hard-code the token in your Dockerfile or commit it to version control. *** ## Step 2: Configure Your Dockerfile All examples use Docker BuildKit's `--mount=type=secret` to pass the API key securely. The key never appears in any image layer. ```dockerfile theme={null} # syntax=docker/dockerfile:1.6 FROM ubuntu:noble RUN --mount=type=secret,id=rootio_api_key \ DEBIAN_FRONTEND=noninteractive apt-get update && \ # Install dependencies for adding repositories apt-get install -y --no-install-recommends gnupg ca-certificates && \ \ # Initialize keyring and add Root.io GPG key mkdir -p /etc/apt/keyrings && \ echo "LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCgptRE1FYVlIQ1dSWUpLd1lCQkFIYVJ3OEJBUWRBcDdXVHNLMTVrWTNmQ0pxOUNRVnlxODluRzFoNEw4OHZvVndqCnB0NGNXSjYwSkZKdmIzUXVhVzhnUVZCVUlGSmxjRzl6YVhSdmNua2dQR0Z3ZEVCeWIyOTBMbWx2UG9pVEJCTVcKQ2dBN0ZpRUUzSVVhWTlLRDFsTUhKYTdNZ09RM004RHd3c2tGQW1tQndsa0NHd01GQ3drSUJ3SUNJZ0lHRlFvSgpDQXNDQkJZQ0F3RUNIZ2NDRjRBQUNna1FnT1EzTThEd3dzbGY2d0QrSWxqSGRkVmFKM2xKYjBsSE0rZVFubWNvCnlmTTlpWis5cXI0SjBNYnZsNG9CQUtOL0pYZkJvR2JGYzgzM0ZmN1I5R3M5UXU2bm1EUVZlSDI4eHEwdDRwWU4KPWs3ZHMKLS0tLS1FTkQgUEdQIFBVQkxJQyBLRVkgQkxPQ0stLS0tLQo=" \ | base64 -d | gpg --dearmor -o /etc/apt/keyrings/rootio.gpg && \ \ # Write API key to auth.conf.d (never embedded in the source URL) mkdir -p /etc/apt/auth.conf.d && \ printf "machine pkg.root.io\nlogin root\npassword %s\n" \ "$(cat /run/secrets/rootio_api_key)" > /etc/apt/auth.conf.d/rootio.conf && \ chmod 600 /etc/apt/auth.conf.d/rootio.conf && \ \ # Add Root.io APT repository echo "deb [signed-by=/etc/apt/keyrings/rootio.gpg] https://pkg.root.io/ubuntu/noble noble main" \ > /etc/apt/sources.list.d/rootio.list && \ \ DEBIAN_FRONTEND=noninteractive apt-get update && \ \ # Install packages, preferring Root.io patched versions when available for pkg in curl git openssl wget bash tini; do \ if apt-cache show "rootio-$pkg" >/dev/null 2>&1; then \ apt-get install -y --no-install-recommends "rootio-$pkg"; \ else \ apt-get install -y --no-install-recommends "$pkg"; \ fi; \ done && \ \ # Remove credentials and clean up rm -f /etc/apt/auth.conf.d/rootio.conf && \ rm -rf /var/lib/apt/lists/* CMD ["/bin/bash"] ``` **Supported Ubuntu releases:** focal, jammy, mantic, noble, oracular Replace `noble` in both the `echo` and `sources.list.d` lines with your distro codename. ```dockerfile theme={null} # syntax=docker/dockerfile:1.6 FROM debian:bookworm-slim RUN --mount=type=secret,id=rootio_api_key \ DEBIAN_FRONTEND=noninteractive apt-get update && \ # Install dependencies for adding repositories apt-get install -y --no-install-recommends gnupg ca-certificates && \ \ # Initialize keyring and add Root.io GPG key mkdir -p /etc/apt/keyrings && \ echo "LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCgptRE1FYVlIQ1dSWUpLd1lCQkFIYVJ3OEJBUWRBcDdXVHNLMTVrWTNmQ0pxOUNRVnlxODluRzFoNEw4OHZvVndqCnB0NGNXSjYwSkZKdmIzUXVhVzhnUVZCVUlGSmxjRzl6YVhSdmNua2dQR0Z3ZEVCeWIyOTBMbWx2UG9pVEJCTVcKQ2dBN0ZpRUUzSVVhWTlLRDFsTUhKYTdNZ09RM004RHd3c2tGQW1tQndsa0NHd01GQ3drSUJ3SUNJZ0lHRlFvSgpDQXNDQkJZQ0F3RUNIZ2NDRjRBQUNna1FnT1EzTThEd3dzbGY2d0QrSWxqSGRkVmFKM2xKYjBsSE0rZVFubWNvCnlmTTlpWis5cXI0SjBNYnZsNG9CQUtOL0pYZkJvR2JGYzgzM0ZmN1I5R3M5UXU2bm1EUVZlSDI4eHEwdDRwWU4KPWs3ZHMKLS0tLS1FTkQgUEdQIFBVQkxJQyBLRVkgQkxPQ0stLS0tLQo=" \ | base64 -d | gpg --dearmor -o /etc/apt/keyrings/rootio.gpg && \ \ # Write API key to auth.conf.d (never embedded in the source URL) mkdir -p /etc/apt/auth.conf.d && \ printf "machine pkg.root.io\nlogin root\npassword %s\n" \ "$(cat /run/secrets/rootio_api_key)" > /etc/apt/auth.conf.d/rootio.conf && \ chmod 600 /etc/apt/auth.conf.d/rootio.conf && \ \ # Add Root.io APT repository echo "deb [signed-by=/etc/apt/keyrings/rootio.gpg] https://pkg.root.io/debian/bookworm bookworm main" \ > /etc/apt/sources.list.d/rootio.list && \ \ DEBIAN_FRONTEND=noninteractive apt-get update && \ \ # Install packages, preferring Root.io patched versions when available for pkg in curl git openssl wget bash tini; do \ if apt-cache show "rootio-$pkg" >/dev/null 2>&1; then \ apt-get install -y --no-install-recommends "rootio-$pkg"; \ else \ apt-get install -y --no-install-recommends "$pkg"; \ fi; \ done && \ \ # Remove credentials and clean up rm -f /etc/apt/auth.conf.d/rootio.conf && \ rm -rf /var/lib/apt/lists/* CMD ["/bin/bash"] ``` **Supported Debian releases:** bullseye, bookworm, trixie Replace `bookworm` in both the `echo` and `sources.list.d` lines with your distro codename. ```dockerfile theme={null} # syntax=docker/dockerfile:1.6 ARG ALPINE_VERSION=3.20 FROM alpine:${ALPINE_VERSION} ARG ALPINE_VERSION RUN --mount=type=secret,id=rootio_api_key \ # Install Root.io Alpine signing key echo "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFvcG1yUjR1em95WEFiTHFiRUE3cwpBNWQrVytnUzE0TzEwMlJHUjhxa0h0cDhSUEs2b3FvZkhJZzNYSWpnSVlzalQwYTk1VXNzbGFlL2FDWU1UeFBVCmhnSmxkTVU1SnlzZmYxT1BEQld4R2ZCOFJCL081cjA1cU9JLzJ3QlgwQjl5NjhhU0xQZi9UWEA3akY5STRKL3EKdjArWVF2c3owRWdqUEFjeVN2MlgvOHE2R2RoOHRkWG4rbTVBYjJoUU5YUE1TdTM3aXMwUVR3Uk9DSFV4ZXZLeAo0OUZ5UGkvQUR5UDB6bVFYaUtCQW52alN6YVNQNmZPQm1yYlNNY05wYnVPV2lwUUJoajRnVE5KOVNzaDZSQmdmCmJVUlFhdmlwWlAyL0RiNTNiLzJ5UTJJU21QMEo1cmdjWnkrdXoyZndTWmtHb3pUa0ErZDE1dHludlJRVFQwbGkKWXdJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==" | \ base64 -d > /etc/apk/keys/root@alpinelinux.org-67b85bd5.rsa.pub && \ \ # Add pkg.root.io repository with credentials from secret echo "https://root:$(cat /run/secrets/rootio_api_key)@pkg.root.io/alpine/${ALPINE_VERSION}" \ >> /etc/apk/repositories && \ \ apk update && \ \ # Install packages, preferring Root.io patched versions when available for pkg in curl git openssl wget tini; do \ if apk search -e "rootio-$pkg" | grep -q "rootio-$pkg"; then \ apk add --no-cache "rootio-$pkg"; \ else \ apk add --no-cache "$pkg"; \ fi; \ done && \ \ # Remove repository credentials sed -i '/pkg\.root\.io/d' /etc/apk/repositories CMD ["/bin/sh"] ``` **Supported Alpine versions:** 3.18–3.22 *** ## Step 3: Build Your Image Pass your API token as a BuildKit secret at build time: ```bash theme={null} DOCKER_BUILDKIT=1 docker build \ --secret id=rootio_api_key,env=ROOTIO_API_KEY \ -t my-app:latest . ``` Set the environment variable before building: ```bash theme={null} export ROOTIO_API_KEY="your-api-token" ``` The `--secret` flag requires BuildKit. It ensures your API key is only available inside the `RUN` step that mounts it and never written to any image layer. *** ## Step 4: Verify Installation After building, confirm that Root-patched packages were installed: ```bash theme={null} # Enter the container docker run --rm -it my-app:latest /bin/bash # Debian / Ubuntu - check for rootio- packages dpkg -l | grep rootio # Alpine - check for rootio- packages apk list --installed | grep rootio ``` You should see `rootio-curl`, `rootio-git`, etc. for every package that Root has a patched version available. *** ## Step 5: CI/CD Integration ```yaml theme={null} - name: Build container image env: ROOTIO_API_KEY: ${{ secrets.ROOTIO_API_KEY }} run: | DOCKER_BUILDKIT=1 docker build \ --secret id=rootio_api_key,env=ROOTIO_API_KEY \ -t my-app:latest . ``` ```yaml theme={null} build: variables: DOCKER_BUILDKIT: "1" ROOTIO_API_KEY: $ROOTIO_API_KEY script: - docker build --secret id=rootio_api_key,env=ROOTIO_API_KEY -t my-app:latest . ``` *** ## Troubleshooting **`401 Unauthorized` when running `apt-get update`** Your API token is missing or invalid. Verify the secret is being passed correctly with `--secret id=rootio_api_key,env=ROOTIO_API_KEY` and that `ROOTIO_API_KEY` is set in your environment. **`rootio-` not found** Root hasn't patched this package yet. The fallback pattern (`apt-cache show` / `apk search`) ensures your build succeeds with the upstream version. You can request the package via the Root UI. **GPG key import fails** Ensure `gnupg` and `ca-certificates` are installed before importing the key. These must be installed from the upstream repository first. **`--secret` flag not recognized** BuildKit is not enabled. Prepend `DOCKER_BUILDKIT=1` to your build command or set it as an environment variable. *** ## What's Next * [Root Image Catalog - Getting Started](/ric/getting-started) - Set up secured base images * [Root Library Catalog - Getting Started](/rlc/getting-started) - Secure your application dependencies * [Vulnerability Reports](/reports/vulnerability-reports) - Track CVE status across your subscribed OS packages * [Authentication & Access](/getting-started/authentication) - Manage API tokens and team access # OS Package Registry Overview Source: https://docs.root.io/os-packages/overview Continuously patched OS packages for Debian, Ubuntu, and Alpine Linux - delivered via pkg.root.io. Root's OS Package Registry (`pkg.root.io`) provides continuously patched versions of operating system packages for Debian, Ubuntu, and Alpine Linux. It closes the security gap between your hardened base image and the additional OS packages you install during Docker builds via `apt-get` or `apk`. Even when using a Root Image Catalog (RIC) base image with zero CVEs, installing additional OS packages like `curl`, `git`, `openssl`, or `libcurl` can reintroduce vulnerabilities. The OS Package Registry eliminates this risk by serving Root-patched versions of those packages. ## How It Works 1. **You configure** `pkg.root.io` as an additional package repository in your Dockerfile. 2. **You install** packages using the `rootio-` prefix (e.g., `rootio-curl` instead of `curl`). 3. **Root serves** the patched version if available; if not, you fall back to the upstream package automatically. 4. **Root discovers** which packages your organization uses through install requests and monitors them under your SLA. Root-patched OS packages are drop-in replacements - same functionality, same version, with CVEs remediated. ## Supported Distros & Package Managers | OS | Package Manager | Registry URL | Supported Versions | | ------------ | --------------- | ------------------------------- | ------------------------------------- | | Debian | APT | `pkg.root.io/debian/` | trixie, bookworm, bullseye | | Ubuntu | APT | `pkg.root.io/ubuntu/` | oracular, noble, mantic, jammy, focal | | Alpine Linux | APK | `pkg.root.io/alpine/` | 3.22–3.18 | ## Combining with RIC and RLC The OS Package Registry is designed to work alongside Root's other products for complete stack coverage: | Layer | Product | What it secures | | ---------------- | -------------------------- | ------------------------------------------------------------- | | Base image | Root Image Catalog (RIC) | Container base images from `cr.root.io` | | OS packages | OS Package Registry | Packages installed via `apt-get` / `apk` from `pkg.root.io` | | App dependencies | Root Library Catalog (RLC) | Python, JavaScript, Java, and Go libraries from `pkg.root.io` | **Recommended Dockerfile structure:** ```dockerfile theme={null} # Layer 1: Secured base image from RIC FROM cr.root.io/python:3.11-slim-bookworm # Layer 2: Secured OS packages from OS Package Registry ARG ROOTIO_API_KEY RUN # Layer 3: Secured app dependencies from RLC RUN pip config set global.index-url https://pkg.root.io/pypi/simple \ && pip install -r requirements.txt ``` ## Subscribing to OS Packages Root tracks packages your organization installs through `pkg.root.io`. To manage your subscribed OS packages: 1. Navigate to **My Library** in [app.root.io](https://app.root.io). 2. Filter by the **OS Packages** ecosystem. 3. View discovered packages, their vulnerability status, and whether a Root-patched version is available. You can also request support for additional packages that Root doesn't yet patch by using the **Submit Package Request** option in the UI. # Ubuntu Source: https://docs.root.io/os-packages/ubuntu Configure pkg.root.io in your Dockerfile to install Root-patched OS packages on Ubuntu. ## Supported Releases | Codename | Ubuntu Version | | -------- | -------------- | | oracular | 24.10 | | noble | 24.04 LTS | | mantic | 23.10 | | jammy | 22.04 LTS | | focal | 20.04 LTS | *** ## Dockerfile ```dockerfile theme={null} # syntax=docker/dockerfile:1.6 FROM ubuntu:noble RUN --mount=type=secret,id=rootio_api_key \ DEBIAN_FRONTEND=noninteractive apt-get update && \ # Install dependencies for adding repositories apt-get install -y --no-install-recommends gnupg ca-certificates && \ \ # Initialize keyring and add Root.io GPG key mkdir -p /etc/apt/keyrings && \ echo "LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCgptRE1FYVlIQ1dSWUpLd1lCQkFIYVJ3OEJBUWRBcDdXVHNLMTVrWTNmQ0pxOUNRVnlxODluRzFoNEw4OHZvVndqCnB0NGNXSjYwSkZKdmIzUXVhVzhnUVZCVUlGSmxjRzl6YVhSdmNua2dQR0Z3ZEVCeWIyOTBMbWx2UG9pVEJCTVcKQ2dBN0ZpRUUzSVVhWTlLRDFsTUhKYTdNZ09RM004RHd3c2tGQW1tQndsa0NHd01GQ3drSUJ3SUNJZ0lHRlFvSgpDQXNDQkJZQ0F3RUNIZ2NDRjRBQUNna1FnT1EzTThEd3dzbGY2d0QrSWxqSGRkVmFKM2xKYjBsSE0rZVFubWNvCnlmTTlpWis5cXI0SjBNYnZsNG9CQUtOL0pYZkJvR2JGYzgzM0ZmN1I5R3M5UXU2bm1EUVZlSDI4eHEwdDRwWU4KPWs3ZHMKLS0tLS1FTkQgUEdQIFBVQkxJQyBLRVkgQkxPQ0stLS0tLQo=" \ | base64 -d | gpg --dearmor -o /etc/apt/keyrings/rootio.gpg && \ \ # Write API key to auth.conf.d (never embedded in the source URL) mkdir -p /etc/apt/auth.conf.d && \ printf "machine pkg.root.io\nlogin root\npassword %s\n" \ "$(cat /run/secrets/rootio_api_key)" > /etc/apt/auth.conf.d/rootio.conf && \ chmod 600 /etc/apt/auth.conf.d/rootio.conf && \ \ # Add Root.io APT repository echo "deb [signed-by=/etc/apt/keyrings/rootio.gpg] https://pkg.root.io/ubuntu/noble noble main" \ > /etc/apt/sources.list.d/rootio.list && \ \ DEBIAN_FRONTEND=noninteractive apt-get update && \ \ # Install packages, preferring Root.io patched versions when available for pkg in curl git openssl wget bash tini; do \ if apt-cache show "rootio-$pkg" >/dev/null 2>&1; then \ apt-get install -y --no-install-recommends "rootio-$pkg"; \ else \ apt-get install -y --no-install-recommends "$pkg"; \ fi; \ done && \ \ # Remove credentials and clean up rm -f /etc/apt/auth.conf.d/rootio.conf && \ rm -rf /var/lib/apt/lists/* CMD ["/bin/bash"] ``` Replace both occurrences of `noble` with your target release codename. *** ## Build ```bash theme={null} export ROOTIO_API_KEY="your-api-token" DOCKER_BUILDKIT=1 docker build \ --secret id=rootio_api_key,env=ROOTIO_API_KEY \ -t my-app:latest . ``` *** ## How It Works 1. `gnupg` and `ca-certificates` are installed from the upstream Ubuntu registry first. 2. Root.io's GPG key is imported to `/etc/apt/keyrings/rootio.gpg` for package signature verification. 3. The API key is written to `/etc/apt/auth.conf.d/rootio.conf` - APT reads it automatically and it never appears in the source URL. 4. For each package, `apt-cache show rootio-` checks if a Root-patched version exists. If yes, the patched version is installed; if not, the standard upstream package is used. 5. The auth file is removed in the same `RUN` layer, so credentials are never persisted in the image. *** ## CI/CD Integration ```yaml theme={null} - name: Build container image env: ROOTIO_API_KEY: ${{ secrets.ROOTIO_API_KEY }} run: | DOCKER_BUILDKIT=1 docker build \ --secret id=rootio_api_key,env=ROOTIO_API_KEY \ -t my-app:latest . ``` ```yaml theme={null} build: variables: DOCKER_BUILDKIT: "1" ROOTIO_API_KEY: $ROOTIO_API_KEY script: - docker build --secret id=rootio_api_key,env=ROOTIO_API_KEY -t my-app:latest . ``` *** ## Troubleshooting | Issue | Solution | | -------------------------------------- | --------------------------------------------------------------------------------- | | `401 Unauthorized` on `apt-get update` | Verify `ROOTIO_API_KEY` is set and passed via `--secret` | | `rootio-` not found | Root hasn't patched this package yet - the fallback installs the upstream version | | GPG key import fails | Ensure `gnupg` and `ca-certificates` are installed before the key import step | | `--secret` flag not recognized | Prepend `DOCKER_BUILDKIT=1` to your build command | # Agentic Patching Source: https://docs.root.io/platform/agentic-patching See how Root's AI agents research, analyze, and patch vulnerabilities in real time. Root uses autonomous AI agents to research, patch, and validate vulnerability fixes. The Agentic Patching flow gives you full visibility into how each CVE is handled. ## The AVR pipeline Root's Agentic Vulnerability Remediation operates in five stages. The Patcher Flow visualization shows each stage as it executes: 1. **Scan and detect** — when a new CVE is published, Root ingests vulnerability data (NVD advisories, upstream commit history, exploit databases) and identifies affected components automatically. 2. **Build a remediation plan** — research agents analyze the vulnerability in depth, locate upstream fixes, assess compatibility with the specific versions you're running, and determine the right fix approach (backport vs. native package upgrade). 3. **Apply the fix** — patching agents generate the fix for the exact version you're running. Root patches existing software rather than rebuilding from source, preserving your dependencies. 4. **Test and validate** — the patched artifact is validated against the package's test suite, functional tests, CVE-specific regression tests confirming the exploit is blocked, and compatibility verification. 5. **Rebuild and deliver** — the validated artifact is rebuilt with the patch applied, signed with cryptographic attestations (SBOM, VEX, provenance), and published to Root's registries. For the full conceptual overview, see [Agentic Vulnerability Remediation](/concepts/avr). ## Viewing the patching flow ### From a CVE Details page 1. Navigate to any [CVE Details](/platform/cve-details) page. 2. If Root has generated a patch, click **Show in Agentic Factory**. ### From the Patcher Flow page Navigate directly to `app.root.io/patcher-flow`: Enter the CVE ID, package name, package version, and ecosystem. The form validates that the CVE exists and has artifacts. The visualization animates each agent step. Click the info icon on any node for details. Click artifact buttons to view: * **Patch diff** - the code changes applied * **Research report** (`report.md`) - the Security Analyst's findings * **Metadata** (`metadata.json`) - structured data about the fix ## SLA and processing Root's remediation SLA timelines begin when **both** a CVE is published **and** a Fix Candidate is available in the ecosystem. There are two tiers: **Standard SLA** (included with all paid subscriptions): | Severity | Timeline | CISA KEV | | -------- | ----------------------- | -------- | | Critical | 30 calendar days | 72 hours | | High | 30 calendar days | 72 hours | | Medium | 60 calendar days | — | | Low | Commercially reasonable | — | **Enhanced SLA** (available at additional charge per Order Form): | Severity | Timeline | CISA KEV | | -------- | ----------------------- | -------- | | Critical | 7 calendar days | 48 hours | | High | 14 calendar days | 48 hours | | Medium | 30 calendar days | — | | Low | Commercially reasonable | — | For full SLA details including exclusions and surge conditions, see [Root's Service Level Agreement](https://www.root.io/service-level-agreement). CVEs in images or libraries not subscribed by any active customer are tracked but do not trigger automatic agent runs. ## Artifacts | Artifact | Description | | ------------------- | ------------------------------------------------------------------ | | **Patch diff** | Minimal unified diff fixing the vulnerability. | | **Research report** | Markdown document summarizing CVE, fix strategy, and validation. | | **Metadata** | JSON with CVE info, affected package, fix version, and provenance. | If a CVE was resolved by an upstream fix rather than a Root-generated patch, artifacts may not be available. # CVE Details Source: https://docs.root.io/platform/cve-details Deep-dive into any CVE to see affected assets, patch status, and Root's remediation timeline. The CVE Details page gives you a comprehensive view of any vulnerability - severity, affected assets, patch status, and the full remediation timeline. Access it by clicking any CVE ID throughout the platform. ## CVE metadata The top of the page shows: | Field | Description | | ------------------- | ----------------------------------- | | **CVE ID** | e.g., CVE-2024-45492 | | **Severity** | Critical, High, Medium, or Low | | **CVSS Score** | Numeric score and vector string | | **Description** | Summary of the vulnerability | | **Published date** | When the CVE was publicly disclosed | | **Discovered date** | When Root first detected it | ## Patch status and actions If Root has generated a patch, two action buttons appear: * **Show Patch** - view the actual code diff * **Show in Agentic Factory** - open the animated [Agentic Patching](/platform/agentic-patching) flow These buttons appear only for CVEs with Root-generated patch artifacts. CVEs resolved by upstream fixes show resolution status without patch artifacts. ## Remediation statuses | Status | Meaning | | ---------------------- | -------------------------------------------------------------------- | | **Fixed** | Root has resolved this CVE. A patched package or image is available. | | **Working on a Patch** | Root's agents are actively generating a fix. | | **No Fix Available** | No applicable fix exists. Root continues monitoring. | ## SLA tracking | SLA Status | Meaning | | -------------------- | -------------------------------- | | **Met** | Resolved within the SLA window | | **X days remaining** | Actively being worked within SLA | | **X days past SLA** | Overdue, Root is prioritizing | | **Pending SLA** | SLA assignment in progress | ## Affected assets ### List view A table listing each affected package, its ecosystem, which subscribed images contain it, and the fix status. ### Graph view Toggle to graph view for a visual map: * **CVE node** at the center * **Package nodes** showing which packages contain the vulnerability * **Image nodes** showing which subscribed images include those packages The graph is interactive - click nodes for details, zoom and pan for complex dependency trees. The graph view is most useful for CVEs with broad impact across multiple packages and images. For a CVE in a single package, the list view is more practical. ## How to get here CVE IDs are clickable throughout the platform: | From | How | | --------------------- | ---------------------------------------------- | | **Security Findings** | Click any CVE ID | | **Image Report** | Click a CVE in any tab | | **Library Report** | Click a CVE in the vulnerability table | | **My Library** | Navigate to a package report, then click a CVE | | **Direct URL** | `app.root.io/vulnerabilities/CVE-YYYY-NNNNN` | ## Public vs. logged-in views * **Public visitors** see CVE metadata, general affected packages, and Root's remediation status. * **Logged-in users** additionally see organization-specific affected assets, SLA status, patch artifacts, and the Agentic Factory visualization. # Dashboard & Metrics Source: https://docs.root.io/platform/dashboard A live view of Root's agentic work across your environment - factory activity, protection metrics, and security findings trends. The dashboard is the first screen after login. It provides a live view of Root's agentic work across your environment, combining real-time pipeline activity with cumulative protection metrics. ## Agentic Factory The top of the dashboard shows the **Agentic Factory** — a live visualization of Root's remediation pipeline operating on your organization's security findings. A badge in the top right shows how many findings Root is actively working on (e.g., "Actively working on 553 Security Findings"). ### Current Factory Work The **Current Factory Work** panel displays findings flowing through each stage of the pipeline: | Stage | Description | Scope | | ---------------------- | ---------------------------------------------------- | ------------- | | **Detected** | New security findings discovered | Past 24 hours | | **Researching** | Agent researching for potential fix candidates | All current | | **Creating a Patch** | Applicable fix candidate found — creating the patch | All current | | **Patch is Available** | Patch is ready, hasn't yet been applied on the asset | All current | | **Fixed** | Findings resolved | Past 24 hours | Each stage card shows the count and lists individual CVEs with their severity. The Detected and Fixed stages are scoped to the past 24 hours; the three middle stages show all findings currently in that status. ### Security findings — Detected and Fixed (Last 7 Days) Below the factory, two summary cards show 7-day trends: * **Detected** — count of new findings with a severity breakdown (Critical, High, Medium) and a sparkline trend chart * **Fixed** — count of resolved findings with a sparkline trend chart, plus verification steps completed: "Patch Fully Tested", "Merge Request Created", "Validated and Approved by a Human" ## Protection Overview The **Protection Overview** section shows cumulative metrics across your organization. A badge in the top right displays the overall protection percentage (e.g., "Protection: 96% Findings Resolved"). ### Summary panels | Panel | What it shows | | ----------------------------- | ------------------------------------------------------------------------------------------------------------------ | | **Total Detected** | Total security findings discovered across all subscribed images and libraries, with Critical/High/Medium breakdown | | **Total Fixed** | Total findings Root has remediated, with Critical/High/Medium breakdown | | **Total Monitored Libraries** | Count of libraries secured by Root | | **Total Monitored Images** | Count of container images secured by Root | ### Security Findings Detected vs. Fixed Over Time A line chart plots the cumulative count of detected findings and fixed findings over time, showing how remediation keeps pace with discovery. ### Recent Security Findings Updates A tabbed feed showing the most recent findings across four status tabs: | Tab | What it shows | | ---------------------- | --------------------------------------------------------------- | | **Fixed** | Recently resolved CVEs with package name, version, and severity | | **Patch is Available** | CVEs where Root has a patch ready | | **Creating a Patch** | CVEs where Root's agents are generating a fix | | **Researching** | CVEs where Root's agents are investigating fix candidates | Each entry includes the CVE ID, affected package and version, severity score, and a **CVE Details** button that links to the [CVE Details](/platform/cve-details) page. ### Complete Autonomous Protection A gauge showing the percentage of actionable security findings that Root has resolved. When protection is high (e.g., 96%), the panel displays: "Root has everything under control. Root has resolved 96% of all actionable security findings in your environment — every backport patched, fully tested, and delivered as a validated merge request." ## Security Findings page The **Security Findings** page (accessible from the sidebar) lists every vulnerability across your subscribed images and discovered packages. This page may still appear as "Vulnerabilities" in parts of the sidebar while the rename rolls out. ### Status tabs | Tab | Meaning | | ---------------------- | ---------------------------------------------------------- | | **Fixed** | Root has applied a patch — the vulnerability is resolved | | **Working on a Patch** | Root's agents are actively researching or generating a fix | | **No Fix Available** | No upstream fix exists; Root is monitoring | ### Group by CVE A single CVE can affect multiple assets — the same package across several images, plus libraries your organization uses. Use the **Group by CVE** option to see the total impact and scope of each vulnerability across your environment, rather than viewing each affected asset as a separate row. ### Medium vulnerabilities toggle A global **Medium vulns** toggle controls whether Medium-severity findings appear in dashboard charts, the inventory vulnerability reduction column, and reports. Medium vulnerabilities are shown by default. ### Filtering Filter the security findings table by: * **Search** — package name or CVE ID * **Ecosystem** — PyPI, APK, APT, npm, Maven, Go * **Severity** — Critical, High, Medium, Low, Unknown * **Status tab** — Fixed / Working on a Patch / No Fix Available Filters combine. For example: *High-severity PyPI packages currently being worked on*. ## SLA targets Root defines two SLA tiers. Standard is included with all paid subscriptions; Enhanced is available at additional charge per Order Form. **Standard SLA:** | Severity | Timeline | CISA KEV | | -------- | ----------------------- | -------- | | Critical | 30 calendar days | 72 hours | | High | 30 calendar days | 72 hours | | Medium | 60 calendar days | — | | Low | Commercially reasonable | — | **Enhanced SLA:** | Severity | Timeline | CISA KEV | | -------- | ----------------------- | -------- | | Critical | 7 calendar days | 48 hours | | High | 14 calendar days | 48 hours | | Medium | 30 calendar days | — | | Low | Commercially reasonable | — | SLA timelines begin when **both** a CVE is published in a recognized vulnerability database **and** a Fix Candidate is available in the ecosystem. For full details including exclusions, surge conditions, and escalation to Root Labs, see [Root's Service Level Agreement](https://www.root.io/service-level-agreement). ## Exporting metrics **CSV export:** From the Security Findings page, use the export button to download the current filtered view as CSV. The export includes CVE ID, severity, CVSS score, package, ecosystem, OS, SLA status, and fix date. **API access:** All dashboard data is available via the Root API for integration with BI tools, dashboards, and SIEM: ```bash theme={null} # Get all fixed CVEs for your organization curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/patches?ticket_statuses=done&order=updated_at:desc" # Get CVEs currently being worked on curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/patches?ticket_statuses=open,in_progress" # Get subscribed images with patch metadata curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/subscriptions/" ``` **Webhook notifications:** Root can push patch delivery events to a webhook endpoint, enabling real-time updates in Slack, PagerDuty, Jira, or your SIEM. See [Webhook Notifications](/ric/webhooks) for configuration. ## Sidebar navigation The app sidebar provides access to: * **Dashboard** — this page * **Security Findings** — the full CVE table with filtering * **Libraries** — Library Catalog and My Library * **Images** — Image Catalog and My Images * **Patcher Flow** — the [Agentic Patching](/platform/agentic-patching) visualization * **Settings** — organization and account settings * **Invite Teammates** — add team members to your organization * **Documentation** — links to docs.root.io * **Get Help** — contact Root support # Image Catalog & My Images Source: https://docs.root.io/platform/image-catalog Browse Root's catalog of secure container images and manage your subscribed images. Root provides two views for working with container images: the **Image Catalog** (the full directory of available images) and **My Images** (the images your organization is subscribed to). ## Image Catalog The Image Catalog lists all container images available through Root Image Catalog at `cr.root.io`. Access it at [app.root.io/images/catalog](https://app.root.io/images/catalog). ### What you see The catalog displays images that have active subscriptions. Each image card shows: * **Image name** (e.g., `python`, `node`, `postgres`) * **Available tags** with architecture indicators (amd64, arm64) * **Vulnerability reduction chart** - a before/after comparison of Critical and High CVEs between the upstream image and Root's patched version Images that are not actively subscribed by any customer may not appear in the public catalog. Any image can be added within 48 hours upon request — contact Root at [root.io/contact](https://www.root.io/contact). ### Subscribing to an image Browse or search the catalog for the image you need. Click the image to view available tags. Choose the tag matching your current usage (e.g., `3.11-slim-bookworm`). Click **Subscribe** on the tag. Root begins scanning for vulnerabilities and generating patched versions. Pull the patched image from Root's registry: ```bash theme={null} docker pull cr.root.io/python:3.11-slim-bookworm ``` ### Vulnerability charts Each image tag page includes a before/after vulnerability chart showing how Root reduces Critical and High CVEs over time. The chart plots counts across successive scans so you can see the remediation trend. For images based on older distributions (e.g., Debian Bullseye, Amazon Linux), Root may not achieve zero vulnerabilities because backports are not always available. The chart indicates when this is the case. ### Architecture support Root images are available for both `amd64` and `arm64`. The catalog shows which architectures are available for each tag. Docker automatically selects the correct architecture when pulling. *** ## My Images **My Images** shows the images your organization is currently subscribed to. ### What you see | Column | Description | | ---------------- | ------------------------------------------------------------ | | **Image:Tag** | The image name and tag | | **Architecture** | amd64, arm64, or both | | **Before** | Critical + High CVE count in the upstream image | | **After** | Critical + High CVE count in Root's patched version | | **Status** | Whether the image is up to date, pending scan, or has issues | ### Image reports Click **View Report** on any subscribed image to open the Image Report: * **Vulnerability breakdown** by severity (Critical, High, Medium, Low) * **Security Findings table** listing each finding with status, severity, and SLA information * **Before/after chart** showing remediation progress over time * **Package details** for every OS package in the image After subscribing to a new image, security findings data may take a few minutes to become available. During this period the report may show a loading state. ### FIPS images Root offers FIPS 140-3 validated images for regulated environments, identified with a FIPS badge in the catalog. See [FIPS Images](/ric/fips-images) for details. *** ## Pulling Root images Replace Docker Hub references with the Root equivalent: ```dockerfile theme={null} # Before (upstream) FROM python:3.11-slim-bookworm # After (Root-secured) FROM cr.root.io/python:3.11-slim-bookworm ``` Same tags, same behavior, same package versions - with Critical and High CVEs removed. For full setup, see [Getting Started with RIC](/ric/getting-started). For registry mirror configuration (ECR, JFrog Artifactory), see the **Registry Mirrors** section under Root Image Catalog in the sidebar. # Library Catalog Source: https://docs.root.io/platform/library-catalog Browse and install Root-secured application packages across Python, JavaScript, Java, and Go ecosystems. The Library Catalog is Root's browsable directory of patched application-level packages. Access it at [app.root.io/libraries/catalog](https://app.root.io/libraries/catalog). ## Supported ecosystems | Ecosystem | Package Managers | Registry Endpoint | | -------------- | ---------------- | -------------------------- | | **Python** | pip, uv, Poetry | `pkg.root.io/pypi/simple/` | | **JavaScript** | npm, pnpm, Yarn | `pkg.root.io/npm/` | | **Java** | Maven, Gradle | `pkg.root.io/maven/` | | **Go** | Go modules | `pkg.root.io/gobinary/` | For setup instructions, see [Python](/rlc/python), [JavaScript](/rlc/javascript), [Java](/rlc/java), or [Go](/rlc/go). ## Browsing the catalog ### Filter by ecosystem Click an ecosystem tab (Python, JavaScript, Java, Go) to filter the package list. ### Package details Click any package name to open its detail page: * **Available versions** - all versions Root has patched, with CVE fix counts per version * **CVE summary** - specific CVEs fixed in each patched version, with severity indicators * **Installation instructions** - copy-paste commands tailored to each supported package manager * **Project configuration snippets** - how to persist the Root-secured version in your project files (`requirements.txt`, `pyproject.toml`, `package.json`, `pnpm-workspace.yaml`, `yarn.lock`) You can share a direct link to any package page in the catalog with teammates. ## Configure access Click **Configure Root library registry** to open the setup modal. Select your ecosystem (Python, JavaScript, Java, Go) and distribution, then use the generated snippets to authenticate with your API token. ## How Root packages work Root packages are drop-in replacements. The versioning pattern varies by ecosystem: **Python** — packages use a `.root.io.N` version suffix: ``` # Upstream vulnerable version requests==2.31.0 # Root-patched version (same API, CVEs fixed) requests==2.31.0.root.io.3 ``` **JavaScript** — packages are published under the `@rootio/` npm scope. You add `overrides` (or `resolutions`) to your `package.json` to map the original package to the Root-patched equivalent: ```json theme={null} { "overrides": { "axios": "npm:@rootio/axios@1.6.0" } } ``` **Java** — packages are served through a Maven-compatible registry at `pkg.root.io/maven/`. Configure your `settings.xml` or `build.gradle` to resolve through Root's registry. **Go** — modules are served through the GOPROXY protocol at `pkg.root.io/gobinary`. Patched modules keep the same version with a `-rootio.N` suffix and are consumed via `replace` directives in `go.mod`: ```go theme={null} replace golang.org/x/net v0.17.0 => pkg.root.io/golang/golang.org/x/net v0.17.0-rootio.1 ``` In all cases, when Root doesn't have a patched version of a package, the request falls through to the upstream registry (PyPI, npm, Maven Central, or direct Go module fetching). Root patches the version you are already running. No major or minor version upgrades required. Root backports security fixes into your pinned version. ## Package statuses | Status | Meaning | | ---------------------- | ------------------------------------------------------------------------------- | | **Root Secured** | A patched version is available. Install it to fix known Critical and High CVEs. | | **No Fix Available** | No applicable fix candidate exists. Root is monitoring for upstream patches. | | **Working on a Patch** | Root's agents are actively researching and generating a patch. | ## What gets patched Root focuses on **Critical** and **High** severity CVEs. Medium and Low are tracked but not shown in the primary catalog view. Every patched package includes: * **SBOM** - Software Bill of Materials * **VEX statement** - documenting what was fixed * **Provenance attestation** - SLSA provenance proving the package was built by Root ## Relationship to My Library The Library Catalog is the reference directory of everything Root offers. [My Library](/platform/my-library) shows what your organization is actually running and whether patched versions are available for your specific packages. # My Library Source: https://docs.root.io/platform/my-library Track discovered packages across your organization and see which have Root-secured versions available. My Library shows every application and OS package Root has discovered in your organization's artifact repositories. It tracks vulnerability status and tells you when a Root-secured version is available. ## How package discovery works When your organization connects artifact repositories or subscribes to container images, Root automatically scans for packages in use: 1. Identifies the package name, version, and ecosystem 2. Scans for known CVEs 3. Checks whether a Root-patched version exists 4. Tracks the package with its vulnerability status Package discovery is continuous. As you push new packages or update dependencies, Root detects and tracks them automatically. ## Application libraries The **Application Libraries** tab shows packages from your connected artifact repositories across Python (PyPI), JavaScript (npm), Java (Maven), and Go (Go modules). ### Table columns | Column | Description | | ---------------- | ------------------------------------------------------------- | | **Package name** | e.g., `requests`, `axios`, `jackson-core`, `golang.org/x/net` | | **Ecosystem** | Python, npm, Maven, or Go | | **Version** | The version your organization is currently using | | **Unfixed CVEs** | Count of Critical and High CVEs still present | | **Status** | Whether a Root-secured version is available | ### Package statuses | Status | What it means | Action | | ------------------ | --------------------------------------------- | -------------------------------------------------------- | | **Root available** | A newer Root-patched version exists | Click **Get the fixed package** for install instructions | | **Root in use** | You're already using the Root-patched version | No action needed | | **Not available** | Root doesn't have a patched version yet | Check back later | ### Getting the fixed package Click **Get the fixed package** to open a modal with the Root-patched version number, installation commands per package manager, and project file snippets. You can also click **View in Catalog** to see the full package page in the [Library Catalog](/platform/library-catalog). ### Package reports Click **View Report** to see a Library Report: * **CVE breakdown** - Critical and High vulnerabilities, with a toggle for Medium and Low * **Before/after comparison** - CVEs in upstream vs. Root-patched version * **Individual CVE details** - click any CVE ID to open the [CVE Details](/platform/cve-details) page The table shows Critical and High CVEs by default. The report includes all severities with a toggle. This explains any count differences you see between the table and the report. ## OS libraries The **OS Libraries** tab (at `app.root.io/libraries/my-os`) shows OS-level packages from your subscribed container images. ### Table columns * **Source package name** (e.g., `openssl`, `curl`, `libexpat`) * **Binaries** - binary packages in this source package * **Ecosystem** - Debian, Ubuntu, Alpine, etc. * **Distro version** - OS distribution release (e.g., Debian 12, Alpine 3.19) * **Unfixed CVEs** and **Fixed CVEs** - Critical and High counts OS package visibility is part of your Root Image Catalog (RIC) entitlement. No separate subscription is required. ### OS package installation For OS packages with a Root-secured version: ```dockerfile theme={null} # In Dockerfile RUN apt-get update && apt-get install -y rootio-curl ``` Or from the command line: ```bash theme={null} apt-get install rootio-curl ``` Root OS packages use the `rootio-` prefix to distinguish them from upstream packages. ## Filtering and search My Library supports filtering by ecosystem, package name, and Root availability status. The search bar works across both source names and binary names for OS packages. # Platform Overview Source: https://docs.root.io/platform/overview Navigate the Root platform at app.root.io - catalogs, subscriptions, vulnerability tracking, and patching visibility. The Root platform at [app.root.io](https://app.root.io) gives you visibility into your organization's images, libraries, and vulnerability posture. This section documents the key screens and features. ## Platform pages Browse secure container images, subscribe to tags, and track before/after vulnerability reduction. Explore Root-secured packages across Python, JavaScript, Java, and Go ecosystems. Track discovered packages in your organization and identify which have Root-secured versions. View and filter all CVEs across your subscribed images and libraries. Deep-dive into any CVE - affected assets, patch status, remediation timeline, and the affected assets graph. Watch Root's AI agents research, patch, and validate fixes in real time. ## How the platform fits together The platform is organized around two flows: **Supply flow** - where you get secure artifacts: * The **Image Catalog** and **Library Catalog** show what Root has available. You subscribe to images or configure your package manager to pull from Root's registries. * [Getting Started with RIC](/ric/getting-started) and [Getting Started with RLC](/rlc/getting-started) cover the setup steps. **Visibility flow** - where you monitor your security posture: * **My Images** and **My Library** show what your organization is using and the CVE status of each. * **Security Findings** is the central table of all vulnerabilities across your subscriptions. * **CVE Details** lets you drill into any individual CVE to see affected assets, patch artifacts, and the agentic patching flow. * The [Dashboard](/platform/dashboard) provides aggregate metrics and trends. ## Additional platform capabilities **AI-driven malware checks** — Root runs AI-driven malware analysis on all packages it builds. This catches zero-day malware before it enters your supply chain — for example, compromised package versions like the axios attack are blocked from being built. Malware checks run automatically; no configuration is needed. **Token Management** — Root supports org-level service tokens for programmatic access. Tokens are not tied to individual users, so pipelines don't break when someone leaves the team. Features include permission scoping (Admin, Member, Read-only), token naming, created-by visibility, last-used tracking, and optional expiration dates. Token management is available under **Settings** in the app sidebar. Dedicated documentation pages for malware checks and token management are coming soon. ## Navigation From the app sidebar: * **Dashboard** - fleet-wide metrics * **Security Findings** (labeled "Vulnerabilities" in some views) - the main CVE table * **My Images** - your subscribed container images * **My Library** - your discovered application and OS packages * **Image Catalog** - browse all available images * **Library Catalog** - browse all available packages # Security Findings Source: https://docs.root.io/platform/security-findings View and filter all CVEs across your subscribed images and libraries in one central table. Security Findings is the central vulnerability table in the Root platform. It lists every CVE affecting your subscribed images and discovered packages, with filtering, status tracking, and drill-down to individual CVE details. This page may still appear as "Vulnerabilities" in some parts of the sidebar while the rename is being rolled out. ## Accessing Security Findings Navigate to **Security Findings** (or **Vulnerabilities**) in the app sidebar. The table shows all CVEs across your organization's subscribed images and discovered packages. ## Table columns | Column | Description | | ------------- | ------------------------------------------------------------------------------------------ | | **CVE ID** | The vulnerability identifier. Click to open the [CVE Details](/platform/cve-details) page. | | **Severity** | Critical, High, Medium, or Low | | **Package** | The affected package name and version | | **Ecosystem** | Debian, Ubuntu, Alpine, npm, PyPI, Maven, etc. | | **Status** | Fixed, Working on a Patch, or No Fix Available | | **SLA** | Met, Days Remaining, Days Past SLA, Pending, or Not Applicable | ## Filtering ### By status tab The table is organized into tabs: | Tab | Shows | | ---------------------- | ----------------------------------------------------------------------- | | **Fixed** | CVEs that Root has remediated. A patched image or package is available. | | **Working on a Patch** | CVEs currently being researched and patched by Root's agents. | | **No Fix Available** | CVEs with no applicable fix candidate. Root continues monitoring. | ### By severity Filter by Critical, High, Medium, or Low. By default, only Critical and High are shown. ### By ecosystem Narrow results to a specific ecosystem (e.g., only Debian packages, only npm). ## Clicking a CVE Click any CVE ID in the table to open the [CVE Details](/platform/cve-details) page with full metadata, affected assets, patch artifacts, and the agentic patching visualization. ## Where Security Findings appear The Security Findings table is the organization-wide view. The same data also appears in scoped contexts: | Context | What it shows | | ------------------ | ---------------------------------------- | | **Image Report** | CVEs for a specific subscribed image:tag | | **Library Report** | CVEs for a specific discovered package | | **CVE Details** | Full deep-dive on a single CVE | All of these share the same data source. Clicking a CVE from any table takes you to the same CVE Details page. ## Agentic Patching access For CVEs where Root has generated patch artifacts, the Security Findings table includes an **Agentic Factory** button on the row. Click it to open the [Agentic Patching](/platform/agentic-patching) flow for that specific CVE. # Quick Start Source: https://docs.root.io/quickstart Get secure open source into your pipeline in minutes. Root delivers pre-patched open source through two registries. Choose the path that matches what you need to secure. Switch base images to `cr.root.io` for zero-CVE containers. Point pip, npm, Maven, or other package managers at `pkg.root.io`. *** ## Secure Container Images Root Image Catalog (RIC) provides drop-in replacements for standard base images - same tags, pre-patched. ### 1. Get access Contact [root.io](https://root.io) to receive your registry credentials for `cr.root.io`. ### 2. Authenticate ```bash theme={null} docker login cr.root.io ``` ### 3. Update your Dockerfile Replace your base image reference. Tags, APIs, and behavior are identical. ```dockerfile theme={null} # Before FROM python:3.12-slim # After - same image, zero vulnerabilities FROM cr.root.io/python:3.12-slim ``` ### 4. Verify patch coverage ```bash theme={null} docker pull cr.root.io/python:3.12-slim docker inspect cr.root.io/python:3.12-slim | jq '.[0].Config.Labels' ``` Image labels include the SBOM digest and a reference to every Root Patch applied. Every image from `cr.root.io` ships with an updated SBOM and VEX statements. See [Supported Images](/ric/supported-images) for the full list. *** ## Secure Application Packages Root Library Catalog (RLC) provides a secure package registry at `pkg.root.io` for Python, JavaScript, Java, Go, .NET, and PHP ecosystems. ### 1. Get access Contact [root.io](https://root.io) to receive your registry credentials for `pkg.root.io`. ### 2. Configure your package manager ```bash theme={null} echo "machine pkg.root.io login token password YOUR_ROOT_TOKEN" >> ~/.netrc chmod 600 ~/.netrc pip config set global.index-url https://pkg.root.io/pypi/simple && pip config set global.extra-index-url https://pypi.org/simple ``` ```bash theme={null} echo "machine pkg.root.io login token password YOUR_ROOT_TOKEN" >> ~/.netrc chmod 600 ~/.netrc ``` ```toml theme={null} # pyproject.toml [[tool.uv.index]] name = "root" url = "https://pkg.root.io/pypi/simple/" ``` ```bash theme={null} npm config set registry https://pkg.root.io/npm/ --location=project && npm config set //pkg.root.io/npm/:_authToken YOUR_ROOT_TOKEN --location=project ``` ```bash theme={null} export ROOT_TOKEN="your-token-here" ``` ```xml theme={null} root-io rootio ${env.ROOT_TOKEN} root-io https://pkg.root.io/maven/ central ``` ```bash theme={null} # Configure GOPROXY with authentication export GOPROXY="https://:${ROOTIO_API_KEY}@pkg.root.io/gobinary,https://proxy.golang.org,direct" # Install the Root Patcher CLI to add replace directives curl -sL https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_darwin_arm64.tar.gz | tar xz chmod +x rootio_patcher && sudo mv rootio_patcher /usr/local/bin/ # Patch your go.mod rootio_patcher go remediate --dry-run=false ``` ### 3. Install packages as usual For Python, install from your `requirements.txt` or add packages directly - Root resolves and serves patched versions transparently: ```bash theme={null} pip install -r requirements.txt ``` For JavaScript, patched packages are served under the `@rootio/` scope and applied via `overrides` in `package.json`. See the [JavaScript guide](/rlc/javascript) for details. *** ## What happens next Once configured, Root's AVR agents continuously monitor every package you consume. When a new CVE is published: AVR collects advisories, upstream commits, exploit details, and affected versions to build the full picture before touching any code. Agents apply the smallest safe fix - backporting patches when possible, applying native distribution package upgrades when not. Package tests, functional tests, and CVE-specific tests run automatically to ensure the patch works and nothing else breaks. The patched package or image is available at Root's registries - along with an updated SBOM and VEX statement. No tickets. No triage. No engineering time spent on CVE work. Supported images, patch details, and CI/CD integration. Python, JavaScript, Java, Go, .NET, and PHP package manager setup. # API Reference Source: https://docs.root.io/reference/api Root's REST API for querying patch status, accessing SBOMs and VEX statements, and managing registry configuration. Root exposes a REST API for programmatic access to patch status, SBOM and VEX data, vulnerability reports, and registry management. ## Authentication All API requests require a Bearer token: ```bash theme={null} curl -H "Authorization: Bearer $ROOT_TOKEN" https://api.root.io/v1/... ``` Alternatively, use an API key with Basic Auth (API key as username, empty password): ```bash theme={null} curl -u "apik_yourkey:" https://api.root.io/v1/... ``` To generate an API key, navigate to **Settings → API Keys** in the Root platform. ## Base URL ``` https://api.root.io/v1 ``` ## Endpoints ### Account | Method | Path | Description | | ------ | -------- | ------------------------------------- | | `GET` | `/me` | Get the current authenticated account | | `GET` | `/orgs/` | Get your organization | ### API Keys | Method | Path | Description | | -------- | ----------------------- | ---------------------- | | `POST` | `/api_keys/` | Create a new API key | | `GET` | `/api_keys/` | List API keys | | `GET` | `/api_keys/{apiKeyID}/` | Get a specific API key | | `DELETE` | `/api_keys/{apiKeyID}/` | Delete an API key | ### Subscriptions | Method | Path | Description | | -------- | ---------------------------------- | -------------------------------- | | `POST` | `/subscriptions/` | Subscribe to an image or package | | `GET` | `/subscriptions/` | List your subscriptions | | `GET` | `/subscriptions/{subscriptionID}/` | Get a specific subscription | | `DELETE` | `/subscriptions/` | Remove a subscription | ### Patches | Method | Path | Description | | ------ | ---------- | ------------------------------- | | `GET` | `/patches` | List CVE patches with filtering | **Query parameters for `/patches`:** | Parameter | Type | Description | | ------------------ | ------- | -------------------------------------------------------------------------- | | `cve_id` | string | Filter by CVE ID (e.g., `CVE-2024-1234`) | | `package_src_name` | string | Filter by source package name | | `ecosystem` | string | Filter by ecosystem (`alpine`, `debian`, `ubuntu`, `pypi`, `npm`, `maven`) | | `severities` | string | Comma-separated severities (`critical`, `high`, `medium`, `low`) | | `ticket_statuses` | string | Comma-separated statuses (`open`, `in_progress`, `done`, `deferred`) | | `order` | string | Sort order (e.g., `created_at:desc`) | | `limit` | integer | Page size (default: 100, max: 1000) | | `after` | string | Cursor for pagination | **Example:** ```bash theme={null} # Get all patched critical CVEs in PyPI packages curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/patches?ecosystem=pypi&severities=critical&ticket_statuses=done" ``` ### Image Catalog | Method | Path | Description | | ------ | -------------------------- | ------------------------------------ | | `GET` | `/images/` | List images in Root Image Catalog | | `GET` | `/images/{rriID}` | Get image details | | `GET` | `/images/{imageRepo}/tags` | List tags for an image | | `GET` | `/tags/` | List all tags | | `GET` | `/tags/{rrtID}` | Get details for a specific tag | | `GET` | `/tags/{rrtID}/sbom` | Get SBOM download URL for a tag | | `GET` | `/tags/{rrtID}/vex` | Get VEX download URL for a tag | | `GET` | `/tags/{rrtID}/provenance` | Get provenance attestation for a tag | **Example:** ```bash theme={null} # Get SBOM for an image tag curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/images/tags/{rrtID}/sbom" # Response includes a presigned URL - fetch the SBOM: # curl -o sbom.json "https://presigned-url..." ``` ### Packages | Method | Path | Description | | ------ | ---------------------------------------- | -------------------------------- | | `GET` | `/packages/` | List packages | | `GET` | `/packages/{pkgID}/` | Get package details | | `GET` | `/packages/{pkgID}/artifacts/patches` | Get patches applied to a package | | `GET` | `/packages/{pkgID}/artifacts/provenance` | Get provenance for a package | **Package Catalog (pkg.root.io):** ``` GET https://pkg.root.io/packages/ecosystems/{ecosystem}/packages/{name}/versions GET https://pkg.root.io/packages/ecosystems/{ecosystem}/packages/{name}/versions/{version}/cves GET https://pkg.root.io/packages/ecosystems/{ecosystem}/packages/{name}/versions/{version}/details GET https://pkg.root.io/packages/ecosystems/{ecosystem}/packages/{name}/versions/{version}/provenance/{arch} ``` ### AVR Artifacts AVR (Artifact Vulnerability Remediation) endpoints provide access to artifacts from Root's remediation pipeline: | Method | Path | Description | | ------ | ------------------------------------ | ---------------------------------- | | `GET` | `/avrs/{avrID}/artifacts/sbom` | Get SBOM for a remediated artifact | | `GET` | `/avrs/{avrID}/artifacts/vex` | Get VEX for a remediated artifact | | `GET` | `/avrs/{avrID}/artifacts/provenance` | Get SLSA provenance | ### Public Feeds (No Auth Required) These endpoints are served at the root of `api.root.io` (no `/v1` prefix). | Method | Path | Description | | ------ | ------------------------------------------------- | ------------------------------------------- | | `GET` | `https://api.root.io/external/patch_feed` | Public patch feed (filterable by ecosystem) | | `GET` | `https://api.root.io/external/osv/all.json` | OSV-format index of all Root-tracked CVEs | | `GET` | `https://api.root.io/external/osv/all.zip` | Bulk download of the full OSV feed | | `GET` | `https://api.root.io/external/osv/{osv_id}.json` | OSV-format record for a specific CVE | | `GET` | `https://api.root.io/external/globals/sys_matrix` | Supported ecosystems and distros | **Fetching a single OSV record:** ```bash theme={null} curl -X GET "https://api.root.io/external/osv/OSV-12345.json" \ -H "accept: application/json" ``` **Patch feed query parameters:** | Parameter | Description | | ------------------ | -------------------------------------------------------------------------- | | `ecosystem` | Filter by ecosystem (`alpine`, `debian`, `ubuntu`, `pypi`, `npm`, `maven`) | | `os_distro_major` | Filter by OS distro version (e.g., `22.04`) | | `package_src_name` | Filter by package source name | ## Rate Limits API requests are rate-limited. If you exceed the limit, you'll receive a `429 Too Many Requests` response. The response headers include: * `X-RateLimit-Limit` - requests allowed per window * `X-RateLimit-Remaining` - requests remaining in the current window * `Retry-After` - seconds to wait before retrying For high-volume use cases, use pagination (`limit` + `after` cursor) rather than making many small requests. ## SDKs Official Python and JavaScript SDKs are in development. In the meantime, any HTTP client works with the REST API. For Python: ```python theme={null} import requests headers = {"Authorization": f"Bearer {ROOT_TOKEN}"} response = requests.get("https://api.root.io/v1/patches", headers=headers, params={ "ecosystem": "pypi", "severities": "critical,high", "ticket_statuses": "done", "limit": 100 }) patches = response.json() ``` # Changelog Source: https://docs.root.io/reference/changelog Release notes for Root platform updates, new image and package support, and API changes. Platform updates, new supported images and packages, API changes, and bug fixes are documented here. *** ## March 2026 ### Platform * **Severities filter for package API** - The `/v1/packages` endpoint now supports filtering by `severities`, enabling callers to scope package queries to critical/high/medium/low findings directly. * **Image rebuilder publish output** - The image rebuilder pipeline now publishes SBOM and VEX artifacts to S3 on completion, making them immediately available via the artifact download endpoints. * **API key authorization cleanup** - Removed legacy v2 API key authorization paths; all authentication now routes through the v3 auth layer. * **Debian/Ubuntu CVE enrichment fix** - Restored CVE and fixed-CVE enrichment for discovered packages on Debian and Ubuntu distros. Package name resolution for these distros now correctly links to patch metadata. * **Research not found handling** - The artifact list API no longer returns an error when no research record is found for a CVE ticket; it returns an empty list instead. ### Image Catalog * Subscriptions table now shows per-severity CVE breakdown (Critical / High / Medium / Low) before and after Root Patches are applied. *** ## February 2026 ### Platform * **CVE metadata backfill on subscription** - When a new image or package is subscribed, Root now backfills existing CVE metadata immediately so the Vulnerabilities page reflects current state without waiting for the next scan cycle. * **Jira panic fix** - Fixed a crash in the Jira webhook handler when Jira returned an empty response body on status change events. ### OS Packages * Added **Debian** support to the OS Package Registry. Debian bookworm and bullseye packages are now available via the Root package registry. See [Debian](/os-packages/debian). *** ## January 2026 ### OS Packages * Added **Alpine** and **Ubuntu** getting started guides. Root-patched OS packages for Alpine (3.18, 3.19, 3.20) and Ubuntu (22.04, 24.04) are now available. See [Alpine](/os-packages/alpine) and [Ubuntu](/os-packages/ubuntu). ### Platform * OS Package Registry documentation and navigation added to the Root docs site. *** ## December 2025 ### Image Catalog * **500+ images available** - Root Image Catalog now covers over 500 Docker Hub image families, including all major language runtimes, databases, web servers, and infrastructure tools. ### API * Public patch feed (`/external/patch_feed`) now supports filtering by `os_distro_major` and `package_src_name` parameters in addition to `ecosystem`. * OSV-format feed (`/external/osv/{id}.json`) added, providing OSV-compatible vulnerability records for all Root-tracked CVEs. *** ## November 2025 ### Platform * **JFrog Artifactory integration** - Root Image Catalog can now be configured as an upstream source in JFrog Artifactory. See [JFrog Artifactory](/integrations/jfrog-artifactory). * **Amazon ECR pull-through cache** - Added support for mirroring `cr.root.io` images into AWS ECR for private subnet access and local caching. See [Amazon ECR](/integrations/ecr). ### Root Library Catalog * Python package support expanded: pip, uv, and Poetry all now support transparent resolution through `pkg.root.io`. See the [Python integration guides](/rlc/python). * JavaScript support added: npm, pnpm, Yarn 1, and Yarn 3+ all supported. See [JavaScript](/rlc/javascript). * Java/Maven support added. See [Maven](/integrations/maven). # CLI Reference Source: https://docs.root.io/reference/cli The Root CLI tools for applying patches and managing registry configuration. ## rootio\_patcher `rootio_patcher` is Root's open-source CLI tool for applying security patches to your project's dependencies. It scans installed packages and applies fixes from Root's vulnerability database - modifying your `requirements.txt`, `package.json`, or `pom.xml` without changing package versions unless necessary. Source: [github.com/rootio-avr/rootio\_patcher](https://github.com/rootio-avr/rootio_patcher) For full documentation, see [Root Library Catalog Patcher](/rlc/patcher). ## Installation Download pre-built binaries from the [GitHub releases page](https://github.com/rootio-avr/rootio_patcher/releases): **Supported platforms:** Linux x86\_64, macOS (Apple Silicon, Intel), Windows x86\_64 Or build from source (requires Go): ```bash theme={null} git clone https://github.com/rootio-avr/rootio_patcher cd rootio_patcher go build -o rootio_patcher . ``` ## Authentication Set your API token before running any commands: ```bash theme={null} export ROOTIO_API_KEY=your-api-token ``` Obtain your API token from the Root platform under **Settings → Token Management → Generate API Token**. Optionally override the API endpoint: ```bash theme={null} export ROOTIO_API_URL=https://api.root.io # default ``` ## Commands ### Python (pip) ```bash theme={null} # Preview patches (dry-run mode - default) rootio_patcher pip remediate # Apply patches rootio_patcher pip remediate --dry-run=false # Specify a Python interpreter rootio_patcher pip remediate --python-path=/usr/bin/python3 --dry-run=false # Use Root.io aliased package names (default: true) rootio_patcher pip remediate --use-alias=true --dry-run=false ``` After applying patches, reinstall your packages: ```bash theme={null} pip install -r requirements.txt ``` ### JavaScript (npm / yarn / pnpm) ```bash theme={null} # Preview patches rootio_patcher npm remediate # Apply patches - specify your package manager rootio_patcher npm remediate --package-manager=npm --dry-run=false rootio_patcher npm remediate --package-manager=yarn --dry-run=false rootio_patcher npm remediate --package-manager=pnpm --dry-run=false ``` After applying, run your package manager's install: ```bash theme={null} npm install # or yarn install # or pnpm install ``` ### Java (Maven) ```bash theme={null} # Preview patches rootio_patcher maven remediate # Apply patches rootio_patcher maven remediate --dry-run=false # Specify a custom pom.xml path rootio_patcher maven remediate --file=path/to/pom.xml --dry-run=false ``` After applying, rebuild: ```bash theme={null} mvn clean install ``` ## Workflow The recommended workflow is always to preview before applying: ```bash theme={null} # Step 1: Preview rootio_patcher pip remediate # Review output - which packages will be patched, which CVEs addressed # Step 2: Apply rootio_patcher pip remediate --dry-run=false # Step 3: Reinstall pip install -r requirements.txt ``` ## Flags Reference | Flag | Default | Description | | ------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `--dry-run` | `true` | Preview changes without modifying files | | `--use-alias` | `true` | (pip) Use Root.io-branded package aliases | | `--python-path` | system Python | (pip) Path to Python interpreter | | `--package-manager` | - | (npm) Select `npm`, `yarn`, or `pnpm` | | `--file` | `pom.xml` | (maven) Path to Maven config file | | `--ignore` | - | Exclude `package@version` from patching (repeatable, comma-separated). Merged with a `.rootioignore` file. See [Ignoring Packages](/rlc/patcher#ignoring-packages). | ## Exit Codes When running in dry-run mode (the default), `rootio_patcher` exits with a code indicating the outcome. Use this to gate pipelines without modifying any files. | Exit code | Meaning | | --------- | ------------------------------------------------- | | `0` | No patches needed — all packages are up to date | | `1` | Error (bad config, API failure, unexpected panic) | | `2` | Patches are available — action required | ## GitHub Actions ### rootio-patch (vulnerability check) A reusable composite action runs `rootio_patcher` in dry-run mode and **fails the job** if patches are available (exit code 2). No files are modified. ```yaml theme={null} - uses: rootio-avr/rootio_patcher/.github/actions/rootio-patch@main with: api-key: ${{ secrets.ROOTIO_API_KEY }} ecosystem: npm # pip | npm | maven ``` **Inputs:** | Input | Required | Default | Description | | ------------------- | -------- | --------- | -------------------------------------------------- | | `api-key` | Yes | — | Root.io API key | | `ecosystem` | Yes | — | `pip`, `npm`, or `maven` | | `working-directory` | No | `.` | Repo subdirectory to run in | | `package-manager` | No | `npm` | *(npm)* `npm`, `yarn`, or `pnpm` | | `directory` | No | `.` | *(npm)* Project directory containing the lock file | | `python-path` | No | `python` | *(pip)* Path to Python interpreter | | `use-alias` | No | `true` | *(pip)* Use Root.io aliased packages | | `file` | No | `pom.xml` | *(maven)* Path to `pom.xml` | **Outputs:** | Output | Description | | ------------------- | --------------------------------------------------------------------- | | `patches-available` | `"true"` if patches were found, `"false"` if everything is up to date | **Environment variables:** Advanced settings are not action inputs — pass them as `env:` on the step: | Variable | Default | Description | | ---------------------- | --------------------- | ---------------------------------------------------------------------- | | `ROOTIO_API_URL` | `https://api.root.io` | Override the Root.io API endpoint | | `ROOTIO_PKG_URL` | `https://pkg.root.io` | Override the Root.io package registry URL | | `ROOTIO_PIP_INDEX_URL` | — | *(pip)* Full pip `--index-url`; bypasses `ROOTIO_PKG_URL` construction | | `LOG_LEVEL` | `info` | Logging verbosity: `debug`, `info`, `warn`, or `error` | ```yaml theme={null} - uses: rootio-avr/rootio_patcher/.github/actions/rootio-patch@main env: ROOTIO_PKG_URL: https://pkg.your-mirror.example.com ROOTIO_PIP_INDEX_URL: https://pkg.your-mirror.example.com/pypi/simple/ with: api-key: ${{ secrets.ROOTIO_API_KEY }} ecosystem: pip ``` **Example — block a PR if vulnerabilities exist:** ```yaml theme={null} name: Security Check on: [pull_request] jobs: vuln-check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: rootio-avr/rootio_patcher/.github/actions/rootio-patch@main with: api-key: ${{ secrets.ROOTIO_API_KEY }} ecosystem: npm package-manager: npm ``` **Example — warn without blocking:** ```yaml theme={null} - uses: rootio-avr/rootio_patcher/.github/actions/rootio-patch@main id: vuln-check continue-on-error: true with: api-key: ${{ secrets.ROOTIO_API_KEY }} ecosystem: npm - if: steps.vuln-check.outputs.patches-available == 'true' run: echo "Patches available — consider remediating soon." ``` ### rootio-remediation-action (container image patching) Use the [rootio-remediation-action](https://github.com/rootio-avr/rootio-remediation-action) to apply Root patches to container images in CI/CD: ```yaml theme={null} - name: Remediate image with Root uses: rootio-avr/rootio-remediation-action@v1 with: image_reference: your-registry/your-app:latest org_id: ${{ env.ROOTIO_ORG_ID }} api_token: ${{ secrets.ROOTIO_API_TOKEN }} registry_credentials_id: ${{ env.ROOTIO_REGISTRY_CREDENTIALS }} ``` **Outputs:** | Output | Description | | ---------------------- | -------------------------------------------------- | | `result_image` | The patched image name | | `process_status` | Overall remediation status | | `remediation_decision` | Whether the system proceeded with patching | | `image_created` | Boolean - whether a new patched image was produced | # Configuration Reference Source: https://docs.root.io/reference/configuration All configuration options for Root registry authentication, proxy settings, and CI/CD environment variables. This page documents all configuration options for connecting to Root's registries, including authentication, network settings, and recommended CI/CD variable names. ## Registry Configuration Root exposes two registries: | Registry | URL | Purpose | | -------------------- | ------------- | --------------------------------------------------- | | Root Image Catalog | `cr.root.io` | Container images (Docker/OCI) | | Root Library Catalog | `pkg.root.io` | Application packages (Python, JavaScript, Java, Go) | **Per-ecosystem package registry URLs:** | Ecosystem | Registry URL | | -------------------------- | ---------------------------------- | | Python (pip/uv/Poetry) | `https://pkg.root.io/pypi/simple/` | | JavaScript (npm/pnpm/Yarn) | `https://pkg.root.io/npm/` | | Java (Maven) | `https://pkg.root.io/maven/` | | Go (Go modules) | `https://pkg.root.io/gobinary` | **Per-ecosystem configuration file locations:** | Ecosystem | Config File | | --------- | --------------------------------- | | Docker | `~/.docker/config.json` | | pip | `~/.netrc` or `pip.conf` | | npm | `.npmrc` (project or global) | | Maven | `~/.m2/settings.xml` | | Gradle | `~/.gradle/gradle.properties` | | Poetry | `pyproject.toml` or `poetry.toml` | | uv | `~/.netrc` or `uv.toml` | | Yarn | `.yarnrc.yml` | | pnpm | `.npmrc` | | Go | `GOPROXY` environment variable | ## Authentication Configuration **Token format:** Root tokens are opaque strings used as passwords. There is no specific prefix or format requirement for registry tokens. API keys use the prefix `apik_`. **Token scopes:** A single Root token provides access to both `cr.root.io` and `pkg.root.io`. There are no separate per-registry tokens. **Per-registry credential configuration:** ```bash theme={null} # Docker docker login cr.root.io --username rootio --password $ROOT_TOKEN # npm npm config set //pkg.root.io/npm/:_authToken $ROOT_TOKEN # Maven (settings.xml) # Use ${env.ROOT_TOKEN} to read from environment ``` See [Authentication](/getting-started/authentication) for per-ecosystem setup instructions. ## Environment Variables The following environment variables are recognized by the Root CLI and registry integrations: Root uses two different tokens for two different purposes: | Token | Purpose | Where to get it | | --------------------------------- | ---------------------------------------------------------- | ------------------------------------------------ | | **Registry token** (`ROOT_TOKEN`) | Authenticates to `cr.root.io` and `pkg.root.io` registries | Root platform onboarding | | **API key** (`ROOTIO_API_KEY`) | Authenticates the `rootio_patcher` CLI to the Root API | Settings → Token Management → Generate API Token | These are separate credentials. You need both if you use both the registries and the patcher CLI. | Variable | Description | Default | | --------------------- | ------------------------------------------------------------------------------------- | ------------------------ | | `ROOT_TOKEN` | Registry token - used by Docker, pip, npm, Maven, etc. to pull from Root's registries | - | | `ROOTIO_API_KEY` | API key for `rootio_patcher` CLI and the Root API | - | | `ROOTIO_API_TOKEN` | Alternative name for the API key (used by the rootio-remediation-action) | - | | `ROOTIO_API_URL` | Override for the Root API endpoint | `https://api.root.io` | | `ROOT_API_URL` | Override for the Root API base URL (v1 path) | `https://api.root.io/v1` | | `ROOT_IMAGE_REGISTRY` | Override for the image registry URL | `cr.root.io` | | `ROOT_PKG_REGISTRY` | Override for the package registry URL | `pkg.root.io` | ## Proxy and Network Settings Root's registries support standard HTTP proxy configuration: ```bash theme={null} export HTTPS_PROXY=http://proxy.example.com:8080 export HTTP_PROXY=http://proxy.example.com:8080 export NO_PROXY=localhost,127.0.0.1,.internal.example.com ``` Docker respects these environment variables for registry pulls. Set them before running `docker pull` or in Docker's daemon configuration: ```json theme={null} { "proxies": { "default": { "httpProxy": "http://proxy.example.com:8080", "httpsProxy": "http://proxy.example.com:8080", "noProxy": "localhost,127.0.0.1" } } } ``` **TLS / custom certificates:** If your organization uses a TLS intercepting proxy or a private CA, configure Docker to trust your CA certificate: ```bash theme={null} # Place your CA cert in the Docker certs directory sudo mkdir -p /etc/docker/certs.d/cr.root.io sudo cp your-ca.crt /etc/docker/certs.d/cr.root.io/ca.crt ``` ## CI/CD Variable Reference Recommended secret names for common CI/CD systems: **GitHub Actions** (store in Repository or Organization Secrets): | Secret Name | Value | | ------------------ | -------------------------------------------------------------- | | `ROOT_TOKEN` | Your Root registry token (for `cr.root.io` / `pkg.root.io`) | | `ROOTIO_API_KEY` | Your Root API key (for `rootio_patcher` CLI) | | `ROOTIO_API_TOKEN` | Alternative name for API key (for `rootio-remediation-action`) | Usage: ```yaml theme={null} env: ROOT_TOKEN: ${{ secrets.ROOT_TOKEN }} ROOTIO_API_KEY: ${{ secrets.ROOTIO_API_KEY }} ``` **GitLab CI** (store in Project or Group CI/CD Variables, masked): | Variable Name | Value | | ---------------- | ------------------------------- | | `ROOT_TOKEN` | Your Root registry token | | `ROOTIO_API_KEY` | Your Root API key (for patcher) | Usage: ```yaml theme={null} before_script: - echo "$ROOT_TOKEN" | docker login cr.root.io --username rootio --password-stdin ``` **CircleCI** (store in Project Environment Variables): | Variable Name | Value | | ------------- | ------------------------ | | `ROOT_TOKEN` | Your Root registry token | **Jenkins** (store as a Secret Text credential): ```groovy theme={null} withCredentials([string(credentialsId: 'root-token', variable: 'ROOT_TOKEN')]) { sh 'echo "$ROOT_TOKEN" | docker login cr.root.io --username rootio --password-stdin' } ``` **HashiCorp Vault:** Store your Root token at a path like `secret/root/token` and retrieve it via Vault's CI/CD integrations. # FAQ Source: https://docs.root.io/reference/faq Frequently asked questions about Root, Root Image Catalog, Root Library Catalog, and the AVR pipeline. ## General ### What is Root? Root is a secure software supply platform. It delivers container images and application packages with vulnerabilities already remediated - so you consume the same open source you rely on today, but without the CVEs. Root's core technology is AVR (Agentic Vulnerability Remediation): a pipeline of AI agents that research, patch, test, and deliver fixes automatically. ### How is Root different from a vulnerability scanner? Scanners find vulnerabilities. Root fixes them. Instead of generating tickets and alert noise, Root applies Root Patches to the packages you consume before they reach your environment. You still get full transparency - SBOM, VEX, provenance - but the work of remediation happens on Root's side, not yours. ### Do I have to migrate my stack to use Root? No. Root works as a drop-in registry replacement. For containers, you change the registry prefix in your Dockerfile (`cr.root.io/` instead of bare Docker Hub references). For packages, you point your package manager at `pkg.root.io`. Package names, version numbers, tags, and APIs are identical. No application code changes are required. ### What open source ecosystems does Root support? **Container images:** Root Image Catalog (`cr.root.io`) covers 500+ image families - Python, Node, Nginx, Redis, PostgreSQL, and more. **Application packages:** Root Library Catalog (`pkg.root.io`) supports: * Python: pip, uv, Poetry * JavaScript: npm, pnpm, Yarn 1, Yarn 3+ * Java: Maven, Gradle *** ## Root Image Catalog ### What images are available? Root Image Catalog provides patched versions of popular Docker Hub images. See [Supported Images](/ric/supported-images) for the full list. Images include all major language runtimes, databases, web servers, and infrastructure tools. ### Do the images use the same tags? Yes. Tags are preserved. `cr.root.io/python:3.12-slim` behaves identically to `docker.io/python:3.12-slim` - same entrypoints, same environment variables, same behavior - with CVEs removed. ### What happens when a new CVE is published? AVR automatically detects the new vulnerability in subscribed images. The pipeline researches the fix, applies the smallest safe patch, validates it, and publishes the updated image at `cr.root.io`. Your next pull gets the patched version. No action required on your end. ### How long until a patched image is available after a CVE disclosure? Root's SLA commitments: | Severity | Patch Available Within | | -------- | ---------------------- | | Critical | 7 days | | High | 14 days | | Medium | 60 days | In practice, Root often patches Critical and High vulnerabilities significantly faster than the SLA. ### What security artifacts ship with each image? Every image at `cr.root.io` includes: * **SBOM** - full component inventory in SPDX or CycloneDX format * **VEX statement** - which CVEs were fixed, which are not applicable * **Provenance attestation** - cryptographic proof of Root's build pipeline *** ## Root Library Catalog ### How does Root patch packages without changing the version? Root applies backported patches - taking the security fix from a newer version and applying it to the exact version you declared. The version string stays the same; only the vulnerability is removed. This is the same technique Linux distributions use to maintain long-term support branches. ### Do I have to change my dependency files? For Python and Java, no - packages resolve transparently. For JavaScript, you add an `overrides` (npm), `pnpm.overrides` (pnpm), or `resolutions` (Yarn) field to `package.json` pointing vulnerable packages to their `@rootio/`-scoped equivalents. Your import statements don't change. ### Why does JavaScript use `@rootio/` scoped packages? The npm registry doesn't allow publishing patched versions under the original package name. Root publishes patched packages under the `@rootio/` scope and uses the package manager's override/resolution mechanism to transparently redirect resolution. Your code still imports `axios` - it just resolves to `@rootio/axios` under the hood. ### Is Gradle supported? Yes. Use the [Root.io Gradle Plugin](/integrations/gradle) — it automatically patches vulnerable dependencies at build time with no changes to your dependency declarations. *** ## Security and Compliance ### What is a Root Patch? A Root Patch is the smallest safe change that eliminates a known vulnerability from a package or image, applied in-place without forcing a version upgrade. Root uses two patch types: * **Backported patch** - a security fix from a newer version, applied to the version you're running * **Native distribution package upgrade** - the distribution's own updated package, applied when available and safe See [Root Patches](/concepts/root-patches) for the full explanation. ### What is a VEX statement? VEX (Vulnerability Exploitability eXchange) is a machine-readable document that communicates whether a known vulnerability in a component is actually exploitable. Root generates a VEX statement for every patched artifact, documenting which CVEs were fixed and asserting non-exploitability for remaining known findings. See [VEX Statements](/concepts/vex). ### Does Root provide SBOMs? Yes. Every artifact from `cr.root.io` and `pkg.root.io` ships with an SBOM in SPDX or CycloneDX format. SBOMs are updated whenever a Root Patch is applied. See [SBOMs](/concepts/sbom). ### Can Root help us meet FedRAMP / SOC 2 / PCI-DSS requirements? Root's continuous vulnerability remediation and audit-ready artifacts (SBOM, VEX, provenance) support common compliance frameworks. See [Trust & Compliance](/compliance/overview) for details, or [contact Root](https://root.io) for specific compliance use cases. ### What happens if Root can't fix a vulnerability? If no upstream fix or applicable patch candidate exists, the vulnerability enters **No Fix Available** status. Root continues monitoring and will begin remediation automatically as soon as an upstream fix becomes available. See [Vulnerability Statuses](/concepts/vulnerability-statuses). *** ## Operations ### Do I need to change my CI/CD pipeline? Typically no. You update the registry reference in your Dockerfile or package manager configuration, and existing pipeline steps continue to work. See the [Integrations](/integrations/overview) section for CI/CD-specific guidance. ### Can I use Root with a private registry (ECR, JFrog Artifactory, etc.)? Yes. Root's registries are designed to work as an upstream source for private registries. You can mirror or proxy `cr.root.io` and `pkg.root.io` through your internal registry. See [Amazon ECR](/integrations/ecr) and [JFrog Artifactory](/integrations/jfrog-artifactory) for setup guides. ### How do I get access to Root? [Contact Root](https://root.io) to request access. You'll receive credentials for `cr.root.io` and `pkg.root.io` along with onboarding support. # Glossary Source: https://docs.root.io/reference/glossary Definitions for key terms used throughout Root's documentation. ## AVR - Agentic Vulnerability Remediation Root's core technology. A fleet of AI agents - with human-in-the-loop oversight - that automates the full lifecycle of vulnerability remediation: research, patch, test, and deliver. See [AVR](/concepts/avr). ## Backported Patch A fix taken from a newer version of a package and applied to an older version, preserving the version you declared while eliminating the vulnerability. One of two Root Patch types. See [Root Patches](/concepts/root-patches). ## Native Distribution Package Upgrade A vulnerability fix delivered by applying the package maintainer's or Linux distribution's own updated package - used when an upstream fix is available and safe to apply. One of two Root Patch types. See [Root Patches](/concepts/root-patches). ## RIC - Root Image Catalog Root's secure container image registry at `cr.root.io`. Provides drop-in replacements for standard base images with vulnerabilities patched by AVR. See [Root Image Catalog](/ric/overview). ## RLC - Root Library Catalog Root's secure application package registry at `pkg.root.io`. Serves patched versions of Python, JavaScript, Java, and Go packages. See [Root Library Catalog](/rlc/overview). ## Root Patch The unit of remediation in Root's platform. The smallest safe change that eliminates a known vulnerability in a package or image, applied in-place without forcing version upgrades. See [Root Patches](/concepts/root-patches). ## SBOM - Software Bill of Materials A machine-readable inventory of all components in a software artifact. Root generates and maintains SBOMs for every artifact in its registries, updated whenever a Root Patch is applied. See [SBOMs](/concepts/sbom). ## Shift Out Root's movement and philosophy: open source should arrive clean and secure by default, shifting remediation out of Engineering and AppSec workflows entirely. ## VEX - Vulnerability Exploitability eXchange A machine-readable document that asserts whether a known vulnerability in a specific software component is actually exploitable. Root generates VEX statements alongside every Root Patch. See [VEX Statements](/concepts/vex). ## Vulnerable Package A package or image component that contains a known security vulnerability (CVE). Root's preferred term - not "infected package." # Reports & Insights Overview Source: https://docs.root.io/reports/overview Visibility into vulnerability coverage, patch status, SBOMs, and VEX statements across your Root-managed supply chain. Root provides a suite of reports and dashboards that give AppSec and Security Leadership continuous visibility into the state of your supply chain - what's been patched, what's still exposed, and how your posture has changed over time. ## Available Reports | Report | Description | | ------------------------------------------------------- | -------------------------------------------------------------------- | | [Vulnerability Reports](/reports/vulnerability-reports) | CVE coverage and patch status across all adopted images and packages | | [SBOM Reports](/reports/sbom-reports) | Current SBOMs for every artifact in your environment | | [VEX Reports](/reports/vex-reports) | VEX statement coverage and scanner integration | | [Dashboard & Metrics](/platform/dashboard) | CVE backlog trends, MTTR, and patch coverage metrics | ## Accessing Reports **Root platform UI:** The dashboard and all report views are accessible from the Root platform at `app.root.io`. Log in with your organization credentials. The left sidebar provides navigation to: * **Dashboard** - fleet-wide metrics at a glance * **Vulnerabilities** - full CVE table with filtering and export * **Reports** - vulnerability reduction graphs and per-artifact views * **Subscriptions** - per-image and per-package patch status **Root API:** Every report is accessible programmatically via the Root REST API at `https://api.root.io/v1`. Authenticate with a Bearer token: ```bash theme={null} curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/patches?ticket_statuses=done&limit=100" ``` See the [API Reference](/reference/api) for the full endpoint list. **Export formats:** | Format | Available From | | ---------------- | --------------------------------------- | | CSV | Vulnerabilities page (UI export button) | | JSON | API endpoints | | CycloneDX / SPDX | SBOM and VEX download endpoints | **Webhook notifications:** Root can deliver patch events to a webhook endpoint in real time - when a patch is applied to a subscribed artifact, Root sends a notification to your endpoint. Integrate with Slack, PagerDuty, Jira, or your SIEM. [Contact Root](https://root.io) to configure webhooks. ## Integrating with Your Security Stack Root reports are designed to integrate with existing security tooling: **Vulnerability scanners (Grype, Trivy):** Import Root SBOM and VEX files into your scanner to suppress findings for patched CVEs. See [VEX Reports](/reports/vex-reports) for scanner-specific instructions. **ASPM platforms (Wiz, Orca, Snyk):** Use VEX statements to update finding status in your ASPM. Root's VEX marks patched CVEs as `fixed`, suppressing them from active alert queues. **SIEM (Splunk, Elastic):** Poll the Root API on a schedule to ingest patch events. Use the `/patches` endpoint filtered by `updated_at` to get incremental updates. **Dependency-Track:** Import Root SBOMs (CycloneDX format) directly into Dependency-Track projects for continuous monitoring and policy evaluation. **Ticketing (Jira, ServiceNow):** Use webhooks or API polling to automatically close vulnerability tickets when Root delivers a patch. # SBOM Reports Source: https://docs.root.io/reports/sbom-reports Accessing and exporting SBOMs for every image and package managed by Root. Root maintains a current SBOM for every artifact in its registries. SBOMs are updated automatically when Root Patches are applied and are available for download at any time. ## SBOM Report Types Root generates SBOMs at two levels: **Per-image SBOM:** A complete package inventory for a specific container image tag. Includes all OS packages, language runtimes, and installed application dependencies found in the image - both before and after Root Patches are applied. The post-patch SBOM reflects the current patched state. **Per-package SBOM:** For application packages on `pkg.root.io`, a component-level inventory of what's in the patched package version. Both types are updated every time a new Root Patch is applied to the artifact. ## Accessing SBOMs **Via the Root platform UI:** 1. Navigate to your subscribed image or package 2. Click the **SBOM** button in the artifact panel 3. The SBOM downloads directly to your browser **Via the Root API:** For container images: ```bash theme={null} # Get SBOM download URL for an image tag curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/images/tags/{rrtID}/sbom" # The response includes a presigned URL - fetch the SBOM from it: curl -o sbom.json "https://..." ``` For application packages (via Package Catalog): ```bash theme={null} curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://pkg.root.io/packages/ecosystems/{ecosystem}/packages/{name}/versions/{version}/details" ``` **OCI annotations (for container images):** SBOMs are attached to images as OCI annotations and can be retrieved using `cosign` or `oras`: ```bash theme={null} # Using cosign cosign download attestation cr.root.io/python:3.12-slim | \ jq '.payload | @base64d | fromjson | .predicate' # Using oras oras discover cr.root.io/python:3.12-slim ``` ## SBOM Formats Root generates SBOMs in two industry-standard formats: | Format | Version | Use Case | | ------------- | ------- | ---------------------------------------------------------------------- | | **CycloneDX** | 1.5 | Preferred for vulnerability analysis tooling (Grype, Dependency-Track) | | **SPDX** | 2.3 | Preferred for compliance and legal workflows | **Root-specific fields:** * `rootio:patch_applied` - indicates which Root Patch was applied to a component * `rootio:original_version` - the original vulnerable version before patching * `rootio:avr_id` - the AVR pipeline run that produced this SBOM Both formats include standard fields: component name, version, package URL (PURL), license, and known CVE references. ## Continuous SBOM Updates SBOMs are versioned - a new SBOM is generated each time Root applies a patch to an artifact. **Detecting changes between versions:** Each SBOM includes a `timestamp` field reflecting when it was generated. Compare SBOMs over time to track exactly which packages changed and when: ```bash theme={null} # Compare two SBOMs using a diff tool diff <(jq '.components | sort_by(.name)' sbom-before.json) \ <(jq '.components | sort_by(.name)' sbom-after.json) ``` The Root platform's Patch Explorer provides a built-in before/after comparison view for each patch event. ## Integrating SBOMs with External Tools **Grype (vulnerability scanning):** ```bash theme={null} grype sbom:sbom.json ``` Root's VEX statements can be passed alongside the SBOM to suppress already-patched findings: ```bash theme={null} grype sbom:sbom.json --vex vex.json ``` **Trivy:** ```bash theme={null} trivy sbom sbom.json ``` **Dependency-Track:** Import Root SBOMs directly into Dependency-Track for continuous monitoring: 1. In Dependency-Track, navigate to **Projects → Import BOM** 2. Select your Root SBOM file (CycloneDX format) 3. Dependency-Track automatically correlates components against its vulnerability database **Anchore / Syft:** Root SBOMs are compatible with Syft's JSON schema and can be ingested by Anchore Enterprise for policy evaluation. # VEX Reports Source: https://docs.root.io/reports/vex-reports Accessing and using Root's VEX statements to suppress patched findings in vulnerability scanners. Root generates VEX statements for every patched vulnerability, enabling your scanners to distinguish between unaddressed CVEs and those already fixed by Root. This eliminates noise in scanner output and keeps compliance reports accurate. ## VEX Statement Coverage Root generates a VEX statement for every CVE it remediates. When AVR applies a Root Patch to an artifact: 1. The patch is validated and delivered 2. A VEX statement is generated asserting non-exploitability for the patched CVE 3. The VEX statement is attached to the artifact and made available via API and the Root platform VEX statements are generated within minutes of patch delivery. Every artifact from `cr.root.io` and `pkg.root.io` includes an up-to-date VEX statement covering all CVEs Root has addressed. ## Accessing VEX Statements **Via the Root platform UI:** 1. Navigate to your subscribed image or library 2. Click the **VEX** button in the artifact panel 3. The VEX document downloads to your browser **Via the Root API:** For container images: ```bash theme={null} # Get VEX download URL for an image tag curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/images/tags/{rrtID}/vex" # The response is a presigned URL - fetch the VEX from it: curl -o vex.json "https://..." ``` For AVR artifacts (image vulnerability remediations): ```bash theme={null} curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/avrs/{avrID}/artifacts/vex" ``` **OCI annotations (container images):** VEX statements are attached as OCI annotations and can be retrieved using standard tooling: ```bash theme={null} # Using cosign cosign verify-attestation --type vex cr.root.io/python:3.12-slim # Using oras oras pull cr.root.io/python:3.12-slim --media-type application/vnd.cyclonedx+json ``` ## VEX Formats Root generates VEX statements in two formats: | Format | Standard | Notes | | ----------------- | ------------- | ---------------------------------- | | **CycloneDX VEX** | CycloneDX 1.5 | Preferred - widest scanner support | | **OpenVEX** | OpenVEX 0.2 | CISA-sponsored open standard | Both formats carry the same information. Choose based on your tooling's support. **Root's justification vocabulary:** Root uses the following VEX status values for patched vulnerabilities: * **`not_affected`** - the CVE is not exploitable in this artifact (e.g., the vulnerable code path is not reachable) * **`fixed`** - the CVE was present and Root applied a patch; the vulnerability is resolved * **`in_triage`** - Root is actively researching the vulnerability * **`affected`** - the vulnerability is present and awaiting a patch (rare - only when a patch is still being developed) ## Using VEX with Scanners **Grype:** ```bash theme={null} # Pass VEX document to suppress patched findings grype cr.root.io/python:3.12-slim --vex vex.json # Or use the SBOM + VEX together grype sbom:sbom.json --vex vex.json ``` Grype 0.72.0+ supports VEX natively. Findings marked `fixed` or `not_affected` in the VEX are suppressed from results. **Trivy:** ```bash theme={null} # Trivy VEX support (v0.46.0+) trivy image --vex vex.json cr.root.io/python:3.12-slim # Or with a local SBOM trivy sbom --vex vex.json sbom.json ``` **Snyk:** Use Snyk's suppression API to mark patched findings as resolved, referencing the Root VEX statement as evidence: ```bash theme={null} snyk ignore --id=SNYK-VULN-ID \ --reason="Patched by Root - see VEX statement" \ --expiry=2099-12-31 ``` **Wiz / Orca:** Import Root VEX statements via the platform's SBOM/VEX upload interface. Both platforms support CycloneDX VEX for suppressing findings. ## VEX in Compliance Workflows VEX statements provide audit-ready evidence that vulnerabilities have been addressed. For compliance packages: 1. **Download the current VEX** for each artifact in scope (via API or UI) 2. **Include the VEX** alongside the SBOM in your compliance evidence package 3. **Reference the VEX** in scanner configurations to show auditors that findings are suppressed for valid reasons For each fixed CVE, the VEX statement includes: * The CVE identifier * The artifact (image or package) the statement applies to * The justification (`fixed`) * The timestamp when the fix was applied * The Root Patch reference (links to provenance) This gives auditors traceable, verifiable evidence that the vulnerability was remediated - not just suppressed without justification. # Vulnerability Reports Source: https://docs.root.io/reports/vulnerability-reports Per-artifact and fleet-wide reports on CVE coverage and Root Patch status. Vulnerability reports give you a real-time view of every known CVE across your Root-managed images and packages - which are patched, which are pending, and which have no fix available yet. ## What's Included Each vulnerability report includes: **Per-CVE status:** | Status | Meaning | | ---------------------- | ---------------------------------------------------------------------- | | **Fixed** | Root has applied a patch; the CVE is no longer exploitable | | **Under SLA** | Root is actively working on a patch within the committed SLA | | **No Fix Available** | No upstream fix exists yet; Root is monitoring | | **Not Affected (VEX)** | The CVE exists in a dependency but is not exploitable in this artifact | **Per-entry fields:** * CVE ID (e.g., `CVE-2024-1234`) * Severity: Critical, High, Medium, Low * CVSS score * Package name, version, and ecosystem (PyPI, APK, APT, npm, Maven, Go) * OS distro and release * Number of affected assets in your environment * SLA deadline (for CVEs under active remediation) * Date patched (for fixed CVEs) ## Report Format **Web UI:** The Vulnerabilities page displays an interactive table with all CVEs across your subscribed artifacts. Columns include CVE ID, ecosystem, package, version, OS distro, affected asset count, severity, CVSS score, and SLA status. **CSV export:** Download the current report as a CSV file from the Vulnerabilities page. The export includes all columns visible in the table and reflects your active filters. **JSON (API):** The API returns structured JSON with the same fields, suitable for ingestion into SIEM, ASPM, or ticketing systems. ## Accessing Reports **Via the Root platform UI:** 1. Navigate to **Vulnerabilities** in the sidebar 2. View CVEs grouped by status: **Fixed**, **Under SLA**, **No Fix Available** 3. Use the search bar to find a specific CVE ID 4. Click any CVE to see which images and packages are affected The **Reports** page provides a vulnerability reduction graph - a before/after view showing how many CVEs Root has eliminated across your subscribed artifacts. **Via the Root API:** ```bash theme={null} # List patches (fixed CVEs) for your organization curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/patches?ticket_statuses=done&order=created_at:desc&limit=100" # Filter by severity curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/patches?severities=critical,high&ticket_statuses=done" # Get patch details for a specific CVE curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/patches?cve_id=CVE-2024-1234" ``` **Public patch feed** (no auth required): ```bash theme={null} # All patches for a specific ecosystem curl "https://api.root.io/external/patch_feed?ecosystem=alpine" curl "https://api.root.io/external/patch_feed?ecosystem=debian" curl "https://api.root.io/external/patch_feed?ecosystem=pypi" ``` ## Filtering and Scoping **In the UI**, filter by: * **Package name** - find all CVEs in a specific library * **Ecosystem** - narrow to PyPI, APK, APT, npm, Maven, Go * **Severity** - Critical, High, Medium, Low, Unknown * **SLA status** - Met, Active (under SLA), Breached, Not Applicable * **Fix status** - Fixed, Not Fixed **Via the API**, use query parameters: ```bash theme={null} # Filter by ecosystem and severity curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/patches?ecosystem=pypi&severities=critical,high" # Filter by package curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/patches?package_src_name=requests" # Filter by CVE status curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/patches?ticket_statuses=open,in_progress" # Paginate results curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/patches?limit=100&after={cursor}" ``` ## Integrating with SIEM and ASPM **Webhook delivery:** Root can push vulnerability status updates to a webhook endpoint whenever a patch is applied. This enables real-time integration with ticketing and SIEM systems. **Splunk / Elastic:** Use the API to pull patch and vulnerability data on a schedule and ingest it into your SIEM: ```bash theme={null} # Example: poll every 15 minutes for newly patched CVEs curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/patches?ticket_statuses=done&order=updated_at:desc&limit=50" ``` **Wiz / Orca / Snyk:** Export vulnerability reports and VEX statements from Root and import them into your ASPM platform to update finding status and suppress patched CVEs from active alert queues. See [VEX Reports](/reports/vex-reports) for scanner-specific suppression instructions. # FIPS Images Source: https://docs.root.io/ric/fips-images FIPS 140-3 validated container images for regulated environments, with wolfSSL and supply chain attestations. Root provides FIPS 140-3 validated base images for workloads running in regulated environments - FedRAMP, DoD, financial services, and healthcare. These images use wolfSSL FIPS v5.8.2 (CMVP Certificate [#4718](https://csrc.nist.gov/projects/cryptographic-module-validation-program/certificate/4718)) as the cryptographic provider. ## Cryptographic Profile ### Approved Algorithms | Algorithm | Use Case | | ------------------------- | ----------------------------------- | | AES-128/256 (GCM, CBC) | Symmetric encryption | | SHA-256, SHA-384, SHA-512 | Hashing | | RSA-2048/3072/4096 | Asymmetric key exchange and signing | | ECDSA (P-256, P-384) | Elliptic curve signing | | HMAC-SHA-256/384/512 | Message authentication | ### Blocked Algorithms SHA-1 and MD5 are blocked at the library level. This is stricter than the base FIPS 140-3 standard, which permits SHA-1 in some legacy contexts. Applications that depend on SHA-1 (older TLS configurations, legacy JWT signing, some Git operations) will fail at runtime. Blocking SHA-1 is technically outside the FIPS 140-3 approved operating mode. If your compliance requirement demands strict adherence to the approved algorithm list without additional restrictions, contact Root to discuss a build variant without the SHA-1 block. ## Supply Chain Artifacts Every FIPS image ships with a full set of supply chain attestations: | Artifact | Format | Description | | ---------- | ------- | ------------------------------------------------------------ | | SBOM | SPDX | Full package inventory of OS packages, wolfSSL, and runtime | | VEX | OpenVEX | Vulnerability exploitability statements for known CVEs | | Provenance | SLSA | Build provenance attestation linking the image to its source | ### Downloading the SBOM ```bash theme={null} # Via Root API curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/images/tags/{rrtID}/sbom" | jq '.url' | xargs curl -o fips-sbom.spdx.json ``` ## STIG Compatibility FIPS images include an OpenSCAP baseline scan against the STIG profile for Ubuntu 22.04. The scan output is available as an artifact alongside the SBOM. This covers the OS-level hardening requirements separate from the cryptographic module certification. ## Using FIPS Images Switch the base image in your Dockerfile: ```dockerfile theme={null} # Before FROM ubuntu:22.04 # After - FIPS validated FROM cr.root.io/ubuntu-fips-go:v1.0.0-ubuntu-22.04 ``` Pull the image after authenticating: ```bash theme={null} echo "$ROOT_TOKEN" | docker login cr.root.io --username rootio --password-stdin docker pull cr.root.io/ubuntu-fips-go:v1.0.0-ubuntu-22.04 ``` ## Attestation Verification Workflow A reference GitHub Actions workflow for verifying all attestations before deployment: ```yaml theme={null} - name: Verify FIPS image attestations run: | IMAGE="cr.root.io/ubuntu-fips-go:v1.0.0-ubuntu-22.04" # Download and inspect SBOM cosign download attestation "$IMAGE" | \ jq '.payload | @base64d | fromjson | .predicate' > sbom.spdx.json # Verify SLSA provenance cosign verify-attestation "$IMAGE" \ --type slsaprovenance \ --certificate-identity-regexp="https://github.com/rootio-avr/" \ --certificate-oidc-issuer="https://token.actions.githubusercontent.com" ``` The full reference workflow (including VEX verification and OpenSCAP report download) is available at [github.com/rootio-avr/fips-attestations](https://github.com/rootio-avr/fips-attestations). # Getting Started with RIC Source: https://docs.root.io/ric/getting-started Subscribe, authenticate, pull your first secure image, and verify CVE remediation with Trivy. This guide walks through subscribing to an image in Root Image Catalog, authenticating to `cr.root.io`, pulling a secure image, and verifying its patch coverage. ## Prerequisites * Docker Desktop (macOS) or Docker Engine (Linux) installed and running * Access to Root Image Catalog - [contact Root](https://root.io) to get credentials * A scanner for verification (recommended: [Trivy](https://trivy.dev) - `brew install trivy`) ## Step 1: Subscribe to an Image Subscribing to an image activates continuous scanning, SLA-backed remediation, and notifications for that image. Root will begin monitoring it for new CVEs and automatically patch them according to the remediation SLA.\* 1. Open **Image Catalog** in the Root platform UI 2. Find the image family you want (for example, **Python 3.12**) 3. Click **Subscribe** 4. Verify it appears in your **Inventory** \* Continuous scanning, SLA-backed remediation, and notifications are available on paid plans only and are not included in free trials. ## Step 2: Authenticate to cr.root.io Generate an API token from the Root UI, then authenticate Docker: ```bash theme={null} export ROOT_TOKEN="your-token-here" echo "$ROOT_TOKEN" | docker login cr.root.io -u root --password-stdin ``` You can also use **Configure Catalog Access** in the Root UI for step-by-step credential instructions. ## Step 3: Pull a Secure Image Replace your existing image reference with the Root equivalent. Tags are identical: ```bash theme={null} # Standard image docker pull python:3.12 # Root secure image - same tag, zero Critical/High CVEs docker pull cr.root.io/python:3.12 ``` ## Step 4: Update Your Dockerfile ```dockerfile theme={null} # Before FROM python:3.12 # After FROM cr.root.io/python:3.12 ``` No other changes required. ## Step 5: Verify with Trivy Run a side-by-side scan to confirm vulnerability reduction: ```bash theme={null} # Scan the standard image trivy image python:3.12 # Typical result: ~1,300 vulnerabilities # Scan the Root image trivy image cr.root.io/python:3.12 # Typical result: zero Critical/High vulnerabilities ``` Some low-severity findings may still appear in scanner output. Download the SBOM and VEX artifacts from the Root UI or API to provide auditors with full remediation documentation - VEX statements tell scanners like Trivy which findings are fixed and why they're not exploitable. ## Next Steps See all available image families and tags. Learn how patches are applied and what artifacts ship with each image. # Notifications Source: https://docs.root.io/ric/notifications Get notified when Root creates a new remediated image tag - via webhook or Slack. When Root remediates a container image and creates a new Root Remediated Tag (RRT), it can notify you - via a webhook to an HTTPS endpoint you control, or via a Slack message to your workspace. ## Use Cases * **Auto-mirror to a private registry** - copy new remediated images to Amazon ECR, JFrog Artifactory, or any other registry as soon as Root publishes them * **Trigger CI/CD pipelines** - kick off a rebuild or redeploy whenever a base image is patched * **Audit and logging** - record remediation events in your own systems ## How It Works 1. You register a webhook endpoint URL with Root and specify which event types to subscribe to 2. When a new RRT is created, Root sends a signed HTTP `POST` to your endpoint 3. Your endpoint verifies the signature and processes the event ## Setting Up a Webhook Webhook subscriptions are managed via the Root API. UI support is coming soon. ### Step 1 - Register your endpoint ```sh theme={null} curl -X POST https://api.root.io/v3/settings/webhooks \ -u ":" \ -H "Content-Type: application/json" \ -d '{ "url": "https://your-endpoint.example.com/", "description": "Mirror to ECR", "event_types": ["io.root.cr.image.created.v1"] }' ``` The response body includes a `secret` field - this is your **webhook signing secret**. Copy it now; Root uses it to sign every request so your endpoint can verify it came from Root. ### Step 2 - Verify webhook signatures Every webhook Root sends is signed with HMAC-SHA256 following the [Standard Webhooks](https://www.standardwebhooks.com/) specification. Your endpoint should verify the signature on every incoming request before acting on it. The signature is included in the `webhook-signature` header. Requests with timestamps older than 5 minutes should be rejected to prevent replay attacks. If you're using the [ecr-mirror-lambda](#example-auto-mirror-to-amazon-ecr) reference implementation, signature verification is handled for you automatically. ## Event Types | Event type | When it fires | | ----------------------------- | ------------------------------------------ | | `io.root.cr.image.created.v1` | A new Root Remediated Tag has been created | ## Testing a Webhook Before relying on your endpoint in production, you can trigger a test delivery against any existing webhook subscription using a real Root Remediated Tag (RRT). ```sh theme={null} curl -X POST https://api.root.io/v3/settings/webhooks//test-tag-created \ -u ":" \ -H "Content-Type: application/json" \ -d '{ "root_registry_tag_id": "" }' ``` Root will send a real signed `POST` to your endpoint using the specified RRT and return the delivery result: | Field | Description | | ----------------- | ----------------------------------------------- | | `id` | Delivery attempt ID | | `subscription_id` | The webhook subscription that was tested | | `event_id` | ID of the event that was sent | | `status` | `pending`, `delivered`, or `failed` | | `http_status` | HTTP status code returned by your endpoint | | `sent_at` | Timestamp of the delivery attempt | | `error_reason` | Human-readable error message if delivery failed | | `type` | Event type that was delivered | **Error responses:** * `404` — The subscription ID or RRT ID was not found * `422` — The subscription does not subscribe to the `io.root.cr.image.created.v1` event type ## Example: Auto-Mirror to Amazon ECR [ecr-mirror-lambda](https://github.com/rootio-avr/ecr-mirror-lambda) is a ready-to-deploy AWS Lambda that receives Root webhooks and automatically copies each new remediated image into your ECR. Deploy it once with Terraform and every new RRT will appear in your ECR without any manual steps. Deploy a pre-built Lambda that mirrors Root remediated images to your ECR automatically. The Lambda supports an optional **repo allowlist**: set `allowed_repos` in `terraform.tfvars` (e.g. `["python", "golang"]`) to mirror only specific image repos. Events for unlisted repos are silently ignored. Omit the variable to mirror everything. When an image arrives for an ECR repo that doesn't exist yet (e.g. `root-mirror/python`), the Lambda creates it automatically and copies the repository policy and lifecycle policy from the base repo (`root-mirror`). ## Slack Notifications Root can send a Slack notification to your workspace when a new remediated image is available for your account. Each notification includes the image name and tag, so your team knows immediately when a patched version is ready to pull. Slack notifications require a one-time setup by the Root team. [Contact us](https://www.root.io/contact) to get started. # Root Image Catalog Overview Source: https://docs.root.io/ric/overview Secure container images at cr.root.io - drop-in replacements for Docker Hub with zero Critical/High CVEs, continuously maintained by AVR. Root Image Catalog (RIC) provides secure container images that work as drop-in replacements for Docker Hub images. You get the same images - Python, Node, Nginx, Redis, and more - with CVEs remediated, continuously maintained, and delivered with zero Critical/High vulnerabilities. ## What Root Image Catalog Provides * **The same images** you pull from Docker Hub today - same tags, same behavior * **CVEs remediated** - typically 2+ Critical and 15+ High vulnerabilities reduced to zero * **Continuously maintained** - when new CVEs are disclosed, AVR patches them automatically * **SLA-backed remediation** - Critical CVEs patched within hours, not days or weeks * **No breaking changes** - same tags, same compatibility, no ecosystem migration required ## Who Should Use RIC Root Image Catalog is for teams that: * Need secure base images without rebuilding applications * Want continuous security maintenance without manual patching * Can't absorb breaking changes from forced upstream upgrades * Need verifiable security artifacts (SBOM, VEX, provenance) for compliance ## RIC vs. Standard Images ### vs. Official Images (Docker Hub) | | Docker Hub | Root Image Catalog | | ------------------- | -------------------------------- | -------------------------- | | Vulnerability count | 2+ Critical, 15+ High on average | Zero Critical/High | | Patching | Manual - your responsibility | Automatic via AVR | | Remediation SLA | None | Critical CVEs within hours | | Security artifacts | None | SBOM, VEX, Provenance | ### vs. Other Secure Image Providers | | Other Providers | Root Image Catalog | | ------------------ | ------------------- | -------------------------------------- | | Approach | Rebuild from source | Patch in place | | Breaking changes | Possible | None - drop-in replacement | | Registry migration | Required | Not required | | Version support | Limited | Universal - any version you're running | | Ecosystem changes | Required | None | ## Continuous Maintenance Root Image Catalog provides ongoing security coverage - not a one-time snapshot: * **Automatic scanning** - all subscribed images are scanned continuously for new CVEs * **Automatic patching** - when new vulnerabilities are detected, AVR remediates them without any action on your part * **Same tags maintained** - updated images keep the same tags, so your existing references stay valid * **SLA-backed** - Critical CVEs remediated within hours; High within 14 days; Medium within 60 days See [Vulnerability Statuses](/concepts/vulnerability-statuses) for the full SLA breakdown. ## Security Artifacts Every image from `cr.root.io` ships with: * **SBOM** - complete inventory of all components and their versions, including patched packages * **VEX statement** - records which CVEs were fixed and confirms non-exploitability of others * **Provenance** - cryptographic attestation proving the image came from Root's AVR pipeline Authenticate and pull your first secure image. Browse available image families and tags. # Pulling Images Source: https://docs.root.io/ric/pulling-images How to pull secure images from cr.root.io using Docker, containerd, and Kubernetes. Images in Root Image Catalog are pulled using standard container tooling. The registry URL is `cr.root.io` and tags mirror Docker Hub exactly. ## Registry URL Structure Root images follow this pattern: ``` cr.root.io/{image}:{tag} ``` **Examples:** | Docker Hub | Root Image Catalog | | ------------------ | ----------------------------- | | `python:3.12-slim` | `cr.root.io/python:3.12-slim` | | `node:20-alpine` | `cr.root.io/node:20-alpine` | | `nginx:1.25` | `cr.root.io/nginx:1.25` | | `postgres:16` | `cr.root.io/postgres:16` | | `redis:7-alpine` | `cr.root.io/redis:7-alpine` | The only change is the registry prefix. Tags, entrypoints, environment variables, and behavior are identical to Docker Hub. ## Tagging Conventions Root Image Catalog preserves Docker Hub tag conventions exactly: * **Version tags** - `python:3.12`, `node:20`, `nginx:1.25` - track the same upstream release * **Variant tags** - `-slim`, `-alpine`, `-bookworm` - same variant as Docker Hub * **Major tags** - `python:3`, `node:20` - updated when the latest patch-level is updated * **`latest`** - tracks the current default upstream image Tags are kept in sync with upstream. When new upstream versions are released, Root adds them to the catalog. When Root Patches are applied, the same tags are updated in place - your existing references continue to work. ## Pulling with Docker **Authenticate first:** ```bash theme={null} echo "$ROOT_TOKEN" | docker login cr.root.io --username rootio --password-stdin ``` **Pull an image:** ```bash theme={null} docker pull cr.root.io/python:3.12-slim docker pull cr.root.io/node:20-alpine docker pull cr.root.io/postgres:16-alpine ``` **Pull a specific architecture:** ```bash theme={null} docker pull --platform linux/amd64 cr.root.io/python:3.12-slim docker pull --platform linux/arm64 cr.root.io/python:3.12-slim ``` Specifying `--platform` is recommended when running the mirror script on macOS or ARM hosts to avoid pulling the wrong variant. **Verify the pull:** ```bash theme={null} docker inspect cr.root.io/python:3.12-slim | grep -E '"RepoDigests|"Os|"Architecture' ``` ## Pulling with containerd / nerdctl *\[nerdctl pull, containerd config for cr.root.io mirror coming soon]* ## Pulling in Kubernetes See [Kubernetes Integration](/integrations/kubernetes) for full setup. In brief: **Create the ImagePullSecret:** ```bash theme={null} kubectl create secret docker-registry root-registry-credentials \ --docker-server=cr.root.io \ --docker-username=rootio \ --docker-password=YOUR_ROOT_TOKEN ``` **Reference in your Pod:** ```yaml theme={null} spec: imagePullSecrets: - name: root-registry-credentials containers: - name: app image: cr.root.io/python:3.12-slim ``` ## Digest Pinning For reproducible, immutable deployments, pin to a specific image digest instead of a tag: **Get the digest:** ```bash theme={null} docker pull cr.root.io/python:3.12-slim docker inspect --format='{{index .RepoDigests 0}}' cr.root.io/python:3.12-slim # cr.root.io/python@sha256:abc123... ``` **Pull by digest:** ```bash theme={null} docker pull cr.root.io/python@sha256:abc123... ``` **Use in a Dockerfile:** ```dockerfile theme={null} FROM cr.root.io/python@sha256:abc123... ``` **Digest stability:** When Root applies a patch to an image, the digest changes (the content changes). Tags always point to the latest patched version. If you pin to a digest, you remain on that exact version until you explicitly update the digest reference. For most workloads, tracking by tag is recommended - you automatically receive new Root Patches. Pin by digest only when you need to control exactly when updates are applied. # Root Patches for Images Source: https://docs.root.io/ric/root-patches How Root Patches are applied to container images - patch types, validation, and accessing patch history. A Root Patch is the smallest safe fix for a vulnerable package. For container images, Root Patches target OS-level packages (installed via `apt`, `apk`, `yum`) and language runtime packages installed inside the image. ## What Gets Patched Root Patches address vulnerabilities in: * **OS packages** - packages installed by the distribution package manager (`apt`, `apk`, `yum`) * **Language runtimes** - the runtime interpreter itself (Python, Node.js, Ruby, etc.) when the vulnerability is in the runtime * **Installed application dependencies** - packages added via `pip install`, `npm install`, `gem install`, etc. in the Dockerfile Root patches each of these in place. It does not rebuild the image from a different upstream base, change the OS version, or introduce incompatible package API changes. ## Two Patch Types ### Backported Patches Root takes a security fix from a newer upstream version and applies it to the older version present in the image. This is the preferred approach when: * The upstream project has already fixed the issue in a newer release * The fix can be cleanly separated from other changes in the newer version * Your image needs to stay on the older version for compatibility The patched package keeps its original version number in the SBOM - the fix is applied in-place. ### Native Distribution Package Upgrades When a Linux distribution's security team has already released a patched package (e.g., via Debian Security, Ubuntu Security, Alpine packages), Root applies the distribution's own update. This is used when: * The distro's security team has already performed the backport * The patched package is available for the specific OS version in the image * The distribution's update is the canonical fix for that platform ## How Patches Are Applied Without Rebuilding Root's AVR pipeline modifies only the vulnerable packages within the existing image layers. It does not: * Rebase to a different upstream version * Change the OS or distribution * Alter unrelated packages or configurations * Introduce new dependencies beyond what the fix requires This means your image continues to work exactly as before - same entrypoints, same environment variables, same behavior - with the vulnerable code replaced. ## Viewing Patch History for an Image **Via the Root platform UI:** 1. Navigate to your subscribed image in the Root platform 2. Select the image tag you're interested in 3. Open **Patch Explorer** - a human-readable view showing: * Which CVEs were fixed and when * The patch type applied (backport or distribution upgrade) * Before/after package version comparison * Test results for each patch **Via the Root API:** ```bash theme={null} # Get SBOM for a specific tag (includes all patched packages) curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/images/tags/{rrtID}/sbom" # Get VEX statements (CVEs fixed in this tag) curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/images/tags/{rrtID}/vex" # Get provenance attestation (build record) curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/images/tags/{rrtID}/provenance" ``` ## SBOM and VEX for Patched Images Every time Root applies a patch to an image, it generates updated security artifacts: **SBOM (CycloneDX or SPDX):** The component inventory is updated to reflect the patched version of each vulnerable package. You can use the updated SBOM to confirm exactly what's in the image and verify that vulnerable packages have been addressed. **VEX statement:** A VEX (Vulnerability Exploitability eXchange) statement is generated for each patched CVE, documenting the fix and asserting non-exploitability. Import VEX into Grype, Trivy, or your ASPM to suppress findings for patched CVEs. **Provenance attestation:** A cryptographic record of the AVR pipeline build - what was patched, how, when, and what tests passed. See [Provenance](/concepts/provenance) for details. ## Patch Freshness SLA Root commits to having a patch available within: | Severity | SLA | | -------- | ----------------------------- | | Critical | 7 days after CVE publication | | High | 14 days after CVE publication | | Medium | 60 days after CVE publication | In practice, Root often delivers patches significantly faster than the SLA - especially for Critical and High severity CVEs where automated remediation proceeds as soon as an upstream fix is available. If no upstream fix exists, the CVE enters **No Fix Available** status. Root monitors continuously and begins remediation automatically as soon as a fix becomes available. See [Vulnerability Statuses](/concepts/vulnerability-statuses) for the complete status breakdown. # Supported Images Source: https://docs.root.io/ric/supported-images All container image families available in Root Image Catalog, with tag conventions and coverage status. Root Image Catalog provides patched versions of 500+ Docker Hub images. Every image is available at `cr.root.io` and kept in sync with upstream releases. ## Language Runtimes ### Python | Tag Pattern | Example | Base OS | | --------------------------- | --------------------------------- | -------------------- | | `python:{version}` | `cr.root.io/python:3.12` | Debian bookworm | | `python:{version}-slim` | `cr.root.io/python:3.12-slim` | Debian bookworm slim | | `python:{version}-alpine` | `cr.root.io/python:3.12-alpine` | Alpine | | `python:{version}-bookworm` | `cr.root.io/python:3.12-bookworm` | Debian bookworm | | `python:{version}-bullseye` | `cr.root.io/python:3.12-bullseye` | Debian bullseye | Supported versions: 3.9, 3.10, 3.11, 3.12, 3.13 ### Node.js | Tag Pattern | Example | Base OS | | ----------------------- | --------------------------- | ------------------------ | | `node:{version}` | `cr.root.io/node:20` | Debian bookworm | | `node:{version}-slim` | `cr.root.io/node:20-slim` | Debian bookworm slim | | `node:{version}-alpine` | `cr.root.io/node:20-alpine` | Alpine | | `node:lts` | `cr.root.io/node:lts` | Current LTS (Debian) | | `node:current` | `cr.root.io/node:current` | Current release (Debian) | Supported versions: 18 (LTS), 20 (LTS), 22 (Current) ### Go | Tag Pattern | Example | Base OS | | --------------------------- | --------------------------------- | --------------- | | `golang:{version}` | `cr.root.io/golang:1.22` | Debian bookworm | | `golang:{version}-alpine` | `cr.root.io/golang:1.22-alpine` | Alpine | | `golang:{version}-bookworm` | `cr.root.io/golang:1.22-bookworm` | Debian bookworm | Supported versions: 1.21, 1.22, 1.23, 1.24 ### Ruby | Tag Pattern | Example | Base OS | | ----------------------- | ---------------------------- | -------------------- | | `ruby:{version}` | `cr.root.io/ruby:3.3` | Debian bookworm | | `ruby:{version}-slim` | `cr.root.io/ruby:3.3-slim` | Debian bookworm slim | | `ruby:{version}-alpine` | `cr.root.io/ruby:3.3-alpine` | Alpine | ### PHP | Tag Pattern | Example | Base OS | | -------------------------- | ------------------------------- | --------------- | | `php:{version}-fpm` | `cr.root.io/php:8.3-fpm` | Debian bookworm | | `php:{version}-fpm-alpine` | `cr.root.io/php:8.3-fpm-alpine` | Alpine | | `php:{version}-cli` | `cr.root.io/php:8.3-cli` | Debian bookworm | ### Rust `cr.root.io/rust:{version}` - Debian bookworm `cr.root.io/rust:{version}-alpine` - Alpine ### Other Runtimes Root Image Catalog also supports: `elixir`, `erlang`, `haskell`, `clojure`, `scala`, `groovy`, `dart`, `swift`, `julia`, `perl`, `r-base`, `gcc`, `clang` ## Java / JVM | Image | Example | Notes | | ----------------- | ----------------------------------- | ------------------------------ | | `eclipse-temurin` | `cr.root.io/eclipse-temurin:21-jre` | Eclipse Adoptium (recommended) | | `amazoncorretto` | `cr.root.io/amazoncorretto:21` | Amazon Corretto | | `ibmjava` | `cr.root.io/ibmjava:8` | IBM Semeru | Eclipse Temurin variants: `-jdk`, `-jre`, `-alpine`, `-jammy`, `-focal` ## Web Servers & Proxies | Image | Example | Notes | | --------- | ------------------------ | ------------------------ | | `nginx` | `cr.root.io/nginx:1.25` | Full and alpine variants | | `httpd` | `cr.root.io/httpd:2.4` | Apache HTTP Server | | `caddy` | `cr.root.io/caddy:2` | Caddy server | | `haproxy` | `cr.root.io/haproxy:2.8` | HAProxy | | `traefik` | `cr.root.io/traefik:v3` | Traefik proxy | ## Databases | Image | Example | | --------------- | ------------------------------- | | `postgres` | `cr.root.io/postgres:16` | | `mysql` | `cr.root.io/mysql:8.0` | | `mariadb` | `cr.root.io/mariadb:11` | | `mongo` | `cr.root.io/mongo:7` | | `redis` | `cr.root.io/redis:7-alpine` | | `elasticsearch` | `cr.root.io/elasticsearch:8.12` | | `cassandra` | `cr.root.io/cassandra:5` | | `couchdb` | `cr.root.io/couchdb:3` | | `neo4j` | `cr.root.io/neo4j:5` | | `influxdb` | `cr.root.io/influxdb:2` | | `clickhouse` | `cr.root.io/clickhouse:24` | | `arangodb` | `cr.root.io/arangodb:3` | | `couchbase` | `cr.root.io/couchbase:7` | | `memcached` | `cr.root.io/memcached:1` | ## Message Brokers & Streaming | Image | Example | | ----------- | ---------------------------------- | | `rabbitmq` | `cr.root.io/rabbitmq:3-management` | | `kafka` | `cr.root.io/kafka:3.7` | | `zookeeper` | `cr.root.io/zookeeper:3.9` | | `nats` | `cr.root.io/nats:2` | | `emqx` | `cr.root.io/emqx:5` | ## Observability & Monitoring | Image | Example | | ------------ | -------------------------- | | `grafana` | `cr.root.io/grafana:10` | | `prometheus` | `cr.root.io/prometheus:v2` | | `logstash` | `cr.root.io/logstash:8` | | `kibana` | `cr.root.io/kibana:8` | | `fluentd` | `cr.root.io/fluentd:v1` | | `influxdb` | `cr.root.io/influxdb:2` | | `chronograf` | `cr.root.io/chronograf:1` | | `kapacitor` | `cr.root.io/kapacitor:1` | ## Base OS Images | Image | Example | Notes | | ------------- | --------------------------------- | --------------------- | | `debian` | `cr.root.io/debian:bookworm-slim` | Bookworm and bullseye | | `ubuntu` | `cr.root.io/ubuntu:24.04` | 24.04 LTS, 22.04 LTS | | `alpine` | `cr.root.io/alpine:3.20` | 3.18, 3.19, 3.20 | | `amazonlinux` | `cr.root.io/amazonlinux:2023` | AL2, AL2023 | | `almalinux` | `cr.root.io/almalinux:9` | AlmaLinux 8, 9 | | `fedora` | `cr.root.io/fedora:40` | Latest stable | | `busybox` | `cr.root.io/busybox:1` | Minimal base | ## Build & CI Tools `gradle`, `maven`, `composer` (PHP), `buildpack-deps` ## Request an Image If your workload uses an image not listed here, [contact Root](https://root.io) to request it. Provide the Docker Hub image name and the tags you use. Root adds new image families regularly. Enterprise customers can request priority onboarding for specific images. # PHP - Composer (Beta) Source: https://docs.root.io/rlc/composer Configure Composer to use Root Library Catalog for secure PHP packages. **Beta.** Composer support is actively maintained but may have rough edges. Report issues at [github.com/rootio-avr/rootio\_patcher](https://github.com/rootio-avr/rootio_patcher/issues). Root Library Catalog supports PHP projects managed with Composer. Patched packages are published to `pkg.root.io/composer/` as a Composer repository and consumed via the Root Patcher CLI, which rewrites your `composer.json` and runs `composer update` to apply the patches. ## Prerequisites The Root Patcher CLI (`rootio_patcher`) is required to analyze your dependencies and apply patches. Install it before configuring your project. ```bash theme={null} # macOS (Apple Silicon) curl -sL https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_darwin_arm64.tar.gz | tar xz chmod +x rootio_patcher && sudo mv rootio_patcher /usr/local/bin/ # Linux (x86_64) curl -sL https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_linux_x86_64.tar.gz | tar xz chmod +x rootio_patcher && sudo mv rootio_patcher /usr/local/bin/ ``` For macOS Intel and Windows, see the [full installation instructions](/rlc/patcher#installation). Then set your API key: ```bash theme={null} export ROOTIO_API_KEY="your-api-key-here" ``` **`composer.lock` must exist before running the patcher.** If it is missing, run `composer install` first. The patcher reads exact resolved versions from the lock file to determine what is installed. ## How Composer patching works The patcher uses **pre-install patching**: 1. Reads exact resolved versions from `composer.lock` 2. Queries Root's API for available patches 3. Updates `composer.json` — direct dependencies have their version constraint updated in place; transitive dependencies are explicitly pinned in `require` 4. Adds the Root Composer repository entry (`pkg.root.io/composer/`) permanently to `composer.json` 5. Automatically runs `composer update --with-dependencies ` to download patched versions and update `composer.lock` The `vendor/` directory is fully populated after the patcher runs — no separate install step needed. Platform requirements (`php`, `ext-*`) are not patched — they are managed by the OS, not Composer. ## Authentication The patcher passes credentials to Composer via the `COMPOSER_AUTH` environment variable. Set it before running the patcher with `--dry-run=false`: ```bash theme={null} export COMPOSER_AUTH='{"http-basic":{"pkg.root.io":{"username":"","password":"your-api-key"}}}' ``` **Subsequent `composer install` runs also require `COMPOSER_AUTH`.** Once the patcher adds the `pkg.root.io` repository to `composer.json`, every future `composer install` in CI/CD needs this variable set so Composer can authenticate to fetch patched packages. ## Patching your project ### 1. Preview available patches ```bash theme={null} rootio_patcher composer remediate ``` Example output: ``` === DRY-RUN MODE === The following packages in composer.json would be updated: 1. Package: vendor/package Current version: 2.1.0 Patched version: 2.1.4 CVEs Fixed: [CVE-2024-12345] To apply these patches: Run: rootio_patcher composer remediate --dry-run=false Then ensure COMPOSER_AUTH is configured in your CI/CD environment ``` ### 2. Apply patches ```bash theme={null} export COMPOSER_AUTH='{"http-basic":{"pkg.root.io":{"username":"","password":"your-api-key"}}}' rootio_patcher composer remediate --dry-run=false ``` The patcher updates `composer.json` and `composer.lock` and populates `vendor/`. ### 3. Commit the changes ```bash theme={null} git add composer.json composer.lock git commit -m "Apply Root patches for Composer packages" ``` **Flags:** | Flag | Default | Description | | ----------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `--dry-run` | `true` | Preview changes without applying | | `--file` | `composer.json` | Path to the target `composer.json` | | `--ignore` | - | Exclude `package@version` from patching (repeatable, comma-separated). Merged with a `.rootioignore` file. See [Ignoring Packages](/rlc/patcher#ignoring-packages). | ## CI/CD Configuration ### GitHub Actions ```yaml theme={null} - name: Set up PHP uses: shivammathur/setup-php@v2 with: php-version: '8.2' - name: Install dependencies run: composer install --no-interaction - name: Patch vulnerabilities env: ROOTIO_API_KEY: ${{ secrets.ROOTIO_API_KEY }} COMPOSER_AUTH: '{"http-basic":{"pkg.root.io":{"username":"","password":"${{ secrets.ROOTIO_API_KEY }}"}}}' run: rootio_patcher composer remediate --dry-run=false - name: Commit changes run: | git config user.name "Root.io Patcher" git config user.email "bot@root.io" git add composer.json composer.lock git commit -m "chore: apply Root.io security patches" || echo "No changes" git push ``` For subsequent `composer install` runs in other jobs or pipelines, set `COMPOSER_AUTH` as a repository secret and inject it into any step that runs Composer: ```yaml theme={null} - name: Install dependencies env: COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }} run: composer install --no-interaction ``` ### GitLab CI ```yaml theme={null} patch: script: - composer install --no-interaction - rootio_patcher composer remediate --dry-run=false variables: ROOTIO_API_KEY: $ROOTIO_API_KEY COMPOSER_AUTH: '{"http-basic":{"pkg.root.io":{"username":"","password":"$ROOTIO_API_KEY"}}}' ``` ### Docker ```dockerfile theme={null} FROM php:8.2-cli COPY --from=composer:latest /usr/bin/composer /usr/bin/composer WORKDIR /app COPY composer.json composer.lock ./ RUN curl -sL https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_linux_x86_64.tar.gz | tar xz && \ chmod +x rootio_patcher && \ mv rootio_patcher /usr/local/bin/ ARG ROOTIO_API_KEY ENV ROOTIO_API_KEY=${ROOTIO_API_KEY} ENV COMPOSER_AUTH='{"http-basic":{"pkg.root.io":{"username":"","password":"'"${ROOTIO_API_KEY}"'"}}}' RUN composer install --no-interaction && \ rootio_patcher composer remediate --dry-run=false COPY . . CMD ["php", "index.php"] ``` Subsequent `composer install` steps (e.g. in a multi-stage build) require `COMPOSER_AUTH` to authenticate with `pkg.root.io`. ## Troubleshooting | Issue | Solution | | ---------------------------------------- | -------------------------------------------------------------------------------------------------------------- | | `composer.lock not found` | Run `composer install` first to generate the lock file, then re-run the patcher | | `file not found: composer.json` | Run from your project root, or use `--file=./path/to/composer.json` | | `composer update` fails after patching | Ensure `COMPOSER_AUTH` is set with valid credentials for `pkg.root.io` | | Future `composer install` fails in CI/CD | Add `COMPOSER_AUTH` to your CI/CD secrets — the `pkg.root.io` repository entry is permanent in `composer.json` | | `401 Unauthorized` | Verify your API key is valid and that `COMPOSER_AUTH` is correctly formatted | # Getting Started with RLC Source: https://docs.root.io/rlc/getting-started Configure your package manager to use pkg.root.io and start consuming secure, patched packages. Root Library Catalog delivers patched packages for Python, JavaScript, Java, Go, .NET, and PHP. There are two ways to consume them: | Approach | How it works | | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | | **Registry proxy** | Point your package manager at `pkg.root.io`. Packages arrive patched on every install. | | **[Patcher CLI](/rlc/patcher)** | Run `rootio_patcher` against your existing environment. The CLI identifies vulnerable packages and replaces them with Root-patched versions. | This guide covers the registry proxy approach. See [Root Patcher CLI](/rlc/patcher) for the CLI-based approach. ## Prerequisites ### 1. Install the Root Patcher CLI The Root Patcher CLI (`rootio_patcher`) is required to pull Root-secured packages into your environment. ```bash theme={null} # macOS (Apple Silicon) curl -sL https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_darwin_arm64.tar.gz | tar xz chmod +x rootio_patcher && sudo mv rootio_patcher /usr/local/bin/ # Linux (x86_64) curl -sL https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_linux_x86_64.tar.gz | tar xz chmod +x rootio_patcher && sudo mv rootio_patcher /usr/local/bin/ ``` For macOS Intel and Windows, see the [full installation instructions](/rlc/patcher#installation). ### 2. Set your API key Get your API key from **Settings → Token Management** in the Root platform, then export it: ```bash theme={null} export ROOTIO_API_KEY="your-api-key-here" ``` ### 3. Your standard package manager Have pip, uv, Poetry, npm, pnpm, yarn, Maven, Go, the .NET SDK, or Composer already installed. ## Python - pip, uv, Poetry All Python tools authenticate via `~/.netrc`: ```bash theme={null} echo "machine pkg.root.io login token password YOUR_ROOT_TOKEN" >> ~/.netrc chmod 600 ~/.netrc ``` Then point your package manager at Root: ```bash theme={null} # pip pip config set global.index-url https://pkg.root.io/pypi/simple && pip config set global.extra-index-url https://pypi.org/simple # uv - add to pyproject.toml # [[tool.uv.index]] # name = "root" # url = "https://pkg.root.io/pypi/simple/" # Poetry poetry source add --priority=primary root https://pkg.root.io/pypi/simple/ && poetry source add --priority=supplemental pypi ``` See the [full Python guide](/rlc/python) for per-tool details and CI/CD configuration. ## JavaScript - npm, pnpm, yarn Root serves patched JavaScript packages under the `@rootio/` scope. Authentication uses base64-encoded credentials: ```bash theme={null} npm config set registry https://pkg.root.io/npm/ --location=project && npm config set //pkg.root.io/npm/:_authToken YOUR_ROOT_TOKEN --location=project ``` Patched packages are applied via overrides in `package.json` - no changes to import statements needed: ```json theme={null} { "dependencies": { "axios": "npm:@rootio/axios@1.6.0" }, "overrides": { "axios": "npm:@rootio/axios@1.6.0" } } ``` See the [full JavaScript guide](/rlc/javascript) for pnpm, Yarn 1, and Yarn 3 variants. ## Java - Maven Configure `~/.m2/settings.xml` to mirror Maven Central through Root: ```xml theme={null} root-io rootio ${env.ROOT_TOKEN} root-io Root.io Mirror for All Maven Repositories https://pkg.root.io/maven/ central ``` Then export your token and run Maven as usual: ```bash theme={null} export ROOT_TOKEN="your-token-here" mvn -U test ``` See the [full Java guide](/rlc/java) for the complete settings.xml and CI/CD setup. ## Go - Go modules Configure `GOPROXY` to authenticate with Root's module proxy: ```bash theme={null} export GOPROXY="https://:${ROOTIO_API_KEY}@pkg.root.io/gobinary,https://proxy.golang.org,direct" ``` Then use the Root Patcher CLI to add `replace` directives to your `go.mod`: ```bash theme={null} # Preview patches rootio_patcher go remediate # Apply patches rootio_patcher go remediate --dry-run=false # Build go build ./... ``` The patcher adds entries like: ```go theme={null} replace golang.org/x/net v0.17.0 => pkg.root.io/golang/golang.org/x/net v0.17.0-rootio.1 ``` Your import statements remain unchanged - the `replace` directives transparently redirect module resolution to Root's patched versions. See the [full Go guide](/rlc/go) for checksum verification, multi-module projects, and CI/CD setup. ## .NET - NuGet Add Root as a NuGet package source: ```xml theme={null} ``` Then use the patcher to apply Root-patched package versions (aliased `RootIO.*` form): ```bash theme={null} # Preview patches rootio_patcher nuget remediate # Apply patches - rewrites PackageReference to RootIO.* aliased names rootio_patcher nuget remediate --dry-run=false # Restore and build dotnet restore && dotnet build ``` See the [full NuGet guide](/rlc/nuget) for CI/CD configuration and troubleshooting. ## PHP - Composer Beta Use the Root Patcher CLI to analyze your `composer.lock`, update `composer.json` with patched version constraints, and run `composer update` to apply patches: ```bash theme={null} # Preview patches - no ROOTIO_API_KEY needed rootio_patcher composer remediate # Apply patches export COMPOSER_AUTH='{"http-basic":{"pkg.root.io":{"username":"","password":"your-api-key"}}}' rootio_patcher composer remediate --dry-run=false ``` The patcher adds `pkg.root.io/composer/` as a Composer repository and pins affected packages to their patched versions. The `vendor/` directory is fully populated after the patcher runs — no separate `composer install` needed. `composer.lock` must exist before running the patcher. Run `composer install` first if it is missing. Future `composer install` runs in CI/CD require `COMPOSER_AUTH` to be set so Composer can fetch patched packages from `pkg.root.io/composer/`. See the [full Composer guide](/rlc/composer) for CI/CD configuration and troubleshooting. # Go - Go modules Source: https://docs.root.io/rlc/go Configure Go to use Root Library Catalog for secure Go modules. Root Library Catalog supports Go modules. Patched modules are served through the GOPROXY protocol and consumed via `replace` directives in your `go.mod` file. ## Prerequisites The Root Patcher CLI (`rootio_patcher`) is required to analyze your dependencies and inject the necessary `replace` directives. Install it before configuring your Go environment. ```bash theme={null} # macOS (Apple Silicon) curl -sL https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_darwin_arm64.tar.gz | tar xz chmod +x rootio_patcher && sudo mv rootio_patcher /usr/local/bin/ # Linux (x86_64) curl -sL https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_linux_x86_64.tar.gz | tar xz chmod +x rootio_patcher && sudo mv rootio_patcher /usr/local/bin/ ``` For macOS Intel and Windows, see the [full installation instructions](/rlc/patcher#installation). Then set your API key: ```bash theme={null} export ROOTIO_API_KEY="your-api-key-here" ``` ## How Root Go modules work Go modules are patched in a Docker build environment and published to `pkg.root.io/gobinary` via the GOPROXY protocol. Patched modules keep their original module identity (e.g., `module github.com/google/uuid`) and are consumed using Go's native `replace` directive in `go.mod`, requiring zero changes to application source code. Root publishes patched modules with the same version plus a `-rootio.N` suffix. For example: ``` golang.org/x/net v0.17.0 → pkg.root.io/golang/golang.org/x/net v0.17.0-rootio.1 ``` The patcher analyzes your `go.mod`, queries Root's API for available patches, and adds `replace` directives pointing to the Root-patched versions. Only modules with pinned semver versions (e.g., `v1.2.3`) are analyzed. Modules using pseudo-versions (e.g., `v0.0.0-20230101123456-abcdef012345`) are skipped. If you have vulnerable pseudo-versioned dependencies, upgrade them to a pinned release first. ## Authentication Go's module proxy system authenticates via the `GOPROXY` environment variable. This is the **only** environment variable you need to configure for regular builds: ```bash theme={null} export GOPROXY="https://:${ROOTIO_API_KEY}@pkg.root.io/gobinary,https://proxy.golang.org,direct" ``` This tells Go to: 1. Try resolving modules from `pkg.root.io/gobinary` first (with authentication) 2. Fall back to the public Go proxy at `https://proxy.golang.org` 3. Finally fall back to `direct` for modules not available through either proxy You can also set this persistently: ```bash theme={null} # Add to ~/.bashrc or ~/.zshrc export GOPROXY="https://:${ROOTIO_API_KEY}@pkg.root.io/gobinary,https://proxy.golang.org,direct" ``` **No GONOSUMDB needed!** Once the patcher runs `go mod tidy` and generates your `go.sum` file, regular builds use the checksums from `go.sum` for verification. Go only queries the checksum database when adding new modules, which the patcher handles internally. **GOPRIVATE:** If your project also imports internal/private modules (common in monorepos), set `GOPRIVATE` to cover those module paths so Go doesn't attempt to fetch them through the proxy or checksum database. For example: `export GOPRIVATE="github.com/myorg/internal,*.mycompany.com"`. This is unrelated to Root patches — it applies to any private module your project depends on. ## Patching your project ### 1. Preview available patches Run the patcher in dry-run mode (no `ROOTIO_API_KEY` needed for discovery): ```bash theme={null} rootio_patcher go remediate ``` This shows which modules have Root-patched versions available and which CVEs they fix. ### 2. Apply patches Run the patcher with `--dry-run=false` to update your `go.mod`: ```bash theme={null} rootio_patcher go remediate --dry-run=false ``` The patcher will: 1. Add `replace` directives to your `go.mod` 2. Automatically run `go mod tidy` to fetch the patched modules 3. Run `go mod vendor` if a `vendor/` directory exists ### 3. Build your project After patching, build as usual: ```bash theme={null} go build ./... ``` The build will use the patched modules from `pkg.root.io/gobinary` via the `replace` directives. ## Example workflow ```bash theme={null} # 1. Configure GOPROXY (only env var needed for builds) export GOPROXY="https://:${ROOTIO_API_KEY}@pkg.root.io/gobinary,https://proxy.golang.org,direct" # 2. Preview patches (dry-run) rootio_patcher go remediate # Output: # === DRY-RUN MODE === # The following replace directives would be added to go.mod: # # 1. replace golang.org/x/net v0.17.0 => pkg.root.io/golang/golang.org/x/net v0.17.0-rootio.1 # CVEs Fixed: [CVE-2024-12345] # # 2. replace github.com/golang-jwt/jwt/v4 v4.5.0 => pkg.root.io/golang/github.com/golang-jwt/jwt/v4 v4.5.0-rootio.1 # CVEs Fixed: [CVE-2024-67890] # 3. Apply patches # The patcher automatically runs `go mod tidy` and updates go.sum rootio_patcher go remediate --dry-run=false # 4. Commit the changes # IMPORTANT: Commit both go.mod and go.sum git add go.mod go.sum git commit -m "Apply Root patches for Go modules" # 5. Build (go.sum provides checksum verification) go build ./... ``` ## Working with go.mod After running the patcher, your `go.mod` will contain `replace` directives like: ```go theme={null} module github.com/myorg/myapp go 1.21 require ( golang.org/x/net v0.17.0 github.com/golang-jwt/jwt/v4 v4.5.0 ) // Root patches replace golang.org/x/net v0.17.0 => pkg.root.io/golang/golang.org/x/net v0.17.0-rootio.1 replace github.com/golang-jwt/jwt/v4 v4.5.0 => pkg.root.io/golang/github.com/golang-jwt/jwt/v4 v4.5.0-rootio.1 ``` Your import statements remain unchanged: ```go theme={null} import ( "golang.org/x/net/http2" "github.com/golang-jwt/jwt/v4" ) ``` The `replace` directives transparently redirect module resolution to Root's patched versions at build time. ## CI/CD Configuration In CI/CD environments, you only need to set `GOPROXY` - the committed `go.sum` file provides checksum verification. ### GitHub Actions ```yaml theme={null} name: Build on: [push] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version: '1.21' - name: Configure GOPROXY run: echo "GOPROXY=https://:${{ secrets.ROOTIO_API_KEY }}@pkg.root.io/gobinary,https://proxy.golang.org,direct" >> $GITHUB_ENV - name: Build run: go build ./... ``` **No GONOSUMDB needed!** The `go.sum` file committed in your repo contains all the checksums. Go uses those for verification during builds. ### GitLab CI ```yaml theme={null} build: image: golang:1.21 before_script: - export GOPROXY="https://:${ROOTIO_API_KEY}@pkg.root.io/gobinary,https://proxy.golang.org,direct" script: - go build ./... ``` ### Docker builds ```dockerfile theme={null} FROM golang:1.21-alpine WORKDIR /app # Copy go.mod, go.sum (contains checksums) COPY go.mod go.sum ./ # Set GOPROXY - no GONOSUMDB needed ARG ROOTIO_API_KEY ENV GOPROXY="https://:${ROOTIO_API_KEY}@pkg.root.io/gobinary,https://proxy.golang.org,direct" # Download dependencies (verified against go.sum) RUN go mod download # Copy source and build COPY . . RUN go build -o myapp ./cmd/myapp CMD ["./myapp"] ``` ## Checksum verification and go.sum Go's module system uses checksums for security. Here's how it works with Root patches: ### How go.sum provides security When the Root Patcher runs `go mod tidy`, it: 1. Downloads the patched modules from `pkg.root.io/gobinary` 2. Calculates their checksums 3. Writes those checksums to your `go.sum` file **During regular builds** (`go build`, `go test`, Docker builds): * Go reads the checksums from your committed `go.sum` file * Go downloads modules and verifies them against `go.sum` * Go **does not** query the checksum database (`sum.golang.org`) * Your `go.sum` is the source of truth This means: * ✅ Cryptographic verification is still active via `go.sum` * ✅ No environment variables needed beyond `GOPROXY` * ✅ Reproducible builds across all environments * ✅ Git tracks the checksums (commit `go.sum` with your code) ### When GONOSUMDB is used The Root Patcher sets `GONOSUMDB=pkg.root.io` internally when it runs `go mod tidy`. This allows it to download patched modules from Root's registry without querying the public checksum database. **You don't need to set this yourself** - the patcher handles it automatically. ### If you manually run go mod tidy If you need to run `go mod tidy` manually after the patcher has added replace directives: ```bash theme={null} export GOPROXY="https://:${ROOTIO_API_KEY}@pkg.root.io/gobinary,https://proxy.golang.org,direct" export GONOSUMDB="pkg.root.io" go mod tidy ``` But this is rarely needed - the patcher runs `go mod tidy` automatically after updating your `go.mod`. ## Troubleshooting | Issue | Solution | | --------------------------------------------- | --------------------------------------------------------------------------------------- | | `401 Unauthorized` | Verify `GOPROXY` includes your `ROOTIO_API_KEY` and the token is valid | | Module not found | Confirm the patched module exists at `pkg.root.io/gobinary` or check the dry-run output | | Checksum mismatch during build | Ensure `go.sum` is committed and up-to-date - the patcher generates this automatically | | Checksum mismatch during manual `go mod tidy` | Set `GONOSUMDB="pkg.root.io"` before running `go mod tidy` | | Pseudo-version dependencies | Upgrade to a pinned semver version - the patcher only supports semver | | `replace` not working | Ensure `go mod tidy` has been run and `GOPROXY` is configured before building | ## Multi-module projects For projects with multiple Go modules (e.g., monorepos), run the patcher from the root and specify each module: ```bash theme={null} # Patch the root module rootio_patcher go remediate --go-mod=./go.mod --dry-run=false # Patch a submodule rootio_patcher go remediate --go-mod=./services/api/go.mod --dry-run=false ``` Or iterate over all modules: ```bash theme={null} find . -name "go.mod" -execdir rootio_patcher go remediate --dry-run=false \; ``` ## Version pinning Root patches are tied to specific upstream versions. If you upgrade a dependency to a newer version, run the patcher again to check if a Root patch is available for the new version: ```bash theme={null} # After upgrading dependencies go get -u github.com/some/module@v2.0.0 # Check for patches rootio_patcher go remediate ``` ## Go Standard Library (stdlib) Limitations Root Library Catalog does **not** support patching Go's standard library packages (e.g., `net/http`, `crypto/tls`, `encoding/json`). Stdlib packages are part of the Go toolchain itself and cannot be patched using the `replace` directive mechanism that Root uses for external modules. ### Why stdlib patching is not supported Unlike external Go modules where Root can publish patched versions and use `replace` directives in `go.mod` to redirect module resolution, the Go standard library is: 1. **Embedded in the toolchain** - stdlib packages are compiled from sources bundled with the Go binary itself 2. **Not replaceable via go.mod** - Go's module system does not support `replace` directives for stdlib packages 3. **Tied to the Go version** - The stdlib version is determined by the `go` directive at the top of `go.mod` (e.g., `go 1.22.3`) ### Recommended approach for stdlib vulnerabilities **Keep your Go version up to date.** Unlike third-party packages where version upgrades may introduce breaking changes, Go's standard library maintains exceptional backwards compatibility. The Go team at Google maintains stdlib with: * Strong backwards compatibility guarantees * Rapid security response times * Regular patch releases for security issues * Comprehensive test coverage **When a stdlib CVE is announced:** 1. Upgrade to the latest patch version of your current Go minor version: ```bash theme={null} # If on Go 1.22.x, upgrade to latest 1.22.y go get go@1.22 ``` 2. Update your `go.mod`: ```go theme={null} go 1.22.5 // Updated from 1.22.3 ``` 3. For Dockerfile-based builds, update your base image: ```dockerfile theme={null} # Before FROM golang:1.22.3-alpine # After FROM golang:1.22.5-alpine ``` This approach provides the most reliable security posture for stdlib vulnerabilities without compromising build reproducibility. # Java - Maven, Gradle Source: https://docs.root.io/rlc/java Configure Maven or Gradle to use Root Library Catalog for secure Java dependencies. Root Library Catalog provides a Maven-compatible repository at `pkg.root.io/maven/`. ## Prerequisites Root Library Catalog supports two integration approaches depending on your build tool: * **Maven**: uses the Root Patcher CLI (`rootio_patcher`) to patch your `pom.xml` before building. * **Gradle**: uses the [Root.io Gradle Plugin](/integrations/gradle), which patches at build time — no CLI needed. Skip to the [Gradle section](#gradle). Install the CLI if you're using Maven: ```bash theme={null} # macOS (Apple Silicon) curl -sL https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_darwin_arm64.tar.gz | tar xz chmod +x rootio_patcher && sudo mv rootio_patcher /usr/local/bin/ # Linux (x86_64) curl -sL https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_linux_x86_64.tar.gz | tar xz chmod +x rootio_patcher && sudo mv rootio_patcher /usr/local/bin/ ``` For macOS Intel and Windows, see the [full installation instructions](/rlc/patcher#installation). Then set your API key: ```bash theme={null} export ROOTIO_API_KEY="your-api-key-here" ``` *** ## Maven ### \~/.m2/settings.xml Configure Root as a mirror for Maven Central and add your credentials: ```xml theme={null} root-io rootio YOUR_ROOT_TOKEN root-io Root.io Mirror for All Maven Repositories https://pkg.root.io/maven/ central root-io root-io Root.io Maven Patches https://pkg.root.io/maven/ true false root-io Root.io Maven Plugins https://pkg.root.io/maven/ true false root-io ``` Keep your Root token out of source control. Use environment variable interpolation (`${env.ROOT_TOKEN}`) in `settings.xml` and export the token in your shell or CI environment. ### Patch dependencies ```bash theme={null} # Preview rootio_patcher maven remediate # Apply rootio_patcher maven remediate --dry-run=false # Specify a pom.xml path rootio_patcher maven remediate --file=path/to/pom.xml --dry-run=false ``` After running the patcher, rebuild: ```bash theme={null} mvn clean install ``` ### CI/CD Configuration ```yaml theme={null} # GitHub Actions example - name: Build with Maven run: mvn -U test env: ROOT_TOKEN: ${{ secrets.ROOT_TOKEN }} ``` Use environment variable interpolation in `settings.xml` to inject the token safely: ```xml theme={null} ${env.ROOT_TOKEN} ``` *** ## Gradle The [Root.io Gradle Plugin](/integrations/gradle) automatically patches vulnerable dependencies at build time with zero changes to your dependency declarations. ### Installation Apply the plugin in `build.gradle.kts`: ```kotlin theme={null} plugins { id("io.root.patcher") version "0.2.0" } ``` The plugin is published to the [Gradle Plugin Portal](https://plugins.gradle.org/plugin/io.root.patcher) — no extra repository configuration needed. If your `pluginManagement` block explicitly lists repositories, make sure `gradlePluginPortal()` is included. If your organization uses JFrog Artifactory, you can also host the plugin there or route patched artifact resolution through an Artifactory proxy - see [Private JFrog Artifactory](/integrations/gradle#option-4-private-jfrog-artifactory) in the Gradle integration guide. ### Configuration ```kotlin theme={null} rootio { // API key is resolved automatically from: // 1. Build script: apiKey.set("...") // 2. Environment variable: ROOTIO_API_KEY // 3. JVM system property: systemProp.ROOTIO_API_KEY // 4. .env file: ROOTIO_API_KEY=... ttlHours.set(24) // Cache TTL (default: 24 hours) maxRetries.set(3) // Retry attempts (default: 3) } ``` ### Build ```bash theme={null} export ROOTIO_API_KEY="your-api-key-here" ./gradlew build ``` For full details, see the [Gradle integration guide](/integrations/gradle). *** ## Troubleshooting | Issue | Solution | | ---------------------------- | ----------------------------------------------------------------------------------------------- | | `401 Unauthorized` | Verify token in `settings.xml` and that the `server id` matches the `mirror id` | | `Could not resolve artifact` | Confirm `mirrorOf` is set to `central` | | Checksum validation errors | Expected for patched artifacts - Root's checksums differ from Maven Central | | SNAPSHOT artifacts | Set `false` to avoid SNAPSHOT resolution through Root | # JavaScript - npm, pnpm, yarn Source: https://docs.root.io/rlc/javascript Configure npm, pnpm, and yarn to use Root Library Catalog for secure JavaScript packages. Root Library Catalog serves patched JavaScript packages under the `@rootio/` scope. Rather than replacing your registry globally, you add an override or resolution that maps the vulnerable package to its Root-patched equivalent at `pkg.root.io/npm/`. ## Prerequisites The Root Patcher CLI (`rootio_patcher`) is required to pull Root-secured packages into your environment. Install it before configuring your package manager. ```bash theme={null} # macOS (Apple Silicon) curl -sL https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_darwin_arm64.tar.gz | tar xz chmod +x rootio_patcher && sudo mv rootio_patcher /usr/local/bin/ # Linux (x86_64) curl -sL https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_linux_x86_64.tar.gz | tar xz chmod +x rootio_patcher && sudo mv rootio_patcher /usr/local/bin/ ``` For macOS Intel and Windows, see the [full installation instructions](/rlc/patcher#installation). Then set your API key: ```bash theme={null} export ROOTIO_API_KEY="your-api-key-here" ``` ## Which package manager should I use? Root supports npm, pnpm, and both Yarn generations. The auth setup is shared across all of them; the difference is in how each package manager applies the `@rootio/` override. | Package manager | Best for | | -------------------- | ---------------------------------------------------------------------- | | **npm** | Default Node.js projects, no special tooling required | | **pnpm** | Monorepos, projects prioritizing disk efficiency, faster installs | | **Yarn 1 (Classic)** | Existing Yarn 1 projects using `resolutions` | | **Yarn 3+ (Berry)** | Projects already on Berry - auth is configured differently than Yarn 1 | The `overrides` / `resolutions` / `pnpm.overrides` field in `package.json` is what tells your package manager to resolve the original package name to Root's patched `@rootio/` equivalent. This is required for all JavaScript package managers. ## Authentication All package managers use the same auth setup. The registry requires base64-encoded credentials: ```bash theme={null} # This sets the registry and encodes your credentials as base64(root:YOUR_TOKEN) npm config set registry https://pkg.root.io/npm/ --location=project && npm config set //pkg.root.io/npm/:_authToken YOUR_ROOT_TOKEN --location=project ``` This writes to your project-level `.npmrc`. *** ## npm ### Configure auth ```bash theme={null} npm config set registry https://pkg.root.io/npm/ --location=project && npm config set //pkg.root.io/npm/:_authToken YOUR_ROOT_TOKEN --location=project ``` ### Update package.json Remove the original package and add the Root-patched version using `@rootio/` scope: ```bash theme={null} npm remove requests ``` Add to `package.json`: ```json theme={null} { "dependencies": { "axios": "npm:@rootio/axios@1.6.0" }, "overrides": { "axios": "npm:@rootio/axios@1.6.0" } } ``` ### Install ```bash theme={null} npm install ``` *** ## pnpm ### Configure auth Same as npm: ```bash theme={null} npm config set registry https://pkg.root.io/npm/ --location=project && npm config set //pkg.root.io/npm/:_authToken YOUR_ROOT_TOKEN --location=project ``` ### Update package.json ```bash theme={null} pnpm remove axios ``` Add to `package.json`: ```json theme={null} { "dependencies": { "axios": "npm:@rootio/axios@1.6.0" }, "pnpm": { "overrides": { "axios": "npm:@rootio/axios@1.6.0" } } } ``` ### Install ```bash theme={null} pnpm install ``` *** ## yarn ### Yarn 1 (Classic) **Configure auth** (same as npm): ```bash theme={null} npm config set registry https://pkg.root.io/npm/ --location=project && npm config set //pkg.root.io/npm/:_authToken YOUR_ROOT_TOKEN --location=project ``` **Update package.json:** ```bash theme={null} yarn remove axios ``` ```json theme={null} { "resolutions": { "axios": "npm:@rootio/axios@1.6.0" } } ``` ```bash theme={null} yarn install ``` ### Yarn 3+ (Berry) **Configure auth:** ```bash theme={null} yarn config set npmScopes.rootio.npmRegistryServer https://pkg.root.io/npm/ && yarn config set 'npmRegistries["//pkg.root.io/npm/"].npmAuthIdent' 'root:YOUR_ROOT_TOKEN' ``` **Update package.json:** ```bash theme={null} yarn remove axios ``` ```json theme={null} { "resolutions": { "axios": "npm:@rootio/axios@1.6.0" } } ``` ```bash theme={null} yarn install ``` *** ## How `@rootio/` packages work Root publishes patched packages under the `@rootio/` npm scope. The `overrides` / `resolutions` / `pnpm.overrides` fields in `package.json` tell your package manager to resolve the original package name to the Root-patched equivalent - no changes to your import statements required. ## Troubleshooting | Issue | Solution | | -------------------------- | ----------------------------------------------------------------- | | `401 Unauthorized` | Verify your token: `npm config get //pkg.root.io/npm/:_authToken` | | Package not found | Confirm `@rootio/` scoped package exists for your version | | `integrity` check failures | Expected - Root patches modify package contents | | Overrides not applying | Ensure both `dependencies` and `overrides` are updated | # Notifications Source: https://docs.root.io/rlc/notifications Get notified when new patched packages are available in Root Library Catalog. Root can notify your team when new patched packages are available for your account. ## Slack Notifications Root can send a Slack notification to your workspace when a new patched package is published to `pkg.root.io` for your account. Each notification includes the package name, version, and ecosystem, so your team knows immediately when a secured version is ready to consume. Slack notifications require a one-time setup by the Root team. [Contact us](https://www.root.io/contact) to get started. # .NET - NuGet Source: https://docs.root.io/rlc/nuget Configure NuGet to use Root Library Catalog for secure .NET packages. Root Library Catalog supports NuGet packages for .NET projects. Patched packages are published under the `RootIO.` prefix at `pkg.root.io/nuget/` and can be consumed via the Root Patcher CLI or by adding Root as a NuGet package source. ## Prerequisites Install the Root Patcher CLI (`rootio_patcher`): ```bash theme={null} # macOS (Apple Silicon) curl -sL https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_darwin_arm64.tar.gz | tar xz chmod +x rootio_patcher && sudo mv rootio_patcher /usr/local/bin/ # Linux (x86_64) curl -sL https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_linux_x86_64.tar.gz | tar xz chmod +x rootio_patcher && sudo mv rootio_patcher /usr/local/bin/ ``` For macOS Intel and Windows, see the [full installation instructions](/rlc/patcher#installation). Then set your API key: ```bash theme={null} export ROOTIO_API_KEY="your-api-key-here" ``` *** ## How NuGet Patching Works Root publishes patched NuGet packages in two forms: | Package form | Name pattern | Version pattern | Use case | | ------------ | ----------------------- | ------------------------ | -------------------------------------- | | **Aliased** | `RootIO.{OriginalName}` | `{version}.12007{build}` | Explicit opt-in via `PackageReference` | | **Original** | `{OriginalName}` | `{version}.12007{build}` | Transparent drop-in replacement | Both forms contain identical patched source. The aliased form lets you reference the patched package explicitly; the original form is a drop-in that requires no `PackageReference` changes. *** ## Configure the Registry Add Root as a package source in your `NuGet.Config`: ```xml theme={null} ``` Keep your Root token out of source control. Use environment variable substitution or store credentials in a `NuGet.Config` outside your repository (e.g., `~/.nuget/NuGet/NuGet.Config`). *** ## Patch Dependencies Use the Root Patcher CLI to identify vulnerable NuGet packages and apply Root-patched versions: ```bash theme={null} # Preview available patches rootio_patcher nuget remediate # Apply patches rootio_patcher nuget remediate --dry-run=false # Specify a .csproj or solution file rootio_patcher nuget remediate --file=path/to/MyApp.csproj --dry-run=false ``` The patcher rewrites your `PackageReference` entries to use the aliased `RootIO.*` package name with the patched version: ```xml theme={null} ``` The aliased package is API-compatible with the original — no code changes are required beyond the `PackageReference` update. Then restore and build as usual: ```bash theme={null} dotnet restore dotnet build ``` *** ## CI/CD Configuration ### GitHub Actions ```yaml theme={null} - name: Set up Root token run: | dotnet nuget add source https://pkg.root.io/nuget/v3/index.json \ --name root-io \ --username root \ --password "$ROOT_TOKEN" \ --store-password-in-clear-text env: ROOT_TOKEN: ${{ secrets.ROOT_TOKEN }} - name: Restore and build run: | dotnet restore dotnet build --no-restore ``` ### GitLab CI ```yaml theme={null} before_script: - dotnet nuget add source https://pkg.root.io/nuget/v3/index.json --name root-io --username root --password "$ROOT_TOKEN" --store-password-in-clear-text build: script: - dotnet restore - dotnet build --no-restore ``` *** ## Troubleshooting | Issue | Solution | | -------------------------------- | -------------------------------------------------------------------------------------------------------------------- | | `401 Unauthorized` | Verify your Root token and that credentials are configured for the `root-io` source | | Package not found | Confirm `nuget.org` is still listed as a fallback source in `NuGet.Config` | | Hash/checksum mismatch | Expected - Root serves patched packages whose checksums differ from nuget.org originals | | Multi-project solution | Run the patcher at the solution (`.sln`) level to update all projects at once | | `RootIO.*` package not resolving | Ensure the `root-io` source is added and credentials are valid; aliased packages are only available on `pkg.root.io` | # Root Library Catalog Overview Source: https://docs.root.io/rlc/overview Secure application packages at pkg.root.io - patched by AVR for Python, JavaScript, Java, Go, .NET, and PHP ecosystems. Root Library Catalog (RLC) is a secure package registry at `pkg.root.io`. It mirrors the public package ecosystems your teams already use - PyPI, npm, Maven Central, Go modules, NuGet, Composer - and serves patched versions of vulnerable packages transparently. RLC works as a drop-in registry replacement. No dependency declarations change. No application code changes. You consume the same packages at the same versions; Root ensures they're free of known vulnerabilities. ## Supported Ecosystems | Ecosystem | Package Managers | Registry Endpoint | | ---------- | ----------------- | ----------------------- | | Python | pip, uv, Poetry | `pkg.root.io/pypi/` | | JavaScript | npm, pnpm, yarn | `pkg.root.io/npm/` | | Java | Maven, Gradle | `pkg.root.io/maven/` | | Go | Go modules | `pkg.root.io/gobinary/` | | .NET | NuGet | `pkg.root.io/nuget/` | | PHP | Composer *(Beta)* | `pkg.root.io/composer/` | Additional ecosystems including Ruby and Rust are under evaluation. Email [hello@root.io](mailto:hello@root.io) if these are important to your team. ## How Patched Packages Are Delivered RLC acts as a transparent proxy in front of the upstream registries. When you install a package through `pkg.root.io`: 1. Root's AVR pipeline has already scanned the package for known CVEs 2. If a vulnerability exists and a fix is available, AVR applies a Root Patch and publishes the secured artifact at `pkg.root.io` 3. Your package manager resolves and downloads the patched version - same name, same version string, no code changes required 4. The patched artifact ships with an updated SBOM and VEX statement documenting what was fixed For Python and Java, packages resolve transparently by version. For JavaScript, Root publishes patched packages under the `@rootio/` scope and uses `overrides`/`resolutions` in `package.json` to redirect resolution - no import statement changes needed. For Go, Root publishes patched modules with a `pkg.root.io/` prefix and uses `replace` directives in `go.mod` to redirect resolution. For .NET, Root publishes patched NuGet packages under the `RootIO.` prefix (aliased) or at the original package name with a patched version suffix (original form). For PHP, Root publishes patched packages as a Composer repository; the patcher updates `composer.json` with pinned version constraints and adds `pkg.root.io` as a repository source. ## Registry Endpoints | Ecosystem | Endpoint | Protocol | | ---------------------------- | ----------------------------------------- | ----------------------- | | Python (pip, uv, Poetry) | `https://pkg.root.io/pypi/simple/` | PEP 503 Simple Index | | JavaScript (npm, pnpm, yarn) | `https://pkg.root.io/npm/` | npm registry protocol | | Java (Maven) | `https://pkg.root.io/maven/` | Maven repository layout | | Go (Go modules) | `https://pkg.root.io/gobinary/` | GOPROXY protocol | | .NET (NuGet) | `https://pkg.root.io/nuget/v3/index.json` | NuGet v3 protocol | | PHP (Composer) | `https://pkg.root.io/composer/` | Composer repository | All endpoints require authentication. See [Authentication](/getting-started/authentication) for credential setup, or jump to the ecosystem guide for your stack. ## SBOM and VEX Coverage Every patched package published to `pkg.root.io` includes: * **SBOM** - a machine-readable inventory of all components and their versions after patching, in SPDX or CycloneDX format * **VEX statement** - documents which CVEs were fixed in this artifact and asserts non-exploitability of any remaining known findings * **Provenance attestation** - cryptographic proof that the artifact was produced by Root's AVR pipeline These artifacts are available via the Root platform UI, the API, and as package metadata. They give your security team and auditors a complete record of what Root changed and why the fix can be trusted. ## RLC vs. Standard Registries | | PyPI / npm / Maven Central / Go modules | Root Library Catalog | | ----------------------- | --------------------------------------- | -------------------------------------------------- | | Vulnerability count | Varies - packages ship as released | Root Patches applied before delivery | | Patching responsibility | Yours - wait for upstream or upgrade | Root's - automatic via AVR | | Remediation SLA | None | Critical: 7 days · High: 14 days · Medium: 60 days | | Security artifacts | None | SBOM, VEX, Provenance per package | | Version pinning | Required - upgrade to fix CVEs | Preserved - same version, CVEs removed | | Breaking changes | Possible on upgrade | None - patch-in-place | # Root Patcher CLI Source: https://docs.root.io/rlc/patcher Automatically identify and patch vulnerable dependencies across Python, JavaScript, Java, and Go projects using the rootio_patcher CLI. The Root Patcher CLI (`rootio_patcher`) scans your installed packages, queries Root's remediation API for available patches, and applies Root-fixed packages to your project - automatically. ## When to Use the Patcher There are two ways to consume Root-patched packages: | Approach | Best for | | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | | **Registry proxy** (`pkg.root.io`) | New projects, CI/CD pipelines, clean installs - point your package manager at Root's registry and packages arrive patched | | **Patcher CLI** | Existing environments, one-shot remediation, or projects where changing global registry config isn't practical | For Maven specifically, the patcher is the recommended approach - it resolves transitive dependencies and directly updates your `pom.xml` rather than requiring a full registry mirror configuration. *** ## Installation ### Linux (x86\_64) ```bash theme={null} curl -sL https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_linux_x86_64.tar.gz | tar xz chmod +x rootio_patcher sudo mv rootio_patcher /usr/local/bin/ ``` ### macOS (Apple Silicon - M1/M2/M3) ```bash theme={null} curl -sL https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_darwin_arm64.tar.gz | tar xz chmod +x rootio_patcher sudo mv rootio_patcher /usr/local/bin/ ``` ### macOS (Intel) ```bash theme={null} curl -sL https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_darwin_x86_64.tar.gz | tar xz chmod +x rootio_patcher sudo mv rootio_patcher /usr/local/bin/ ``` ### Windows (PowerShell) ```powershell theme={null} Invoke-WebRequest -Uri "https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_windows_x86_64.zip" -OutFile "rootio_patcher.zip" Expand-Archive -Path rootio_patcher.zip -DestinationPath . # Add rootio_patcher.exe to your PATH or run it directly ``` ### Verify ```bash theme={null} rootio_patcher --help ``` *** ## Configuration | Variable | Required | Default | Description | | ---------------- | ------------------ | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `ROOTIO_API_KEY` | For pip apply only | - | Your Root API key. **Not required** for dry-run — the analyze API is public. Required for the **Python** subcommand when running with `--dry-run=false`, because the patcher itself reinstalls packages from `pkg.root.io`. **Not required** by the patcher for the **npm**, **Maven**, or **Go** subcommands — those rewrite your manifest and rely on your package manager's existing `pkg.root.io` registry auth to pull the patched packages. | | `ROOTIO_API_URL` | No | `https://api.root.io` | Override Root API endpoint | | `ROOTIO_PKG_URL` | No | `https://pkg.root.io` | Override Root package registry | | `LOG_LEVEL` | No | `info` | `debug`, `info`, `warn`, or `error` | ```bash theme={null} # Needed only for `rootio_patcher pip remediate --dry-run=false` export ROOTIO_API_KEY="your-api-key-here" ``` **Free discovery, subscription to apply.** Root's `/v3/analyze/*` endpoints are public, so dry-run discovery has no credential requirements — anyone can run `rootio_patcher` against their project to see which packages have Root-patched fixes and which CVEs they resolve. Applying those patches still requires a Root subscription, because the patched packages are served from `pkg.root.io`, which is authenticated. Where the credential lives differs by ecosystem: * **Python**: the patcher does the `pip install` itself, so it needs `ROOTIO_API_KEY` set in its environment. * **npm / Maven / Go**: the patcher only rewrites your manifest. Authentication to `pkg.root.io` is handled by your package manager's own config (`.npmrc`, Maven `settings.xml`, or `GOPROXY`) when you run `npm install`, `mvn install`, or `go build ./...` after — see the ecosystem sections below. * **Composer**: the patcher rewrites `composer.json` and runs `composer update`. Authentication to `pkg.root.io/composer/` is passed via `COMPOSER_AUTH` — see the [Composer guide](/rlc/composer) for details. To get your API key, go to **Settings → Token Management** in the Root platform and click **Generate API Token**. *** ## Dry-Run Mode All commands run in dry-run mode by default - they preview what would change without modifying anything. This is recommended before applying patches for the first time. Dry-run uses Root's **public analyze API** and **does not require `ROOTIO_API_KEY`** for any ecosystem - you can run it with no Root account at all to discover whether your dependencies have Root patches available. ```bash theme={null} # Preview what would be patched - no API key needed rootio_patcher pip remediate # Apply patches (Python: patcher needs ROOTIO_API_KEY because it runs pip install) export ROOTIO_API_KEY="your-api-key-here" rootio_patcher pip remediate --dry-run=false ``` For `--dry-run=false`, see the per-ecosystem sections — the patcher itself only needs `ROOTIO_API_KEY` for **pip**, since it does the install. For **npm** and **Maven** the patcher only rewrites your manifest, and the auth to `pkg.root.io` is handled by your package manager when you run `npm install` / `mvn install` afterwards. Dry-run output shows the exact commands that would be run and which CVEs each patch resolves: ``` === DRY-RUN MODE === The following operations would be performed: 1. Package: requests @ 2.25.1 Patch (Aliased): rootio-requests @ 2.25.1+root.io.1 CVEs Fixed: [CVE-2023-32681] Commands: pip uninstall -y requests pip install --no-deps --index-url https://root:@pkg.root.io/pypi/simple/ rootio-requests==2.25.1+root.io.1 To apply these patches, run with --dry-run=false ``` *** ## Python - pip The patcher uses **post-install patching**: it reads your current environment with `pip list`, queries Root's public analyze API for available patches, then uninstalls vulnerable packages and reinstalls Root-patched versions. Because the patcher runs `pip install` itself against `pkg.root.io`, applying patches requires `ROOTIO_API_KEY` to be set in the patcher's environment. Dry-run does not. ```bash theme={null} # Preview - no key needed rootio_patcher pip remediate # Apply - patcher needs ROOTIO_API_KEY to install from pkg.root.io export ROOTIO_API_KEY="your-api-key-here" rootio_patcher pip remediate --dry-run=false ``` **Flags:** | Flag | Default | Description | | --------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | | `--dry-run` | `true` | Preview changes without applying | | `--python-path` | `python` | Path to a specific Python interpreter | | `--use-alias` | `true` | Install under Root's aliased name (e.g., `rootio-requests`) | | `--ignore` | - | Exclude `package@version` from patching (repeatable, comma-separated). Merged with `.rootioignore`. See [Ignoring Packages](#ignoring-packages). | To patch a specific virtual environment: ```bash theme={null} rootio_patcher pip remediate --python-path=./venv/bin/python --dry-run=false ``` *** ## JavaScript - npm, yarn, pnpm The patcher uses **pre-install patching**: it reads your lock file, queries Root's public analyze API, then injects `overrides` or `resolutions` into your `package.json`. You run your package manager's install command afterward to apply the changes. The patcher itself does **not** need `ROOTIO_API_KEY` - it only rewrites your manifest. The patched packages are pulled in by the subsequent `npm install` (or `yarn` / `pnpm`), which authenticates to `pkg.root.io` via your `.npmrc` - see [JavaScript registry setup](/rlc/javascript) for configuring that auth. ```bash theme={null} # npm (default) - no ROOTIO_API_KEY needed rootio_patcher npm remediate --dry-run=false # yarn rootio_patcher npm remediate --package-manager=yarn --dry-run=false # pnpm rootio_patcher npm remediate --package-manager=pnpm --dry-run=false ``` After running the patcher, run your package manager's install command (this is the step that needs `pkg.root.io` auth in your `.npmrc`): ```bash theme={null} npm install # or yarn install / pnpm install ``` **Flags:** | Flag | Default | Options | Description | | ------------------- | ------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | | `--dry-run` | `true` | - | Preview changes without applying | | `--package-manager` | `npm` | `npm`, `yarn`, `pnpm` | Which package manager to target | | `--ignore` | - | - | Exclude `package@version` from patching (repeatable, comma-separated). Merged with `.rootioignore`. See [Ignoring Packages](#ignoring-packages). | The patcher injects entries in the format `npm:@rootio/@` into the appropriate override field for your package manager: | Package manager | Field updated | | --------------- | ---------------- | | npm | `overrides` | | pnpm | `pnpm.overrides` | | Yarn 1 | `resolutions` | | Yarn 2+ (Berry) | `resolutions` | *** ## Java - Maven The patcher uses **pre-install patching**: it reads your `pom.xml` (and any multi-module submodules), queries Root's public analyze API, then rewrites dependency `groupId` and `version` values to use Root-patched equivalents. It also adds `` to prevent transitive re-introduction of vulnerable versions. The patcher itself does **not** need `ROOTIO_API_KEY` - it only rewrites your `pom.xml`. The patched artifacts are pulled in by the subsequent `mvn` build, which authenticates to `pkg.root.io` via your Maven `settings.xml` - see [Maven registry setup](/rlc/java) for configuring that auth. ```bash theme={null} # Preview - no ROOTIO_API_KEY needed rootio_patcher maven remediate # Apply - still no key needed by the patcher itself rootio_patcher maven remediate --dry-run=false # Specify a pom.xml path rootio_patcher maven remediate --file=path/to/pom.xml --dry-run=false ``` After running the patcher, rebuild (this is the step that needs `pkg.root.io` auth in your Maven `settings.xml`): ```bash theme={null} mvn clean install ``` **Flags:** | Flag | Default | Description | | ----------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | | `--dry-run` | `true` | Preview changes without applying | | `--file` | `pom.xml` | Path to the target `pom.xml` | | `--ignore` | - | Exclude `package@version` from patching (repeatable, comma-separated). Merged with `.rootioignore`. See [Ignoring Packages](#ignoring-packages). | For multi-module Maven projects, run the patcher from the root of the project. It will discover all submodule `pom.xml` files automatically. *** ## Go - Go modules The patcher uses **pre-build patching**: it reads your `go.mod`, queries Root's public analyze API, then adds `replace` directives pointing to Root-patched module aliases. After writing `go.mod`, the patcher automatically runs `go mod tidy` (and `go mod vendor` if a vendor directory is present). The patcher itself does **not** need `ROOTIO_API_KEY` - it only rewrites your `go.mod`. The patched modules are downloaded when `go mod tidy` runs (automatically) and when you build, which authenticates to `pkg.root.io`. There are two ways to configure that auth: * **Option A — `GOPROXY` with embedded credentials:** `GOPROXY=https://@pkg.root.io/gobinary,direct` * **Option B — `.netrc`:** `GOPROXY=https://pkg.root.io/gobinary,direct` (no credentials in URL) + a `~/.netrc` entry: `machine pkg.root.io login token password ` Both options are equivalent. `.netrc` is preferred for Docker builds because it avoids embedding credentials in a build argument. Only modules with pinned semver versions (e.g. `v1.2.3`) are analyzed. Modules using pseudo-versions (e.g. `v0.0.0-20230101123456-abcdef012345`) are skipped. If you have vulnerable pseudo-versioned dependencies, upgrade them to a pinned release first. ```bash theme={null} # Preview - no ROOTIO_API_KEY needed rootio_patcher go remediate # Apply - no key needed by the patcher itself; GOPROXY must be configured for go mod tidy to reach pkg.root.io rootio_patcher go remediate --dry-run=false # Specify a go.mod path rootio_patcher go remediate --go-mod=./submodule/go.mod --dry-run=false ``` After running the patcher, build your project (this is the step that needs `GOPROXY` to include `pkg.root.io`): ```bash theme={null} go build ./... ``` **Flags:** | Flag | Default | Description | | ----------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | | `--dry-run` | `true` | Preview changes without applying | | `--go-mod` | `go.mod` | Path to the target `go.mod` | | `--ignore` | - | Exclude `package@version` from patching (repeatable, comma-separated). Merged with `.rootioignore`. See [Ignoring Packages](#ignoring-packages). | Dry-run output shows the exact `replace` directives that would be added and which CVEs each patch resolves: ``` === DRY-RUN MODE === The following replace directives would be added to go.mod: 1. replace golang.org/x/net v0.17.0 => pkg.root.io/golang.org/x/net v0.17.0-root.io.1 CVEs Fixed: [CVE-2024-12345] 2. replace github.com/google/uuid v1.3.0 => pkg.root.io/golang/github.com/google/uuid v1.3.0-rootio.1 CVEs Fixed: [CVE-2024-67890] To apply these patches: 1. Run: rootio_patcher go remediate --dry-run=false 2. Then run: go build ./... ``` *** ## Ignoring Packages You can exclude specific `package@version` pairs from patching. Ignored entries are sent to Root's analyze API as an exclusion list, so they are skipped during analysis and never appear in dry-run output or get patched on apply. This is useful when a patch is known to break your build, when your security team has formally accepted the risk for a particular dependency, or when you want to scope remediation to a controlled subset. The ignore list is supported on every ecosystem subcommand (`pip`, `npm`, `maven`, `go`, `nuget`, `composer`) and is assembled from two sources, which are merged and de-duplicated. ### The `--ignore` flag Pass one or more `package@version` entries. The flag is repeatable and also accepts a comma-separated list: ```bash theme={null} # Repeatable rootio_patcher pip remediate --ignore=requests@2.25.1 --ignore=django@4.2.0 # Comma-separated rootio_patcher npm remediate --ignore=lodash@4.17.21,axios@1.6.0 ``` ### The `.rootioignore` file For a persistent, committed ignore list, create a `.rootioignore` file with one `package@version` per line. Blank lines and lines beginning with `#` are skipped: ``` # Patch breaks our build — revisit after the framework upgrade django@4.2.0 # Risk accepted by security team (SEC-1234) requests@2.25.1 ``` The patcher reads `.rootioignore` automatically from the directory of the manifest it is patching: | Ecosystem | `.rootioignore` location | | ----------------- | ------------------------------------------------ | | pip | current working directory | | npm / yarn / pnpm | the project `--directory` | | maven | same directory as `--file` (`pom.xml`) | | go | same directory as `--go-mod` (`go.mod`) | | nuget | the `--directory` (or the directory of `--file`) | | composer | same directory as `--file` (`composer.json`) | If no `.rootioignore` file is present, it is silently skipped. Entries from the file and from `--ignore` flags are combined. Matching is **exact** on both name and version — `django@4.2.0` ignores only that version. `django@4.2.1` would still be analyzed and patched. *** ## Vulnerability Gate Running `rootio_patcher` in dry-run mode (the default) is non-destructive — it checks for available patches and exits with a code that indicates the result. Use this to fail a pipeline or trigger an alert without touching any files. | Exit code | Meaning | | --------- | ------------------------------------------------- | | `0` | No patches needed — all packages are up to date | | `1` | Error (bad config, API failure, unexpected panic) | | `2` | Patches are available — action required | ```bash theme={null} rootio_patcher npm remediate # --dry-run=true is the default case $? in 0) echo "All packages are up to date." ;; 2) echo "Patches available — please remediate." ; exit 1 ;; *) echo "Unexpected error." ; exit 1 ;; esac ``` *** ## CI/CD Dry-run discovery has no credential requirements. For apply, the credential lives in different places depending on ecosystem - on the patcher for pip, on the package manager step for npm and Maven. ### GitHub Action A reusable composite action runs the vulnerability gate — it calls `rootio_patcher` in dry-run mode and **fails the job** if patches are available. No files are modified. ```yaml theme={null} - uses: rootio-avr/rootio_patcher/.github/actions/rootio-patch@main with: api-key: ${{ secrets.ROOTIO_API_KEY }} ecosystem: npm # pip | npm | maven | go | nuget | composer ``` **Inputs:** | Input | Required | Default | Description | | ------------------- | -------- | --------- | ------------------------------------------------------------ | | `api-key` | Yes | — | Root.io API key | | `ecosystem` | Yes | — | `pip`, `npm`, `maven`, `go`, `nuget`, or `composer` *(Beta)* | | `working-directory` | No | `.` | Repo subdirectory to run in (e.g. `services/api`) | | `package-manager` | No | `npm` | *(npm)* `npm`, `yarn`, or `pnpm` | | `directory` | No | `.` | *(npm)* Project directory containing the lock file | | `python-path` | No | `python` | *(pip)* Path to Python interpreter | | `use-alias` | No | `true` | *(pip)* Use Root.io aliased packages | | `file` | No | `pom.xml` | *(maven)* Path to `pom.xml` | Advanced settings (`ROOTIO_API_URL`, `ROOTIO_PKG_URL`, `ROOTIO_PIP_INDEX_URL`, `LOG_LEVEL`) are not inputs — pass them as environment variables on the calling step: ```yaml theme={null} - uses: rootio-avr/rootio_patcher/.github/actions/rootio-patch@main env: ROOTIO_PIP_INDEX_URL: https://my-private-index.example.com/simple/ with: api-key: ${{ secrets.ROOTIO_API_KEY }} ecosystem: pip ``` **Outputs:** | Output | Description | | ------------------- | --------------------------------------------------------------------- | | `patches-available` | `"true"` if patches were found, `"false"` if everything is up to date | #### Block a PR if vulnerabilities exist ```yaml theme={null} name: Security Check on: [pull_request] jobs: vuln-check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: rootio-avr/rootio_patcher/.github/actions/rootio-patch@main with: api-key: ${{ secrets.ROOTIO_API_KEY }} ecosystem: npm package-manager: npm ``` #### Warn without blocking ```yaml theme={null} - uses: rootio-avr/rootio_patcher/.github/actions/rootio-patch@main id: vuln-check continue-on-error: true with: api-key: ${{ secrets.ROOTIO_API_KEY }} ecosystem: npm - if: steps.vuln-check.outputs.patches-available == 'true' run: echo "Patches available — consider remediating soon." ``` ### Apply patches in CI To remediate (not just check), run the patcher with `--dry-run=false` and commit the result: **Dry-run discovery** (any ecosystem, no Root subscription needed): ```yaml theme={null} - name: Discover available Root patches run: rootio_patcher pip remediate ``` **Apply - Python (pip)**: the patcher does the install, so it needs `ROOTIO_API_KEY`: ```yaml theme={null} - name: Patch vulnerable dependencies run: rootio_patcher pip remediate --dry-run=false env: ROOTIO_API_KEY: ${{ secrets.ROOTIO_API_KEY }} ``` **Apply - npm**: the patcher rewrites `package.json` with no key; the following `npm install` authenticates to `pkg.root.io` via your `.npmrc` (which can use `${ROOTIO_API_KEY}` for the registry token): ```yaml theme={null} - name: Patch and install run: | rootio_patcher npm remediate --package-manager=npm --dry-run=false npm install env: ROOTIO_API_KEY: ${{ secrets.ROOTIO_API_KEY }} ``` **Apply - Maven**: same shape — the patcher edits `pom.xml` with no key; the subsequent `mvn` step authenticates via your `settings.xml`. **Apply - Go**: the patcher rewrites `go.mod` and auto-runs `go mod tidy`. Configure `GOPROXY` to include `pkg.root.io` and supply credentials via one of these options: **Option A — `GOPROXY` with embedded credentials:** ```yaml theme={null} - name: Patch and build run: | rootio_patcher go remediate --dry-run=false go build ./... env: GOPROXY: "https://${{ secrets.ROOTIO_API_KEY }}@pkg.root.io/gobinary,direct" ``` **Option B — `.netrc` (recommended for Docker builds):** ```yaml theme={null} - name: Patch and build run: | echo "machine pkg.root.io login token password ${{ secrets.ROOTIO_API_KEY }}" >> ~/.netrc chmod 600 ~/.netrc rootio_patcher go remediate --dry-run=false go build ./... env: GOPROXY: "https://pkg.root.io/gobinary,direct" ``` *** ## Source `rootio_patcher` is open source under the Apache 2.0 license: [github.com/rootio-avr/rootio\_patcher](https://github.com/rootio-avr/rootio_patcher) # Python - pip, uv, Poetry Source: https://docs.root.io/rlc/python Configure pip, uv, and Poetry to use Root Library Catalog for secure Python packages. Root Library Catalog supports pip, uv, and Poetry. All three use the same registry endpoint and credential approach. ## Prerequisites The Root Patcher CLI (`rootio_patcher`) is required to pull Root-secured packages into your environment. Install it before configuring your package manager. ```bash theme={null} # macOS (Apple Silicon) curl -sL https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_darwin_arm64.tar.gz | tar xz chmod +x rootio_patcher && sudo mv rootio_patcher /usr/local/bin/ # Linux (x86_64) curl -sL https://github.com/rootio-avr/rootio_patcher/releases/latest/download/rootio_patcher_linux_x86_64.tar.gz | tar xz chmod +x rootio_patcher && sudo mv rootio_patcher /usr/local/bin/ ``` For macOS Intel and Windows, see the [full installation instructions](/rlc/patcher#installation). Then set your API key: ```bash theme={null} export ROOTIO_API_KEY="your-api-key-here" ``` ## Which tool should I use? If you're starting fresh or choosing between tools, here's a quick guide: | Tool | Best for | | ---------- | ------------------------------------------------------------------------------------------------------------- | | **pip** | Simple projects, scripts, or any environment where a `requirements.txt` is sufficient | | **uv** | Fast installs, modern Python projects, `pyproject.toml`-based workflows - uv is significantly faster than pip | | **Poetry** | Projects that need dependency locking, packaging, and publishing in one tool | All three tools read credentials from `~/.netrc` and resolve packages through `pkg.root.io/pypi/simple/`. The configuration steps differ only in how you point each tool at Root's registry. ## Authentication All three tools read credentials from `~/.netrc`. Add your Root token: ```bash theme={null} echo "machine pkg.root.io login token password YOUR_ROOT_TOKEN" >> ~/.netrc chmod 600 ~/.netrc ``` *** ## pip ### Configure the registry ```bash theme={null} pip config set global.index-url https://pkg.root.io/pypi/simple && pip config set global.extra-index-url https://pypi.org/simple ``` ### Install Add the package to your `requirements.txt`: ``` requests==2.31.0 ``` Then install: ```bash theme={null} pip install -r requirements.txt ``` *** ## uv ### Configure the registry Add to your `pyproject.toml`: ```toml theme={null} [[tool.uv.index]] name = "root" url = "https://pkg.root.io/pypi/simple/" ``` ### Install and sync ```bash theme={null} uv add requests==2.31.0 uv sync --upgrade ``` *** ## Poetry ### Configure the registry ```bash theme={null} poetry source add --priority=primary root https://pkg.root.io/pypi/simple/ && poetry source add --priority=supplemental pypi ``` ### Install ```bash theme={null} poetry add requests==2.31.0 poetry update ``` *** ## CI/CD Configuration Inject credentials via environment and write to `~/.netrc` at build time: ```bash theme={null} echo "machine pkg.root.io login token password $ROOT_TOKEN" >> ~/.netrc chmod 600 ~/.netrc ``` ## Troubleshooting | Issue | Solution | | ------------------ | ------------------------------------------------------------------------ | | `401 Unauthorized` | Verify `~/.netrc` has correct token and `chmod 600` is set | | Package not found | Confirm `extra-index-url` includes PyPI as fallback | | SSL errors | Ensure you're using `https://` not `http://` | | Hash mismatch | Root serves patched packages - hashes differ from PyPI; this is expected | # Root Patches for Packages Source: https://docs.root.io/rlc/root-patches How Root Patches are applied to application packages - patch types, validation, and accessing patch metadata. A Root Patch is the smallest safe fix for a vulnerable package. For application packages, Root Patches target the vulnerable code within a specific package version - without bumping to a newer release unless necessary. ## What Gets Patched Root Patches address vulnerabilities in application packages across supported ecosystems: * **Python** - packages on PyPI (e.g., `requests`, `cryptography`, `django`) * **JavaScript** - npm packages (e.g., `axios`, `lodash`, `express`) * **Java** - Maven artifacts (e.g., `log4j-core`, `spring-core`, `jackson-databind`) Root patches the specific version you declared in your dependency file. Your `requirements.txt`, `package.json`, or `pom.xml` version string does not change - only the vulnerability is removed. ## Two Patch Types ### Backported Patches Root takes the security fix from a newer upstream version and applies it to the exact version you declared. This is the preferred approach: * Your declared version stays the same (e.g., `django==4.2.0` remains `4.2.0`) * The fix is applied in-place to that version * Lockfiles remain stable - no `pip-compile` or `npm install` re-run needed (for Python and Java) * Downstream dependencies that require a specific version continue to resolve correctly This is the same technique Linux distributions use to maintain long-term support branches - the same package version, with the security fix applied. ### Native Distribution Package Upgrades When the package maintainer has already released a patched version that is safe to upgrade to, Root applies the maintainer's own update. Root evaluates this path when: * The upstream patch is a clean, minimal security-only fix * No breaking API changes were introduced in the patch version * The upgrade is safe for the version constraint you declared ## How Patches Are Applied Without Version Bumps Root patches packages in its registry at `pkg.root.io`. When you configure your package manager to use `pkg.root.io`, it resolves your declared version to Root's patched variant transparently. For Python and Java, this is completely transparent - the version string is unchanged. For JavaScript, packages are published under the `@rootio/` scope (since npm doesn't allow republishing under the original name), and your `package.json` uses `overrides` / `resolutions` to redirect: ```json theme={null} { "dependencies": { "axios": "1.6.0" }, "overrides": { "axios": "npm:@rootio/axios@1.6.0" } } ``` Your application code still imports `axios` - resolution is handled transparently. ## Viewing Patch History for a Package **Via the Root platform UI:** Navigate to the Libraries section and find the package you're interested in. The library report shows: * Which CVEs were fixed and when * The patch type applied for each fix * The full remediation timeline **Via the Root API:** ```bash theme={null} # Get patches for a specific package version curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://api.root.io/v1/packages/{pkgID}/artifacts/patches" # Get provenance for a specific package version and architecture curl -H "Authorization: Bearer $ROOT_TOKEN" \ "https://pkg.root.io/packages/ecosystems/{ecosystem}/packages/{name}/versions/{version}/provenance/{arch}" ``` The patch feed is also publicly accessible: ```bash theme={null} # Get all patches for a specific ecosystem curl "https://api.root.io/external/patch_feed?ecosystem=pypi" curl "https://api.root.io/external/patch_feed?ecosystem=npm" curl "https://api.root.io/external/patch_feed?ecosystem=maven" ``` ## SBOM and VEX for Patched Packages Every patched package includes updated security artifacts: **SBOM:** Updated to reflect the patched version of the vulnerable component. Download from the Root platform or API to confirm what's in the patched package and use it in your supply chain tooling. **VEX statement:** Asserts non-exploitability for each patched CVE. Import into Grype, Trivy, or your ASPM to suppress patched findings from scanner output. **Provenance attestation:** A cryptographic record of Root's AVR pipeline - which patch was applied, which tests passed, and when the fix was delivered. See [Provenance](/concepts/provenance). ## Patch Freshness SLA Root commits to having a patch available within: | Severity | SLA | | -------- | ----------------------------- | | Critical | 7 days after CVE publication | | High | 14 days after CVE publication | | Medium | 60 days after CVE publication | When no upstream fix exists for a vulnerability, it enters **No Fix Available** status. Root monitors continuously and begins remediation automatically as soon as an upstream fix is available. See [Vulnerability Statuses](/concepts/vulnerability-statuses) for the complete status breakdown.