Docs Version v0.2
Docs menu

Protecting other applications

Outposts

Changed 9 min readv0.2

On this page

Introduction

Sometimes a protocol has to be served somewhere the database must not be reachable from. Examples are a demilitarised zone (DMZ) facing the internet, a branch office, or an airgapped segment.

An "outpost" is a Signari binary serving Lightweight Directory Access Protocol (LDAP), Remote Authentication Dial-In User Service (RADIUS) or forward authentication there. It holds no database credentials. Every credential question goes to the "core", the Signari server that has the database, over HTTPS.

You register an outpost on the core with signari outpost create. You start it where the protocol is needed with signari outpost run.

Create and run an outpost

Create the outpost on the core, which prints its token. Then run it where the protocol is needed, with that token:

Shell# On the core:signari outpost create -org <uuid> -name dmz-ldap -kind-outpost ldap  SIGNARI_OUTPOST_TOKEN=KzQPR10mXH9SrVbMgat4zP-Nmd1JazLVh7jr86y6kpE# Where the protocol is needed, with no database anywhere near it:signari outpost run -core https://auth.example.com \  -outpost-token $SIGNARI_OUTPOST_TOKEN -kind-outpost ldap \  -tls-cert ldap.pem -tls-key ldap-key.pem -ldap-base-dn dc=example,dc=com

The Admin API does the same under /admin/organizations/{orgID}/outposts. It registers outposts, takes them out of service, rotates and removes them, and sets their search group. See the Admin API reference.

LDAPS

An LDAP outpost serves LDAPS, which is LDAP over Transport Layer Security (TLS). It listens on :636 unless -addr says otherwise, and refuses to start without -tls-cert and -tls-key.

Every simple bind carries a password. The outpost already refuses a plaintext -core, so the password is never in the clear between the outpost and the core. A plaintext listener would put it in the clear on the way in instead.

StartTLS is not offered. The listener refuses the extended operation, rather than answer success without upgrading the connection. So clients connect with ldaps://.

-ldap-insecure (or SIGNARI_OUTPOST_LDAP_INSECURE=1) serves plaintext on :389, and logs a warning saying so. It exists for a listener bound to loopback behind something that terminates TLS, the same case -admin-insecure serves.

Why this is a small feature here

internal/ldapd and internal/radius were written against a narrow Authenticator interface, and have no database references at all. An outpost is therefore a second implementation of that interface, one that speaks HTTP, rather than a second architecture.

So an outpost needs no component, container image or lifecycle of its own. It is the same binary as the engine, started with different flags.

What an outpost token is worth

It is a password-verification oracle. Whoever holds one can ask "is this password correct for this person" as fast as the core answers. That is what an outpost is for, so these controls keep a token from being used for anything else:

  • Bound to one protocol. A token issued for an LDAP outpost is refused for RADIUS. A leak costs one protocol rather than all of them.

  • Rate limited per outpost, on top of the throttling for each account that the credential path already applies.

  • Every call updates last_seen, with the address. A token being exercised from somewhere new is visible rather than inferred.

  • It cannot change anything or mint a session, and on its own it reads nobody's entry. A successful bind through an LDAP outpost returns a signed bind proof naming the person and the outpost. A lookup or a list must carry one. The core then answers for that person as they stand now. It gives their own entry, or the whole directory when they are in the outpost's search group. The group is recorded on the registration and enforced by the core:

    Shellsignari outpost create -org <uuid> -name dmz-ldap -kind-outpost ldap -search-group ldap-readerssignari outpost search-group -org <uuid> -name dmz-ldap -search-group ldap-readers   # or "" to clear

    With no group set, everybody behind the outpost sees only their own entry. The outpost reads the group from the core when it starts, so restart it after a change. SIGNARI_LDAP_SEARCH_GROUP is for the engine's own LDAP listener. An outpost ignores it, and logs that it did.

    A bind proof lasts eight hours. That limit is not the control: the person it names is read again, status and groups, on every use. After eight hours the outpost's searches fail, and the client binds again. An outpost older than its core sends no proof, so it can still bind but not search until it is upgraded.

  • Somebody under a multi-factor authentication (MFA) mandate is refused when their organisation is set to refuse_when_mfa. That is the default. LDAP and RADIUS carry only a password. See a password alone, and a second factor.

Taking one out of service

Disable, enable, rotate or remove an outpost on the core:

Shellsignari outpost disable -org <uuid> -name dmz-ldap   # refused from its next call; settings keptsignari outpost enable  -org <uuid> -name dmz-ldapsignari outpost rotate  -org <uuid> -name dmz-ldap   # a new token, once; the old one stops at oncesignari outpost remove  -org <uuid> -name dmz-ldap   # the registration and its token, for good

Each takes effect on the next call, and the same goes through the Admin API. A disabled outpost is answered 403 outpost_disabled. A rotated or removed token is answered 401 with WWW-Authenticate: Bearer error="invalid_token".

Neither is a wrong password to anybody behind the outpost: they are told the directory is unavailable, as they are in an outage. After a rotation, the outpost answers nobody until it is restarted with the new token.

It checks before it listens

The token is verified against the core before any listener opens. A token the core refuses stops the outpost with this message:

Textsignari: the core refused this outpost token. It may have been revoked, orissued for a different protocol -- a token created for one protocol is notaccepted for another (core said 401 Unauthorized)

Otherwise a configuration error would appear as an outage, found by the first person who tries to sign in rather than by an administrator.

An unreachable core is not a wrong password

