JFrog Xray — Policies, Watches, Impact Analysis, Errors and Mistakes
How Xray turns vulnerabilities into violations through watches and policies, and finds every stored artifact that contains a CVE. Covers blocked downloads, indexing gaps, ignore rules, mistakes, and proving after the fact what reached production.
Overview
JFrog Xray is the software composition analysis service of the JFrog Platform. It scans what you store in Artifactory (repositories, builds, Release Bundles) and builds a dependency graph of every component inside. When a new CVE is published, Xray re-checks that graph instead of rescanning every binary, so it can tell you which stored artifacts contain the vulnerable component.
Most production trouble with Xray comes from three places.
- Coverage gaps. A repository was never added to indexing, a watch does not include it, or the scan data aged out of the retention period. Xray then reports nothing, and nothing looks the same as safe.
- Enforcement surprises. A policy with Block Download or Block Unscanned starts returning 403 to a build or a production deployment, often during an incident or right after a policy change.
- Questions Xray alone cannot answer. Xray knows what an artifact contains. It does not know whether that artifact ran in production. Proving that needs promotion records, logs and the deployment system.
> [!IMPORTANT] > Xray scan data is not kept forever. Since Xray 3.41.4 the default retention is 90 days for indexed repositories and 15 days for indexed builds, and garbage collection removes the artifact data and its related violations. Plan any retroactive investigation around that.
Which subscription gives you what
Xray features are spread across JFrog's editions, and several of the most useful ones are add-ons. JFrog's self-managed feature matrix and its docs give this picture.
- JFrog Xray and Impact Analysis come with Pro X, Enterprise X and Enterprise+. They are not in Non-commercial.
- Xray high availability is included in Enterprise X and built into Enterprise+. Pro X does not have it.
- JFrog Advanced Security adds Contextual Analysis, SAST, secrets and misconfiguration (IaC) scanning. It is an add-on available with Enterprise X or Enterprise+.
- The policy criteria Skip not applicable CVEs and Skip if not in Runtime need JFrog Advanced Security. Skip if not in Runtime also needs a connected Runtime controller, and it applies to Docker images only.
- Exposures reports are for Advanced Security customers only.
- Curation, which blocks packages at the remote repository, needs Enterprise X or Enterprise+ plus JFrog Catalog. The minimum versions are Artifactory 7.63.5 and Xray 3.78.2, or Xray 3.82.11 behind a proxy.
- JFrog Runtime is not listed in the self-managed feature matrix, so confirm it with JFrog.
- Release Bundle v2 is split by tier on the Release Lifecycle Management page. Creating and promoting bundles needs Pro or above. Scanning them with Xray needs Pro X or above. Xray policies that control promotion or distribution need Enterprise X or above. Distributing them needs Enterprise+.
Key concepts
- Indexed resource
- Vulnerability
- Violation
- Watch
- Policy rule
- Impact Analysis
- Apply on Existing Content
- Ignore rule
- Block unscanned
- Retention period
Interview questions
- Your security team wants to retroactively prove that no artifact affected by a newly disclosed CVE was ever deployed to prod over the last few months. How do you actually answer that, given Xray policies only started blocking new builds going forward.
- Xray started blocking downloads of an artifact that production deployments depend on during an incident. What are your options, and what do you check before you unblock anything?
- What is the difference between a vulnerability and a violation in Xray, and why does it matter operationally?
- A CVE was published today. How does Xray flag artifacts uploaded months ago, and when would it miss them?
- You created a new watch for your production repositories, but artifacts that clearly contain critical CVEs show no violations. Why, and how do you fix it?
- Builds with critical vulnerabilities keep passing CI even though you have a policy with Fail Build. What do you check?
- How do you handle false positives without creating blind spots?
- After enabling Block Unscanned Artifacts, pip installs start timing out. What is happening and what are your options?
- Xray stopped indexing new artifacts, but every service reports healthy. How do you troubleshoot?
- An auditor asks for an SBOM and license evidence for a release. What can Xray produce and in which formats?
- Which JFrog subscription do you need for Xray, Advanced Security and Curation, and what does each add?
- Someone created an ignore rule months ago for a critical CVE with no expiry and no scope. How do you find and fix this class of problem?
Sign up free to read the full topic
More DevOps topics
- Internal Developer Platforms
- Internal Developer Platforms (IDPs) & Backstage
- Jenkins
- Jenkins Controller vs Agent Architecture
- Jenkinsfile — Pipeline as Code
- JFrog Artifactory — Production Administration, Errors and Mistakes
- Karpenter — Node Autoscaling
- kubectl CLI Command Reference
- Kubernetes — Stuck Rollouts, Version Upgrades and Mistakes
- Kubernetes Admission Control
- Kubernetes AI and GPU Scheduling
- Kubernetes API Aggregation
Start free on Cariara · Coding problems · System design studio