Edgeweir
Getting started

Concepts

Control plane objects, how they relate, how configuration reaches the nodes, and the identities that access the console.

Objects

ConceptDefinitionSee
SiteA set of domains with the origins, cache, HTTPS, rules and protection settings they share. It belongs to one cluster and cannot move to another after creationCreate a site, Site management
DomainA request Host the site matches: exact, wildcard (*.a.com), suffix (.a.com) or regex (~). A domain in one form belongs to one site onlyDomains
OriginAn address, port and protocol the site fetches from (HTTP, HTTPS or S3-compatible object storage)Origins and cache
Origin poolAll origins of a site, with load balancing, health checks, timeouts and keepalive; one per sitePool settings
Origin groupA group label on an origin, empty for the default group; rules can send requests to another groupOrigin groups
L4 appForwards TCP connections or UDP sessions on one port of every node of a cluster to originsL4 forwarding
CertificateAn uploaded or ACME-issued TLS certificate that sites' HTTPS settings referenceHTTPS and certificates
ClusterA set of nodes and the sites and L4 apps assigned to them. Listening ports, the revision sequence, the DNS binding and scheduling rules are per clusterClusters
Node groupA group of nodes inside a cluster, optionally with a region. DNS lines, backup node groups, the configuration canary and node upgrades work on node groups; every cluster has a default node group defaultNode groups
NodeA host running edgeweir-node (agent and OpenResty). It enrolls with a one-time install command and then connects to the node channel over mTLS with its client certificate. It is online with a heartbeat in the last 45 secondsNodes, Enroll nodes
RegionA platform-wide location label (name and code) referenced by node groups and regional probesRegions
Regional probeA probing process running in a region that probes every node's scheduling addresses from there; a node can also act as oneRegional probes
RevisionA cluster's complete node configuration (NodeConfig) with a revision number increasing within the cluster and a content hash. A change to node configuration publishes a new revision in the same transaction; identical content publishes noneRevisions
Snapshot and diffA node asks for configuration with the revision it has applied; the node channel returns a full snapshot or a diff against that revision. The node checks the hash, keeps it as last-known-good and then applies itConfiguration delivery
Configuration canaryA per-cluster release policy: a new revision goes to canary node groups first, reaches every node after the observation window passes, and rolls back otherwiseConfiguration canary
Node taskPurges (URL, directory, Host, Cache-Tag, whole site) and preloads (URL, sitemap): no revision, sent as tasks to the cluster's enabled nodesOrigins and cache
DNS bindingA cluster's DNS steering settings: mode, provider account, cluster domain, TTL and linesDNS steering
DNS revisionA snapshot of a cluster's DNS binding and its records, separate from configuration revisionsDNS revisions and rollback
Scheduling ruleA rule that changes a cluster's DNS records by node metrics or probe resultsScheduling rules
AccountThe console's only operator account, created by the setup wizardAccount and sign-in
AccessKeyA key that calls /api/v1 as the account, starting with ewk_; scope read-only or read-writePersonal settings
Service accountA separate identity for integrations calling /api/v1; it cannot sign in. Keys start with ews_ and call only the procedures their scopes allowService accounts
Audit logRecords of management actions: actor, action, target, origin and metadata; the console's own changes commit with their audit entries in one transactionAudit log

Relationships

ObjectBelongs toCount and constraints
Node groupClusterAt least one per cluster (the default node group); names are unique within the cluster
NodeNode groupOne node group per node; it moves only between node groups of its cluster
Node group → regionRegionZero or one region; deleting the region clears it
Regional probeRegionOne region; a region with probes cannot be deleted
SiteClusterAt most 512 enabled sites published per cluster
L4 appClusterAt most 256 per cluster; ports come from the cluster's port pools
DomainSiteZero or more per site
Origin poolSiteOne per site
OriginOrigin poolEach origin may carry an origin group label
CertificatePlatformSeveral sites may reference one certificate; a referenced certificate cannot be deleted
RevisionClusterThe latest 200 are kept per cluster
DNS bindingClusterOne per cluster; with mode Not managed nothing is written to DNS
DNS revisionClusterThe latest 200 are kept per cluster
Scheduling ruleClusterActs on all lines of the cluster's DNS binding or one of them
AccessKeyAccountCreated only in a signed-in console
Service account keyService accountZero or more per service account; deleting the service account invalidates all

Configuration delivery

  1. The console writes the business tables in one transaction, compiles the cluster's NodeConfig and computes its content hash; when it differs from the previous revision it writes a new revision and notifies every console instance.
  2. The console notifies the cluster's nodes over their WatchConfig stream.
  3. The node calls GetConfig with its applied revision, receives a snapshot or a diff, checks the hash, keeps it as last-known-good and applies it to OpenResty.
  4. The node reports its applied revision and heartbeat with ReportStatus; the console shows Applied revision, sites' rollout state and the DNS address set from it.
ItemBehavior
Target revisionWithout a canary, the cluster's latest revision; during a canary, the candidate revision for canary nodes and the stable revision for the others
Node capabilitiesWhen the configuration needs a capability a node lacks, that node shows Needs upgrade and keeps its configuration, see Revisions
Console unreachableNodes keep serving with the last configuration they applied
RollbackPublishes a new revision with the chosen revision's content and keeps the history, see Revisions

The node channel protocol and authentication: Architecture.

Access identities

IdentityCredentialEntryPermissions
Account (session)Session cookie and CSRF headerWeb UI, /rpcEverything
AccessKeyx-api-key: ewk_…/api/v1Read-write: as the session, except creating or changing keys; read-only: GET procedures and rules.validate
Service accountx-api-key: ews_…/api/v1The service account procedures its scopes allow
NodeInstall token ewt_… (single use), then a client certificateNode channel (default :8443)Node RPCs
Regional probeEnrollment token ewp_… (single use), then a client certificateNode channelProbe RPCs only

Tokens are stored as SHA-256 only. Audit log actor types: User, Access key, Service account, Node, Probe and System. Endpoints and request formats: API and endpoints.

Edit on GitHub

On this page