If the core cannot be reached, the outpost says so. It does not refuse the credential: a bind or a search is answered unavailable (52), and a search does not come back empty.

Answering "wrong password" during a network outage would send people to reset passwords they typed correctly.

A RADIUS outpost that cannot ask the core answers nothing at all, so a device goes on to its next server. An Access-Reject would tell the person their password is wrong, and tell the device not to try another server.

Liveness

signari outpost list shows each outpost's state, and when it last called the core:

Shellsignari outpost list -org <uuid>  dmz-ldap    ldap    enabled   search: own entry only   last seen 18s ago from 203.0.113.7, running 1.4.0  branch-2    radius  STALE                              last seen 41m0s ago from 198.51.100.4, running 1.3.2

An outpost that stops calling would otherwise be an outage that raises no alert, in a place the administrator is not watching.

So a running outpost says hello to the core once a minute, whether anybody is using it or not, with the release it is. It logs when it loses the core, and when it gets it back. After three minutes of silence it is reported STALE here, by stale in the Admin API, and by signari doctor. One that has never called, one taken out of service, and the kinds nothing runs are not reported.

It warns at start when it and its core are different releases, and starts anyway, since that is expected during a rolling upgrade.

Where a bind came from

An outpost tells the core the address a bind reached it from. The socket at the core is the outpost's. So without this, everybody behind it would have no per-address budget, and one host could go on guessing by changing usernames.

The failed sign-in budget applies to that address, as it does on the engine's own listener. When it is spent, the client is answered busy.

The core takes the outpost's word for the address, so whoever holds a stolen token can name any address. That costs them that budget and nothing else: the budget on each account and the limit on the outpost still hold.

RADIUS sends no address, because the peer there is the device. One budget across everybody on an access point would lock a building out.

Each password an outpost checks is recorded once in the audit trail, as login.succeeded or login.failed. Its via is set to the protocol it arrived on (ldap or radius), outpost to the outpost's name, and for a failure the reason.

RADIUS

Create a RADIUS outpost, list the devices it serves in a file only its owner can read, and run it:

Shellsignari outpost create -org <uuid> -name branch-2 -kind-outpost radius# devices.conf: name, the network it sends from, its shared secret#   ap-floor-2   10.20.0.0/24   a-long-random-shared-secretchmod 600 devices.confsignari outpost run -core https://auth.example.com \  -outpost-token $SIGNARI_OUTPOST_TOKEN -kind-outpost radius -radius-clients devices.conf

It listens on :1812 unless -addr says otherwise, and answers password requests through the core.

Each device's secret is in a local file, because a secret is a credential for that device, and this machine is by design less trusted than the core. It holds the secrets of the devices it serves, and no others.

The file is refused if anybody but its owner can read it. It is read once, at start, so restart the outpost after changing it.

What a RADIUS outpost does not do: EAP-TLS, a challenge for a second factor, and the virtual LAN (VLAN) attributes of network authorisation. Those need the engine's own listener. Somebody under an MFA mandate is refused, as they are through an LDAP outpost.

Running it as a service

Nothing here needs a database, or anything from the core but the token:

INI# /etc/systemd/system/signari-outpost.service[Unit]Description=Signari outpostAfter=network-online.target# An outpost exits when it cannot reach its core. Without this, five quick# failures and systemd stops trying, and a core back a minute later finds it dead.StartLimitIntervalSec=0[Service]# SIGNARI_OUTPOST_TOKEN=..., owned by root and mode 600EnvironmentFile=/etc/signari/outpost.envExecStart=/usr/local/bin/signari outpost run -core https://auth.example.com \  -kind-outpost ldap -ldap-base-dn dc=example,dc=com \  -tls-cert /etc/signari/ldap.pem -tls-key /etc/signari/ldap-key.pemUser=signariAmbientCapabilities=CAP_NET_BIND_SERVICERestart=alwaysRestartSec=5[Install]WantedBy=multi-user.target

The key -tls-key names is read as User=signari, so it belongs to that account, with mode 600.

The unit works as written on Ubuntu 24.04 with systemd 255. If the outpost is killed, systemd starts it again. While its core is unreachable, it keeps trying, and it serves again when the core comes back.

To run a RADIUS outpost in a container instead, use a Compose file such as this one:

YAML# compose.yaml, with the image built from engine/Dockerfileservices:  outpost:    build: ./engine    command: [outpost, run, -core, "https://auth.example.com", -kind-outpost, radius,              -radius-clients, /run/secrets/devices]    environment:      SIGNARI_OUTPOST_TOKEN: ${SIGNARI_OUTPOST_TOKEN}    # devices.conf is 600, so this is its owner.    user: "1000:1000"    secrets: [devices]    ports: ["1812:1812/udp"]    restart: alwayssecrets:  devices:    file: ./devices.conf

A core whose certificate an internal authority issued needs that authority given to the outpost. Add one more secret, ca, from its PEM file, and SIGNARI_CA_BUNDLE: /run/secrets/ca beside the token.

In this container, the outpost answers a RADIUS client's right password with Access-Accept, and a wrong one with Access-Reject. Each answer carries a correct Response Authenticator and Message-Authenticator. A request under the wrong shared secret gets no answer.

What is not run

Desktop and decision tokens are presented by something else. That is the credential provider or pluggable authentication module (PAM) of desktop sign-in, or the application asking the evaluation API. outpost run says so.

Forward-authentication outposts are unnecessary. /proxy/verify is already an HTTP endpoint a reverse proxy anywhere can call. So a proxy-kind token exists mainly to be refused where it should be.