Docker WAF v3 is the appliance generation of the original theonemule/docker-waf
project. The appliance is named LiteEdge and is a lightweight reverse proxy and web
application firewall built around NGINX, ModSecurity, and the OWASP Core Rule Set.
It replaces the fixed demo proxy with a JavaScript single-page management UI,
versioned JSON API, and shell-based control plane.
The original v1/v2 repository is preserved unchanged on the legacy-v1-v2 branch.
The LiteEdge management interface is a single-page application with an
HTTP Basic-protected, versioned JSON API. It uses JavaScript fetch for
navigation data, mutations, imports, exports, and full backup/restore without
form postbacks or full-page reloads. See SPA/API architecture.
Server Settings → Full Backup & Restore downloads a complete archive of
persistent configuration and certificates, excluding logs, or validates and
restores that archive with automatic rollback on NGINX validation failure.
See full backup and restore.
Optional route-level traffic protection uses native NGINX controls: allowlists of
IPv4/IPv6 addresses or CIDR blocks (403 for unlisted clients), per-route and
per-connecting-IP request rates in requests/second or requests/minute (429 when
exceeded), and configurable maximum request body size (413 on excess). All are
opt-in. Empty body size inherits the site's 4m NGINX setting; rate 0 disables
limiting. Behind a trusted proxy, configure client-IP trust before enabling
client-specific rules. Configure these controls under Sites → Routes → Edit.
Recent changes are summarized in CHANGELOG.md. For operating multi-backend sites and alerting on health checks, see Site routing and health operations.
For offline physical-server installation, see the minimal bare-metal ISO guide. The release includes full binaries plus separate bootable VM and bare-metal ISOs.
The distributable product is a pre-built Alpine/musl release bundle. The same bundle is consumed by both the hardened Docker image and the standalone Alpine installer. Production deployments do not need a compiler toolchain.
The management plane is intentionally small:
- Alpine Linux runtime
- NGINX built from source with the ModSecurity-nginx connector compiled in
- libModSecurity with Lua 5.3 scripting support plus OWASP Core Rule Set
- Bash command/control scripts plus a narrowly scoped Python 3 backup/archive utility
- fcgiwrap to expose shell CGI behind NGINX
- HTTP Basic Authentication using an OpenSSL SHA-512 password hash
- Bootstrap 5.3.9 CSS pinned and verified during the appliance build
- Flat-file persistent configuration
- No Node.js server, PHP, database, or web application framework; Python 3 is used only for safe backup/archive operations
Release v3.3.1 provides a single in-place upgrader for Docker Compose
and native Alpine/OpenRC installs. It does not reset credentials, sites,
certificates, WAF settings, observability configuration, or persistent logs.
The upgrader is pinned to v3.3.1, verifies the Alpine archive's SHA-256,
and backs up configuration before activation and restores it with the prior runtime on failed activation.
After the release has been published, download the script and its checksum from the LiteEdge v3.3.1 release:
curl -fLO https://github.com/theonemule/docker-waf/releases/download/v3.3.1/upgrade-liteedge.sh
curl -fLO https://github.com/theonemule/docker-waf/releases/download/v3.3.1/upgrade-liteedge.sh.sha256
sha256sum -c upgrade-liteedge.sh.sha256
chmod +x upgrade-liteedge.shFor an existing Docker Compose installation, run from anywhere and
specify its directory containing docker-compose.yml, .env, and data/:
./upgrade-liteedge.sh --mode docker --compose-dir /path/to/liteedgeThe Docker upgrade pulls ghcr.io/theonemule/docker-waf:v3.3.1,
modifies only LITEEDGE_VERSION in the existing .env, re-creates
the service via Compose, and verifies container health. Compose overrides,
custom environment values, credentials, and authoritative data/ configuration are preserved. The upgrader verifies the actual installed runtime version, including installations using a local mutable tag. Pin the previous image locally before upgrading if that tag no longer identifies the installed container. If activation fails,
it restores the configuration snapshot and .env, then attempts to relaunch the prior image.
For a standalone Alpine/OpenRC installation:
sudo ./upgrade-liteedge.sh --mode alpineThis verifies and stages the official x86-64 runtime archive before stopping
LiteEdge. It swaps /opt/liteedge, updates the OpenRC service and NGINX
file capability, and checks the restarted service. On failure the original
executable tree and service definition are restored. Persistent configuration in /var/lib/liteedge and /etc/conf.d/liteedge is retained; rollback restores the pre-upgrade configuration. Logs are excluded from the snapshot.
Use --no-start only for an intentionally stopped Alpine maintenance
upgrade. A new install should use the release installers instead.
To validate the upgrade paths locally, run bash tests/test-upgrade.sh
and bash tests/test-upgrade-alpine.sh (the latter requires Docker). The release gate also migrates real v3.1.5 and v3.1.6 container state, verifies routing and WAF behavior, and tests restart. Earlier 3.x sources are supported by the version guard, but deployments with custom NGINX or older configurations should be staged first.
Each release asset contains the complete LiteEdge runtime under /opt/liteedge:
- NGINX
- libModSecurity
- OWASP Core Rule Set
- dehydrated ACME client
- LiteEdge shell control/API scripts
- Versioned JSON management API exposed through CGI
- Static single-page management interface (HTML, JavaScript, and Bootstrap)
- Bootstrap assets
- NGINX and ModSecurity templates
- OpenRC service definition
- standalone Alpine installer
- build/version manifest and third-party licenses
The source build is pinned in build/versions.env. scripts/build-release.sh performs a serial Alpine build by default so it also works on small build hosts. The release workflow publishes the generated tarball, SHA-256 checksum, version-bound Docker installer, and Compose file with checksum for version tags. Currently, release assets and the runtime image target x86_64 only; Alpine aarch64 installation is rejected until native aarch64 assets are published.
Each virtual host defines its host name and aliases, while reverse-proxy behavior is owned by its routes. Routes support prefix, exact, and regex matches, separate upstream URLs, WebSocket upgrades, timeouts, and HTTP-to-HTTPS redirection.
Each site can be temporarily disabled and re-enabled without deleting its routes, certificates, or settings. Route creation and editing use dialogs instead of large inline editors. A route can use a single backend or an NGINX upstream pool with round-robin, least-connections, client-IP hashing, or cookie-based affinity. Optional HTTP health probes emit backend-down/recovered events for Logs and Alerts. Active probes monitor and notify, while open-source NGINX performs passive upstream failure handling. See Site routing and health operations for configuration, defaults, alert recipes, and limitations.
OWASP CRS policy is route-scoped. Each route can enable or disable the WAF, select
PL1 through PL4, select installed CRS plugins and application rule-exclusion plugins,
and maintain route-only disabled rule IDs. Generated routes using the bundled,
unmodified CRS share one compiled base ruleset per NGINX configuration generation;
route-local transaction controls and exceptions remain isolated. The shared base
is loaded lazily only when a protected HTTP location needs it. Transport listeners
do not use ModSecurity. Plugin-dependent policies, enabled custom rules, imported
or manually modified configurations, and operator-managed CRS releases retain
the complete ordered ruleset for compatibility. See
Shared WAF rule architecture. The OWASP page manages application profiles
and other plugins separately, allows editable plugin configuration with transactional
rollback, exposes core CRS rules through a searchable management dialog, and maintains
custom rules and global exclusions. LiteEdge periodically checks the official OWASP CRS
release feed, surfaces newer stable releases in the UI, and can download or manually
import a CRS source bundle. Opening the SPA OWASP page also performs an
asynchronous, authenticated check-only GET /api/v1/owasp/crs/check request.
The displayed available version and update status refresh automatically without
installing or downloading rules; clicking Check updates reruns that same check. Updated CRS releases are stored in persistent LiteEdge data
and are staged, validated against NGINX and ModSecurity, and rolled back automatically
if activation fails. OWASP configuration exports include an active managed CRS release.
Each host supports three certificate modes:
- Imported PEM certificate and private key, validated before activation.
- Self-signed certificate generated locally for the host and aliases.
- Let's Encrypt using the shell-based dehydrated ACME client with HTTP-01.
Let's Encrypt certificates are checked twice daily by a small shell renewal loop. No cron daemon or systemd is required inside the container.
Open Sites and select Disable next to a hostname, or use Manage → Disable site. The site stays in the inventory, its routes and TLS certificates are retained, and requests receive HTTP 503. The button then changes to Enable; select it to restore the saved routing configuration. Disabling also affects the site's HTTP-01 challenge paths, so re-enable the site before renewing its TLS certificate. Newly created and existing sites are enabled by default. After an Enable/Disable action, the UI returns to the same view you used: the Sites overview stays on the overview, and an individual site editor stays on that site.
Open Sites → Manage → Routes → Configure to edit a route in a modal (or Add route to create one). All backend endpoints appear as individual URL rows within Backend pool. Click Add backend to insert another row or Remove beside any endpoint. There is no separate primary-target input or multi-line URL text box. Choose a load-balancing method, passive failure threshold and timeout. Pools support up to 16 endpoints with matching base paths, and single-backend routes keep their existing behavior.
The route editor includes an Allowed HTTP methods selector. All methods are
allowed by default for backward compatibility; use Select All to reset the
checkboxes, or choose only the verbs the endpoint needs. Other methods receive
HTTP 405 before the request reaches the backend.
Enable URL rewrite under Backend request transformation to transform the
path sent to the backend. Enter an anchored NGINX-compatible regular expression
and a replacement path. For example, ^/legacy/(.*)$ with /v2/$1 sends
/legacy/users?id=1 upstream as /v2/users?id=1. Disable the switch to leave
the original path unchanged. Captured groups use $1 through $9; the usual
query-string preservation rules apply. Changes are validated with nginx -t and
rolled back if the generated configuration fails validation.
Use the Additional backend X-headers text area for static values, one per
line, such as X-App-Route: api-v2. The custom header list is optional. For
security, LiteEdge does not allow replacing its forwarding identity headers
or injecting raw NGINX expressions into header values.
The same dialog offers an optional active HTTP health probe. Its defaults are
a /health path, expected HTTP 200, 30-second interval, 5-second
request timeout, three consecutive failures to declare down, two successes
to declare recovered, and a 300-second notification cooldown. Checks are
off by default. The worker records changes as health events; configure
a Backend health alert with action Backend down, threshold 1, and
a notification destination to receive an outage alert. Action Recovered
can notify on recovery.
Active probe results do not automatically remove endpoints from NGINX's
upstream rotation. Passive NGINX max_fails and fail_timeout settings
handle request-time failure exclusion. This distinction is documented in
Site routing and health operations.
For offline physical-server installation, see the minimal bare-metal ISO guide. The release includes full binaries plus separate bootable VM and bare-metal ISOs.
Clone the repository and run:
git clone https://github.com/theonemule/docker-waf.git
cd docker-waf
./install.sh
Alternatively, download install-docker.sh from a v3 GitHub Release into an
empty directory and run it with Bash (downloads do not retain executable
permissions):
bash install-docker.sh
To run it directly with ./install-docker.sh, first use
chmod +x install-docker.sh. It downloads and verifies the matching release's
docker-compose.yml before installing. Released installers default to their
own versioned image tag; repository checkouts default to latest. Set
LITEEDGE_REPO=OWNER/REPO to use a different GHCR repository and release source.
On first run the installer creates .env, generates a random admin password,
prepares the persistent data directory for the unprivileged container user, pulls
ghcr.io/theonemule/docker-waf, and starts it.
Open:
https://127.0.0.1:8443/
The web proxy uses public ports 80/443; administration is not available on
those ports. Admin HTTPS binds only to loopback by default. For private LAN
access, set LITEEDGE_ADMIN_BIND_IP=10.0.1.2 (use the actual appliance LAN IP)
in .env and restart the Compose service. Never forward the admin port from
an internet router. The initial admin certificate is self-signed and Basic Auth
credentials are provided by the installer.
To enable Let's Encrypt, edit .env and set:
ACME_EMAIL=you@example.com
Then restart:
docker compose up -d
For HTTP-01 issuance, the host name and aliases must resolve to this server and TCP port 80 must be reachable from the Internet.
The Compose deployment runs LiteEdge as UID/GID 10001, uses a read-only root filesystem, drops all Linux capabilities, enables no-new-privileges, sets a PID limit, and provides only /data plus a small /tmp tmpfs as writable storage. NGINX listens on container ports 8080 (website HTTP), 8443 (website HTTPS), and 9443 (admin HTTPS), mapped to public host ports 80/443 and private host 8443 respectively. The CGI worker runs as the same unprivileged LiteEdge user.
The same release bundle can be installed directly on Alpine Linux. After downloading scripts/install-alpine.sh, run it as root:
./install-alpine.sh
To install a specific release:
./install-alpine.sh --version v0.1.0
The standalone service runs as the locked-down liteedge account. Only the NGINX binary receives CAP_NET_BIND_SERVICE, allowing the unprivileged process to bind ports 80 and 443. Persistent state is stored under /var/lib/liteedge, configuration under /etc/conf.d/liteedge, and OpenRC manages the service.
LITEEDGE_BIND_ADDRESS controls the address used by every generated NGINX listener
and defaults to 0.0.0.0. LITEEDGE_PUBLIC_HTTPS_PORT controls the port emitted in
HTTP-to-HTTPS redirects independently of the internal HTTPS listener. This allows an
appliance to bind LiteEdge only to 127.0.0.1 while a firewall publishes arbitrary
external HTTP and HTTPS ports through DNAT.
In Docker, persistent state is under the ./data bind mount:
data/
auth/ Basic Auth password file
sites/ host and route definitions
certs/ active host certificates
acme/ ACME account, challenges, and issued certificates
logs/ access events, WAF audit, probe/worker and certificate renewal logs
observability/ alert rules, sink settings, cursors and probe health state
nginx/ generated runtime NGINX configuration and upstream pools
waf/ CRS defaults, registry cache, plugins, and custom rules
www/ local static site content
The UI never writes NGINX configuration directly. Shell utilities validate submitted values, render generated virtual-host configuration, run nginx -t, and only keep the generated configuration if validation succeeds.
The UI calls the same scripts that can be used manually inside the container:
/opt/liteedge/bin/sitectl.sh list
/opt/liteedge/bin/sitectl.sh save \
app.example.com proxy http://app:8080 "" "" 1 1 0
/opt/liteedge/bin/sitectl.sh route-add \
app.example.com prefix /socket/ http://socket:9000 1
/opt/liteedge/bin/sitectl.sh disable app.example.com
/opt/liteedge/bin/sitectl.sh enable app.example.com
/opt/liteedge/bin/certctl.sh selfsigned app.example.com
/opt/liteedge/bin/certctl.sh letsencrypt app.example.com
The management UI and all versioned API endpoints are protected by Basic Auth on a separate HTTPS listener. Client-side navigation stays within the same page and uses authenticated JSON API requests rather than form postbacks. Administrators' Basic credentials remain browser-managed, not JavaScript-stored. Mutation APIs require an explicit custom header and same-origin browser context. Unknown public HTTP hostnames receive 404 and unknown public HTTPS SNI is rejected. The browser-side UI doesn't depend on inline styles or inline scripts. The UI uses no client-side application framework and loads its Bootstrap stylesheet locally.
Generated NGINX configuration receives baseline security headers. Route WAF policies use ModSecurity with the bundled OWASP Core Rule Set and optional installed CRS plugins. HTTPS virtual hosts use TLS 1.2 and 1.3 plus HSTS.
All mutable application state and generated NGINX configuration live outside /opt/liteedge. The release tree is immutable at runtime. Configuration mutations are transactional: generated NGINX configuration is validated before activation and state is rolled back if validation or reload fails.
Per-site Advanced NGINX edits are tracked as a delta from the last generated baseline. When UI or certificate changes regenerate a site, LiteEdge uses a three-way merge to carry forward only the manual delta. Conflicts stop activation rather than overwriting manual changes. Per-site CRS rule IDs can also be disabled and re-enabled from the UI.
Sites can be exported and imported as portable .tar.gz bundles. A bundle contains
site settings, routes, WAF overrides, and the Advanced NGINX manual delta rather than
generated NGINX files. Site or all-sites exports can optionally include active
certificates and private keys. Imports are transactional and certificates are only
replaced when certificate import is explicitly selected.
A Docker engine is required. The build compiles ModSecurity and NGINX inside pinned Alpine and packages the complete runtime:
./scripts/build-release.sh 0.1.0
The default native build concurrency is one job. A larger build machine may opt into parallel compilation with BUILD_JOBS, but release validation does not require it.
Artifacts are written to dist/:
liteedge-linux-musl-x86_64.tar.gz
liteedge-linux-musl-x86_64.tar.gz.sha256
Validate the shell sources with:
for f in install.sh entrypoint.sh bin/*.sh cgi/*.sh scripts/*.sh; do
bash -n "$f"
done
Run ShellCheck:
shellcheck -x install.sh entrypoint.sh bin/*.sh cgi/*.sh scripts/*.sh
Validate Compose:
ADMIN_PASSWORD=test docker compose config
The standalone appliance is the primary build artifact. GitHub Actions compiles ModSecurity and NGINX in a dedicated appliance build job using the pinned Alpine toolchain and publishes the resulting Alpine/musl runtime bundle, checksum, and installers as workflow artifacts.
The Docker build is deliberately separate. The Dockerfile does not compile NGINX or ModSecurity. It only installs runtime libraries and expands the already-built appliance bundle into the image. This keeps the standalone appliance and container on the exact same binaries.
Each ISO is built and uploaded in a separate matrix job. Both container images are built once and saved with checksums and immutable image IDs. Runtime, kind, QEMU and Gateway conformance qualification each load and verify those same images in separate jobs. A failed matrix job can be retried without repeating successful sibling jobs. Publication depends on all matrix jobs and final artifact verification; no qualification gate is optional.
The first-Friday monthly regression uses this same workflow and never publishes. The separate controller workflow is an optional manual fast check. CI163 is a single runner, so the matrices deliberately run one job at a time; adding runners requires revisiting the shared host/test isolation constraints. QEMU download inputs are cached on the runner and verified against pinned hashes on every use; source compilation and test execution remain fresh.
For release-readiness of build-pipeline changes, require three consecutive full, first-attempt qualification passes on the same Git commit. The repeatability workflow invokes the canonical build three times sequentially with distinct artifact versions and publication disabled. A failed pass stops the sequence, and the acceptance job refuses rerun attempts. A retry of a failed job can aid diagnosis but does not count toward this streak. Check the native build, both ISO variants, all four container qualification suites and final artifact verification on each run. No manually bypassed checks count. The ISO build pins its aports commit and records a SHA256 inventory of the staged APK packages alongside each ISO. Build-only APK installation uses bounded mirror fallback. Alpine stable repositories still receive security updates; input manifests distinguish package changes between runs. Identical ISO bytes are not currently guaranteed because APK repositories evolve and ISO signing keys are generated per build.
Ordinary pushes to master and feature branches build and qualify CI artifacts
without publication. To publish an explicitly authorized release, push the
matching v3.* tag, or push a commit to master whose exact subject is
Publish release v<version> (matching build/release.env). The latter creates
the release tag from the qualified commit after all gates pass.
The release workflow publishes the versioned appliance and controller images,
the appliance aliases v3 and latest, the controller alias v1, and attaches
the checksummed standalone appliance, both ISOs, installers and Helm chart
to a GitHub Release.
The Logs page combines structured NGINX access events, normalized ModSecurity rule matches, and optional health probe state-change events. Events include timestamp, hostname, route match/pattern, external listener port, internal listener and upstream address (including backend port), HTTP method/status, path, client IP, request ID and WAF rule/message/disposition. Filter by hostname, route, method, HTTP status or status class (2xx–5xx), port, free-text, and Unix timestamp. Download up to 1,000 filtered events as JSONL or CSV; the view also searches up to seven compressed rotated log archives. Only the URI path is collected from NGINX; query strings, request/response bodies, credentials and cookies are not copied into centralized JSON event logs.
The Alerts page defines conditions over HTTP, WAF, and backend-health events
with event-count thresholds, rolling windows and cooldown periods. Each rule
delivers to an HTTPS webhook or SMTP email. WAF prevention is done by the OWASP CRS intervention engine,
not by ad-hoc alert scripts. Rule matches and blocked decisions appear in the Logs
screen. The exporter/notification worker runs independently of NGINX so a failed
collector doesn't interrupt the reverse proxy. Health probes run in a
separate Bash worker (health-worker.sh), and store failure/recovery state
under /data/observability/health. Probe transitions are logged in
/data/logs/events.jsonl; worker diagnostics go to
/data/logs/health-worker.log.
Server Settings → Log Export configures one external sink: RFC 5424 syslog
(UDP, TCP, or certificate-verified TLS), HTTPS JSON (Generic, Splunk HEC,
Datadog Logs, or Elasticsearch Bulk), or OpenTelemetry logs using OTLP/HTTP
JSON. The selected exporter determines which transport and endpoint controls
are visible; inactive controls are not submitted. For OpenTelemetry, configure
the complete logs endpoint, e.g. http://otel-collector:4318/v1/logs on a
trusted local network, or https://collector.example.com/v1/logs for a
TLS-secured destination. OTLP uses HTTP POST, content type application/json,
a configurable service.name resource attribute (default liteedge),
and carries typed original liteedge.* event attributes. OTLP/gRPC, metrics,
and traces are not implemented by this log exporter. Credentials require HTTPS;
unauthenticated HTTP is supported for internal OTLP collectors. An existing
saved bearer/API token is retained only when the exporter, provider and URL
remain unchanged, so changing destinations cannot silently reuse credentials. Configure SMTP for email
alerts separately in Server Settings → SMTP email for alerts. Set an SMTP
hostname, STARTTLS port (default 587), sender address, optional username,
and password, then save. The SMTP form preserves an existing password when left
blank; saving log export configuration cannot clear the SMTP setup.
Log Export has its own Save button on Server Settings. The old
/admin/collector URL redirects to that section, and saving export settings
returns to it. Server Settings appears last in the sidebar.
Tokens and SMTP passwords are stored in mode 0600 files
under /data/observability and never displayed in the form after saving.
Events live under /data/logs/events.jsonl; ModSecurity source audit logs are
stored in /data/logs/modsec_audit.json and normalized into central events.
A rotation policy limits each active log to 25 MiB with seven compressed copies,
using copytruncate for uninterrupted writes. Worker failures appear in
/data/logs/observability-worker.log; the worker retries export/notifications,
with delivery cursors and alert cooldown state persisted under /data/observability.
Run bash tests/test-observability.sh for filtering, synthetic WAF
normalization, alert delivery/cooldown and legacy collector validation. Run
bash tests/test-otlp.sh for OTLP/HTTP payloads, security and retry handling,
and node tests/test-spa-exporter.js for exporter-specific form controls.
The Alerts editor uses multi-select dropdowns populated from the configured site
inventory. Select one or more site hostnames or aliases; the route dropdown then
shows only the NGINX locations or managed routes associated with those sites.
A selected alias filters events by that actual requested hostname, while route
choices remain associated with their owning site. The editor supports editing
existing rules. No host selection means any host, and no route selection means
any route for the selected hosts; choosing routes narrows alerts to the selected
host-and-route combinations. For migrated NGINX sites, route definitions are
also discovered from the saved location blocks, even if .route files have
not been created. Paths are matched for prefix/exact patterns when the migrated
NGINX configuration does not emit explicit route labels. Selections are validated
against the server-side inventory on save, and older scalar host/route rules
continue matching as before. Test via bash tests/test-alert-selectors.sh.
The Logs SPA uses searchable checkbox multi-selects for hosts/aliases
and site-dependent routes, just as the previous interface did. Hostnames and aliases come from the configured site
inventory. Route options are read from managed routes and migrated NGINX
location blocks. Select multiple hostnames or aliases, then optionally
restrict each selected host to one or more of its routes. Leaving host selection
blank means all hosts; leaving routes blank for a selected hostname includes
all its requests. Matching uses actual request hostnames and either NGINX route
labels or request URI prefix/exact/regex matches for imported routes.
Selected hosts/aliases and routes remain selected across searches and SPA
navigation. The SPA encodes them as an inventory-validated scopes_json array,
using exactly the same filters for search results, CSV exports and JSONL exports.
Filters persist across submissions and are applied server-side to the Logs
screen, CSV downloads and JSONL downloads. The search-text field starts empty
rather than showing a literal template variable; the browser saves filter
values and selected hosts/routes within the current tab session, while
explicit submitted URL parameters take precedence. The backend validates
requested host/route combinations against the current inventory. Older host/route query
parameters still work for bookmarked URLs. Run bash tests/test-log-selectors.sh
for multi-site, aliases, WAF events, status classes and tampered-filter cases.
LiteEdge can convert preserved NGINX virtual hosts into managed site and route records without dropping legacy location-level behavior. Import is an explicit, offline staging operation, never a blind startup overwrite:
python3 scripts/import-native-nginx.py --data /path/to/copied/data --dry-run
python3 scripts/import-native-nginx.py --data /path/to/copied/dataThe importer reads data/migration/sites/*.conf and already-registered
data/sites/*.site, producing a .route for each native location and
per-site templates under data/imported/sites/. NGINX server-level settings
and location-specific auth, request limits, redirects, health checks, ACME
exceptions, WebSocket headers, and certificate references remain preserved.
Proxy target, location path/match, timeout and WAF enablement on imported proxy
routes participate in generated NGINX configuration, and route additions or
deletions also affect the output. Imported custom return/ACME locations appear
in the Routes inventory and remain editable via Advanced NGINX rather than
being incorrectly presented as reverse proxies.
The runtime checks for data/imported/sites/<hostname>/template.conf and
regenerates the site from managed route records, replacing the former opaque
config-copy approach. No certificates, private keys, or API keys are checked
into source control. The original native configuration and site state should
be backed up and its behavior verified on isolated ports before cutover.
An imported TLS certificate is retained as mode=imported and is not
silently enrolled for automatic renewal. Configure and validate automated
renewal separately before certificate expiration. Run
bash tests/test-native-nginx-migration.sh to check importer idempotence,
custom locations, managed proxy edits, WAF, timeouts and route creation.
Each site's TLS panel stores its own validated Let's Encrypt contact email in the persistent certificate directory and provides Save email independently of Issue / renew. A global ACME_EMAIL environment value is an optional fallback for sites without an override. ACME accounts and registration metadata are isolated by hostname under /data/acme/sites, allowing different accounts and contact addresses. Renewal reuses the saved contact for each issued site.
Migrated NGINX sites originally containing unconditional HTTP redirects must serve /.well-known/acme-challenge/ without redirecting. For those imported sites, use scripts/enable-imported-acme-http01.py on a copied data directory before production migration. The script preserves ordinary redirect behavior, recognizes existing HTTP challenge routes, and is idempotent.
Global NGINX migration maps are now included in every regenerated runtime configuration, not solely by a one-time startup patch. Remove the legacy one-time map injection from a migrated custom entrypoint before deploying this change. This prevents OWASP CRS updates from losing $allow_access and other custom variables.
CI runs fast backend validation and test fixtures, then builds the appliance and executes the management HTTP regression suite against a disposable, authenticated Docker container before publishing the image. Tests exercise all 35 current management POST actions (using isolated mocked backends for network/destructive actions), real site/route CRUD, server settings, alerts, collector configuration, certificate-contact validation, authentication, unsafe-input rejection, raw import/export method restrictions, filterable HTTP and WAF log events, CSV and JSONL exports. A route-contract test fails when a POST handler is added or removed without updating the HTTP regression matrix.
Run locally with a built container image:
bash tests/test-lb-health.sh
bash tests/test-http-api-regression.sh ghcr.io/theonemule/docker-waf:latest
python3 tests/test-http-api-coverage.py
node tests/test-logs-ui.jsThe API test container has no mount of production data, and the fast non-container test suite runs before building the image. Calls that would contact the CA, fetch CRS updates, or reach external notification systems are stubbed in the HTTP dispatcher phase; the actual certificate/CRS/alerts implementations retain their separate backend tests. This is broad automated regression coverage, not a substitute for a dedicated end-to-end test against external ACME and notification providers.
Opening Logs no longer queries event files. Choose at least one hostname, event type, status, method, port, timestamp or text filter and then click Search logs. An accessible loading state appears during the request, and results/empty states render after it completes. Blank queries, including blank CSV/JSONL exports, are rejected. Search state and selected hosts/routes are retained across filter submissions and browser Back navigation.
Imported or manually customized MCP routes sometimes include an opaque
authorization value in their URL path. An opt-in NGINX access format,
liteedge_mcp_json, allows those locations to record status, method, host,
timing and upstream outcome while replacing the route label with
[redacted] and the URI with /mcp. This is not automatic for every
route: the sensitive location must explicitly use the redacted log format.
Avoid putting private URL paths or credentials into ordinary access logs.
See Site routing and health operations.
Go to Server Settings → Administrator password and enter the current password, a new password, and confirmation. The authenticated password-change endpoint validates the existing SHA-512-crypt HTTP Basic Auth credential, atomically updates the persisted data-volume htpasswd file, and requires the new password for subsequent requests. Passwords are transmitted to the helper over standard input, not command-line arguments, and never logged. This change survives container rebuilds. If the current password is lost, the machine administrator must reset the authentication file from the host; no unauthenticated web reset is provided.
Each release now also produces liteedge-vm-installer-VERSION-x86_64.iso and its SHA-256 checksum, alongside the standalone Linux binaries and Docker image. GitHub Actions builds the standalone binaries once. The Docker and ISO jobs consume that same verified artifact, so their included LiteEdge version matches. A tagged v3 release publishes the ISO as a GitHub Release asset; main-branch and PR builds retain the ISO as a workflow artifact for 30 days.
The bootable ISO is made with Alpine Linux 3.22's native mkimage tool,
using the x86_64 virtual-machine kernel, BIOS (ISOLINUX) and UEFI (GRUB) boot loaders.
It contains the full signed, dependency-closed Alpine APK repository needed
for the OS installation and LiteEdge runtime, plus the compiled LiteEdge
archive and checksum. Building the ISO requires internet access;
installing an Alpine/LiteEdge VM from the ISO does not. The VM must
have at least 2 GB RAM, a 4 GB virtual disk (8 GB recommended), a network
adapter, and a mounted virtual CD/DVD drive. Use an ordinary virtual BIOS
or UEFI VM. UEFI Secure Boot is not supported by the unsigned GRUB loader.
- Verify the ISO against its adjacent
.sha256and mount it on the VM. Boot the VM from the ISO, and log in asroot(no password in the installer live environment). - Run
sh /etc/liteedge-offline/vm-iso-install.sh. Select the target virtual disk, explicitly confirm erasure, and complete Alpine's normal prompts to set the LiteEdge web admin username and password (hidden entry, with confirmation), then the separate OS root password and network/SSH configuration. The installer configures the on-ISO APK repository and runssetup-alpinein system-installation mode. It does not download packages, look up GitHub releases, or need a working internet connection. - Once Alpine reports disk installation complete, eject the ISO and
reboot. The included one-time OpenRC
local.dservice extracts and installs LiteEdge from the offline bundle on first boot. It uses the administrator password configured interactively during ISO installation; it does not generate a second password. - Open
https://VM_IP:8443/and sign in with the LiteEdge web admin username and password you chose during setup (default username:admin). T
See LightEdge Kubernetes controller · Shared file HA for the scoped provider API, controller, Helm chart, support limits and installation instructions.