New Three new products: fordway trading ERP, UEPS cloud rendering and WPECS delivery and operations View products →

Delivering into offline networks: WPECS's artifact repository, download engine and vulnerability management

Engineering By SREYUN 0 views

A private delivery site is often an isolated network: servers can reach each other, but none can reach the internet, or only one jump host can, and slowly. Installing dozens of components there starts with one question: where do the packages come from?

The artifact repository: download once, push many times

In WPECS's default "automatic" mode, packages are downloaded once by the platform into its artifact repository and pushed to each node. Nodes need no internet access, and a file needed by several hosts or deployment steps at the same time is downloaded only once. Nginx comes from nginx.org's official rpm / deb packages, and Docker, Compose, btop and ncdu from official static binaries, all downloaded into the repository by the platform and installed locally with rpm / dpkg on the nodes, without relying on yum or apt repositories. Only components without universal upstream binaries (such as Keepalived and HAProxy) use the system repositories.

A download engine that finishes on flaky networks

Every package declares several download URLs in the catalog, usually domestic mirrors first and the official URL last. When the platform downloads, it:

  1. Probes every source concurrently, fetching only the first 4 KB and skipping soft 404s (mirrors that answer HTTP 200 with a web page for missing files), wrong formats (such as a .tar.gz whose header is not gzip), sizes that disagree with other sources, and 404 / 403 / 410 responses, with the reason logged;
  2. picks the fastest source by response time;
  3. downloads in segments over several connections: files over 16 MB on sources that support ranges use 4 connections by default, and segments can come from the 3 fastest sources at once, which helps a lot with official archives that throttle single connections;
  4. detects stalls and resumes: after 60 seconds without data it disconnects and resumes from where it stopped or moves to the next source;
  5. verifies: after download it checks size and file header again, and for the 16 components with upstream checksums (Kafka, ZooKeeper, Hadoop, Flink, Spark, Prometheus, Grafana and others) it downloads the official checksum files and rejects anything that does not match, protecting against tampered mirrors.

Download acceleration settings let you configure a proxy (http, https or socks5, with credentials stored encrypted), connections per file, GitHub acceleration prefixes, and mirror rules that map official URLs to an internal Nexus or Artifactory. When a host's yum or apt repositories are unavailable (most commonly after CentOS 7 / 8 reached end of life and the official repositories went away), system repository acceleration switches to the vault repositories of a domestic mirror you choose.

Fully offline: export per architecture, import with one command

  1. On a WPECS instance with internet access, open Artifact repository, Batch download, choose the target CPU architecture (x86_64, ARM64, LoongArch and more), operating system and scope (all components, one solution or selected components), and download the missing files into the repository;
  2. export what is in the repository as a tar bundle whose first file is a SHA256SUMS list;
  3. copy the tar to the offline platform and import it in the web console (not limited by the single-file upload size, since the server imports while receiving) or run wpecs artifact import <tar> on the platform host;
  4. every file is checked against the SHA-256 list; a file that fails is skipped on its own with the reason listed, and every import is recorded in the audit log.

WPECS itself is a single static binary for seven architectures (amd64, arm64, loong64, riscv64, ppc64le, s390x and armv7), so the platform installs offline too.

Offline LLMs

To deploy an offline LLM on a customer's GPU servers, choose the offline LLM inference solution in the wizard: the NVIDIA GPU driver (an offline .run package including Fabric Manager) and the vLLM inference service (an OpenAI-compatible API) install offline, and the parameters step recommends a model, precision and parallelism based on the GPU model, count and memory.

Vulnerability management in an offline network

Once a system is delivered, high-risk vulnerabilities in its components need ongoing tracking. Every day at a scheduled time (time zone configurable), WPECS updates its vulnerability data and compares it with the component versions of every deployed and adopted service:

  • Data sources: the NVD by default, matched precisely against the CPE version ranges declared for each CVE (inclusive or exclusive bounds), with CVSS scores and the CISA "known exploited" flag; vulnerabilities with CVSS 7.0 or above, or known to be exploited, are recorded. Alibaba Cloud's vulnerability database is optional (via an internal mirror or an imported saved page).
  • System software: OpenSSH, OpenSSL, sudo, glibc, Bash, curl, systemd, polkit and XZ Utils on the hosts are matched too, with hints about distribution backports so distribution package versions are not mistaken for upstream versions.
  • A closed loop: a hit raises a critical alert (with the vulnerability ID, component version, service and fix advice) and moves from open to in progress to fixed or ignored (with a reason); after an upgrade it is re-checked and closed automatically when it no longer matches.
  • Statistics and export: multi-dimensional statistics with drill-down by software, version, host, project, service, operating system, vulnerability and data source; a software distribution view lists the hosts of each version; reports and lists export to Excel.
  • Offline-ready: where the NVD is slow to reach from China, configure a proxy or an internal mirror compatible with CVE API 2.0; isolated networks can import and export the vulnerability database.

For running web applications, WPECS also offers non-destructive web vulnerability scanning: it scans only adopted or explicitly authorized targets, identifies itself, rate-limits and sends no attack payloads, and finds exposed Actuator endpoints, heap dumps and Swagger, security header and TLS settings, leaked stack traces and sensitive files such as .git and .env, with results exportable to Word, PDF and Excel.

In short

In an offline network, "it installs" depends on the artifact repository and multi-architecture packages, "it installs the right thing" on upstream checksums and SHA-256 lists, and "it stays safe afterwards" on a vulnerability database that can be updated offline and checked continuously. All three happen in one platform. Learn more on the WPECS product page.

Related articles