Islandr

Self-hosted WireGuard management platform. Peer lifecycle, RBAC access control, nftables enforcement.

Islandr[Software System]Islandr Backend[Container: Quarkus 3 / Java 25 (native binary)]auth[Component: JAX-RS + CDI] Session management, local login(per-user PBKDF2 password or ENVadmin), OIDC callback, adminbootstrap (seeds admin@local),session filter. Progressive loginthrottle per account and sourceaddress. WebAuthn ceremonies forthe recovery admin, withvertx-auth-webauthn as protocolengine behind Islandr own endpointsand session cookie, offeredalongside the password on the loginscreen and managed from Settings— never instead of the password —plus an offline credential reset atstartup viaISLANDR_WEBAUTHN_RESET for thelockout case (ADR-0028).identity[Component: CDI] OIDC provider registry, JWKS cache,ID token verification.peer[Component: JAX-RS + CDI + @Scheduled] Peer lifecycle (create, enable,disable, delete), QR code generation,activity poller, traffic-rankingaggregation. A peer can be flagged aroadwarrior (traveling, untrustednetworks) and an owner canself-share one of their own ports witha named colleague, time-limited,read directly by the ruleset builder.acl[Component: JAX-RS + CDI] Sites, Resources, ResourcePorts,Roles, RoleResourceGrants, ACLmatrix API. Browser-RDP WebSocketproxy (IronRDP RDCleanPath) with aper-port zero-trust grant check.On-demand reachability probe for ashared resource, since the browseritself cannot connect() to anarbitrary LAN address. A site of kindexternal (a partner network) carriesup to 16 address ranges, the first onthe site and the rest in a separatetable; each range is routed todevices, masqueraded through thehub and covered by grants.firewall[Component: CDI] Full ruleset computation from ACLmodel, nft -c -f validation, atomic nft-f reload. Real/Mock/DryRunadapters. A boot-time table keepsthe hub closed until Islandr isenforcing (ADR-0031). An externalnetwork gets one masquerade andone grant rule per address range.wg[Component: CDI] WireGuard CLI adapter.Real/Mock/DryRun implementationsselected via islandr.wg.mode config.user[Component: JAX-RS + CDI] User management, avatar resolution(Gravatar → MS365 photo →deterministic initials). Publishes userlifecycle events (created, updated,enabled, disabled, deleted — local,OIDC sign-in, Google Workspaceimport, external API) to webhooksonce the change has committed.audit[Component: CDI] Immutable append-only audit log.Written on every mutating actionacross all packages.settings[Component: JAX-RS + CDI] Runtime instance settings (WGconfig, private key retention, OIDCproviders, trusted reverse proxies).Stored in DB, audited.dashboard[Component: JAX-RS + CDI] Dashboard aggregation: online peercount, audit summary, firewallstatus, peer-traffic ranking for thecurrent or last month, topologypeer-status counts(connected/stale/disconnected).Keeps an in-memory per-minutehistory of DNS queries for the DNStile.dns[Component: CDI] Minimal DNS resolver(UDP/best-effort TCP :53), opt-in inSettings. Authoritative for themanaged resource zone(Resource.dnsName plus any furthernames of the same resource, all withthe one address), ACL-filteredanswers (NXDOMAIN for resourcesthe querying peer has no grant on);everything else forwarded upstreambyte-for-byte, unparsed. Alsoauthoritative for the hub itself(hub.<zone> plus an optional alias)and for every peer under its ownname, without an ACL check for thehub (the ruleset filters forwardedtraffic, not traffic to the hub) andgated by ownership or an activeself-share for a peer name. AnswersA and AAAA (a resource's optionalsecond address; other record typesget an empty answer) and PTR fortunnel addresses with the samevisibility as the forward lookup.Every resolvable name is taggedhub/peer/resource; an admin can optinto resolving every resource's nameregardless of grants, since a DNSanswer only hands out an addressand the firewall decides reachability.Hand-rolled RFC 1035 wire format,no library (ADR-0023).tls[Component: CDI] TLS keystore management.Hot-swaps between a self-signedcert and an admin-uploaded orACME-issued cert at runtime, norestart (ADR-0015). Issues its owncertificate for the hub names forinstallations with no domain, whereno public CA can issue at all, andexposes its SHA-256 fingerprint for aone-time comparison.acme[Component: JAX-RS + CDI + @Scheduled] Hand-rolled RFC 8555 ACME client.Requests, validates (HTTP-01 orDNS-01 manual mode), and renewsa certificate when ACME is enabledin Settings; no certificate library(ADR-0019, ADR-0020).proxy[Component: CDI] Host-side Unix-socket-proxy channelfor wg/nft when the backend runsunprivileged in a container.Adapter-mode resolution (explicit >container-detected > mock),degraded 'enforcement unavailable'status (ADR-0012).discovery[Component: JAX-RS + CDI] Admin-triggered device discovery:enumerates a site's CIDR, probeshost liveness with unprivilegedsockets, fingerprints a resource typefrom open ports, names an openport from a bundled IANA-derivedtable (classpath only, never over thenetwork), probes what actuallyanswers on a found port (SSH/VNCbanners, HTTP/HTTPS/RTSP/RDPrequest-and-check, TLS peercertificate and page title),bulk-imports the reviewed selectionas Resource rows (ADR-0014).external[Component: JAX-RS + CDI] Read-mostly machine-facing facadeunder /api/external/v1 (peers, users,roles, sites, resources, grants, audit)and a health-gauge endpoint inPrometheus text format behind aread-only monitoring scope.Separate from the console API onpurpose: it is versioned, API-keyauthenticated, scope-checked, canbe switched off entirely, anddescribes itself to agents via llms.txtand openapi.yml (ADR-0026,ADR-0027). Edge-bound endpointsunder /edge/{id} (the peers an edgeserves with a serial that rises whenthey change, preshared keys, astatus report) behind their ownscopes; reads are audited whenwhat is handed out changes, not onevery poll.apikey[Component: JAX-RS + CDI] API keys for the external facade:issue, hash, revoke, last-usedtracking, per-key scoping to a subsetof the facade instead of fulladmin-equivalent power, and therequest filter that authenticates andscope-checks them. Keys are shownonce at creation and stored hashed(ADR-0026).webhook[Component: JAX-RS + CDI] Outbound event notifications:subscription management, per-eventdispatch with an HMAC signature,and a delivery record per attempt.hosthealth[Component: CDI + @Scheduled] Periodic CPU, memory and swapsampling of the hub itself, for thedashboard load card. Real/mockselectable viaislandr.host-health.mode.admin[Component: JAX-RS + CDI] Instance config export/import,seeded-data timestamp repair onimport, version/update-checkendpoint, and whether an update.shbackup exists to roll back to(read-only; no new privilege).Webhook Receiver[Software System] Fully optional — an endpoint anadmin subscribes to events with.Islandr POSTs a signed payload perevent; the receiver is operated bysomeone else and may beunreachable.DNS Upstream[Software System] Fully optional — only reached whenthe resource DNS resolver is enabledin Settings. Public oradmin-configured recursiveresolver(s) (default 1.1.1.1 / 8.8.8.8,Settings.dnsResolverUpstream) thehub forwards any query outside itsown managed resource zone to,verbatim and unparsed (ADR-0023).OIDC Provider[Software System] Authenticates users. Microsoft 365or Google Workspace.WireGuard[Software System] Linux kernel VPN module. Managedvia wg CLI.nftables[Software System] Linux kernel packet filter. EnforcesACL rules generated by Islandr.Let's Encrypt (ACME CA)[Software System] Fully optional — only contactedwhen an admin sets a domain andenables ACME in Settings. Islandr'sown hand-rolled RFC 8555 clientrequests, validates (HTTP-01), andrenews a certificate directly; nocertificate library, no external ACMEclient (ADR-0019).Resource Host[Software System] A machine behind the VPN inside asite (e.g. an RDP server). Forbrowser-based RDP the hubconnects to it directly over TLS andrelays to the browser.API Consumer / Integration[Software System] Fully optional — a script, aconfiguration-management run, oran MCP adapter that reads the hubstate (including health gauges formonitoring) and disables accountsthrough the external facade under/api/external/v1, authenticated by anAPI key. Off unless an admin enablesthe facade and issues a key(ADR-0026, ADR-0027).Lists peers, creates them, and disables single peersLists users and disables an account with its peersReads the audit log, and logs its own mutationsLogs key issue and revokeLogs subscription changesPublishes user lifecycle events after the change commitsReads the latest CPU / memory sample for the load cardReads state and disables accounts or peers[HTTPS + API key]Posts a signed event payload per subscription[HTTPS]Delegates OIDC token verificationLooks up or creates user on OIDC loginLogs login eventsAdds / removes peers from WireGuard interfaceTriggers full ruleset recompute on peer state changeLogs all peer mutationsTriggers full ruleset recompute on grant changeLogs ACL mutationsBrowser-RDP RDCleanPath proxy over TLS[TCP/TLS]On-demand reachability probe of a shared resource's lowest granted port[TCP]Logs user mutationsLogs settings changesTriggers recompute on site-CIDR or resource changeUploads/replaces certificate PEM, reads certificate infonft CLI calls[ProcessBuilder]Delegates nft calls when containerized (socket mode)[islandr.nft.mode=socket]wg CLI calls[ProcessBuilder]Delegates wg calls when containerized (socket mode)[islandr.wg.mode=socket]Logs enforcement mode changesJWKS fetch[HTTPS]ACL-scoped grant check for filtered zone answers[AclService.hasAnyGrant]Forwards non-zone queries verbatim[UDP/TCP 53]ACME directory, order, and HTTP-01/DNS-01 challenge requests[HTTPS]HTTP-01 challenge callback[HTTP]Installs renewed certificate into the keystoreLogs renewal attempts and outcomesUnprivileged liveness/port probes over the existing WireGuard route[TCP/UDP]Bulk-imports reviewed hosts as Resource rowsLogs config import/exportEvery request is authenticated and scope-checked against its API key[ApiKeyAuthFilter]Reads sites, resources, roles and effective grants
Component View: Islandr - Islandr Backend
C4 Level 3 — Backend Components
Show legend
ComponentSoftwareSystem,ExternalRelationship