northstar edge
Version 4.8 Stable release

Documentation / Operator guide

Run dependable edge services without the operational guesswork.

Northstar Edge is a lightweight request router for distributed applications. It combines connection management, streaming responses, health reporting, and policy controls in one auditable service.

Deployment
Single binary
Default port
8080
Configuration
YAML

01

Quick start

This guide installs a single gateway with a local configuration file. A Linux host with systemd, two CPU cores, and 512 MiB of available memory is sufficient for evaluation.

Before you begin

Use a dedicated service account and keep administrative endpoints on a private network. The examples below use northstar as the service user.

1. Install the service

Download the release from your internal artifact mirror, verify its checksum, and place the binary in /usr/local/bin.

sudo install -m 0755 northstar-edge /usr/local/bin/northstar-edge
sudo useradd --system --home /var/lib/northstar --shell /usr/sbin/nologin northstar
sudo install -d -o northstar -g northstar /etc/northstar /var/lib/northstar

2. Create a minimal configuration

The listener accepts public application traffic. The administrative listener is separate and should never be exposed to the internet.

cat > /etc/northstar/gateway.yaml <<EOF
listener: 127.0.0.1:8080
admin_listener: 127.0.0.1:9090
upstream: https://api.example.com
request_timeout: 30s
stream_flush: immediate
EOF

3. Verify the process

northstar-edge validate --config /etc/northstar/gateway.yaml
systemctl enable --now northstar-edge
curl --fail http://127.0.0.1:9090/health/ready

02

Configuration model

Configuration is loaded once at startup. Changes are validated before a reload is accepted; an invalid update leaves the previous worker set running.

Listeners

Separate public and administrative sockets. Loopback is the default for metrics, diagnostics, and configuration operations.

Upstream pools

Define multiple origins with bounded connection pools, explicit timeouts, and passive health tracking.

Request policy

Apply header allowlists, body limits, and route-specific deadlines without changing application code.

Complete route example

routes:
  - name: documents
    match:
      path_prefix: /v1/documents
    upstream: document-api
    timeout: 20s
    headers:
      allow: [accept, authorization, content-type, x-request-id]
    limits:
      request_body: 2MiB
      concurrent_streams: 128

Route order matters. Put the most specific path first and finish with a catch-all route that returns a controlled 404 response.

03

Streaming API

Long-lived responses use incremental delivery. Disable response compression on streaming routes and keep intermediary buffers small enough that events reach clients promptly.

Client request

curl --no-buffer https://edge.example.com/v1/events \
  -H 'Accept: text/event-stream' \
  -H 'X-Request-ID: 7b9d4f32'

Event format

Each event contains an identifier, an event name, and a UTF-8 data payload. Clients should resume from the last acknowledged identifier after a reconnect.

id: 01842
event: document.updated
data: {"document":"spec-17","revision":42}
Proxy requirement

If you place another proxy in front of Northstar, use unbuffered upstream delivery and disable gzip or zstd for this route. Static assets can continue to use compression.

04

Operations

Operational readiness depends on more than a running process. Monitor upstream latency, stream disconnects, file descriptors, and memory alongside ordinary request metrics.

Deployment checklist

  1. Validate the configuration in the target environment.
  2. Confirm readiness from an external host, not only from localhost.
  3. Exercise one buffered request and one streaming request.
  4. Verify that the previous release remains available for rollback.
  5. Review logs for certificate, resolver, and upstream errors.

Safe reloads

northstar-edge validate --config /etc/northstar/gateway.yaml && \
  systemctl reload northstar-edge
journalctl -u northstar-edge --since '-2 minutes'

05

Security baseline

Keep the data plane and control plane separate. Public listeners should expose only documented application routes; administration belongs on a private overlay or loopback interface.

  • Use least privilege. Run the daemon as an unprivileged system account with read-only configuration access.
  • Restrict management traffic. Require authenticated private-network access and keep public management ports closed.
  • Rotate credentials. Store API secrets in a protected credential store rather than in route definitions.
  • Patch deliberately. Test stable releases in staging and retain the previous binary until verification is complete.

Environment variables

NORTHSTAR_CONFIG

Overrides the default configuration path.

NORTHSTAR_LOG_LEVEL

Accepts error, warn, info, or debug.

NORTHSTAR_SHUTDOWN_GRACE

Controls how long workers wait for active streams during shutdown.

Health endpoints

/health/live reports process liveness. /health/ready additionally checks configuration validity and upstream availability. A ready instance returns HTTP 200 with a short JSON document.

{"status":"ready","config_revision":18,"upstream":"healthy"}

Release notes · 4.8

Improved stream cancellation, added bounded upstream pools, and made configuration reloads atomic. Administrative listeners now default to loopback on new installations.

Last documentation update: November 2026 · Operator guide revision 18