Private-network gateways
A private-network gateway is an Owlie agent that your organization runs on a server inside its own network. It opens an outbound, encrypted connection to your Owlie tenant, receives connector operations over it, runs them against systems on your network, and sends back the results. Owlie never connects in to your network. The credentials for your directories and databases stay on the gateway: it reads them from its own environment or secrets file, and Owlie holds only their names.
When a connector needs one
| Connector | Runs |
|---|---|
| LDAP connectors, such as Active Directory and OpenLDAP | Only on a gateway |
| SQL connectors | Only on a gateway |
| Connectors that run PowerShell scripts | Their scripts run only on a gateway |
| HTTP and SCIM connectors | In Owlie's cloud, or on a gateway when the system is not reachable from the internet |
When you install a connector, the Gateway section shows where it will run. For a connector that can run either way, turn on Run through gateway and choose the Gateway. A connector that runs only on a gateway says "This connector requires a Connector Gateway". You can choose a gateway whose setup is still pending, but the connection test and every operation need the gateway to be active. Connections and credentials covers the rest of the install.
Set up a gateway
- Go to Gateways in the Admin sidebar and select Create gateway.
- Enter a Name that administrators will recognize, such as the site or network segment, and select Create.
- The Gateway created dialog shows a one-time enrollment token, which expires in one hour, a Setup command, and a Download and install the gateway link. Store the token before you close the dialog: it is shown once.
- On the server, install the gateway from that link, then run the setup command. It enrolls the gateway with your tenant: the gateway generates its own key pair, and its private key never leaves the server.
- Run the gateway (
owlie-gateway, with no subcommand) in the foreground under your service manager, such as systemd, WinSW or launchd.
owlie-gateway setup also takes the token from a file (--token-file) or from the
OWLIE_ENROLLMENT_TOKEN environment variable, which keep it off the command line. A gateway's page
under Gateways shows its health and the integrations assigned to it. Reissuing an enrollment
token there rotates the gateway's key and disconnects the running agent.
Where the operator configures it
The gateway's operator, the person who runs it on your network, configures it in one file,
config.jsonc, in the gateway's home directory. The home directory is the directory that holds the
gateway program, or the directory named by the OWLIE_GATEWAY_HOME environment variable. The
gateway creates the file with commented defaults the first time it runs. It accepts comments and
trailing commas, keeps the default for every setting the file leaves out, and refuses to start when
the file is not valid. Restart the gateway after changing it.
Secrets
Secret values never go in config.jsonc. The gateway resolves a secret named NAME from the
environment variable OWLIE_SECRET_NAME first, then from the JSON file that secretsFile names: an
object of secret names to values, such as { "NORTHWIND_LDAP_BIND": "..." }. When you install a
connector on a gateway, each secret field asks for the name only, without the OWLIE_SECRET_
prefix.
Settings custom connectors depend on
A custom connector is one your organization built in the Connector Builder. The gateway runs it only when two parties agree: Owlie's cloud sends a signed grant for the exact version to run, and the operator has listed the connector on this gateway. The connector's code runs in an isolated worker that cannot start programs or open network connections of its own. Its HTTP, LDAP, SQL and PowerShell calls go through the gateway, which applies the operator's settings to each one.
Every per-connector setting is under connectors, keyed by the connector's id: a UUID shown in the
Connector Builder with a Copy connector id button.
| Setting | Type | Default | What it allows |
|---|---|---|---|
allowedCustomConnectors | list of connector ids | [] | Top level. The custom connectors this gateway may run. A connector that is not listed is refused, draft tests from the Connector Builder included, with a message naming the id to add. |
connectors["<id>"].egressAllowlist | list of hosts | [] | The hosts the connector may reach. A bare host covers only the web ports 80 and 443, so list a directory or database with its port, such as ldap.northwind.example:636 or db.acmeledger.example:5432. |
connectors["<id>"].secrets | list of names | [] | The gateway secrets the connector's installs may resolve, such as a bind or database password. Any other name is refused, so one connector cannot read a secret meant for another. |
connectors["<id>"].allowTlsOverrides | boolean | false | Lets the connector's installs weaken TLS: a certificate authority of their own, no certificate verification, or, for a SQL database, no TLS. Without it such a connection is refused, never silently downgraded. |
connectors["<id>"].allowPowershell | boolean | false | Lets the connector's PowerShell scripts run. See PowerShell. |
connectors["<id>"].powershellTimeoutMs | milliseconds | 60000 | How long one of the connector's scripts may run, at most 900000 (15 minutes). A larger value is capped. A script cannot ask for more. |
Settings that apply across connectors:
| Setting | Default | What it does |
|---|---|---|
egressAllowlist | [] | Hosts every connector may reach. |
customConnectors.egressAllowlist | [] | Hosts every custom connector may reach. |
egressDenylist | Loopback, link-local, cloud metadata, unspecified and multicast addresses | IP addresses and ranges connectors may not reach. An explicit list replaces the defaults. |
customConnectorLimits.timeoutMs | 60000 | The longest one custom connector operation may run, its scripts included. |
powershellMaxConcurrentRuns | 4 | How many PowerShell scripts may run at once across every connector, 1 to 64. More wait their turn. |
secretsFile | none | The path of the secrets file, relative to the home directory or absolute. |
A custom LDAP connector for Northwind's directory at ldap.northwind.example that binds with the
secret NORTHWIND_LDAP_BIND needs this much:
{
"allowedCustomConnectors": ["6f1c2a4e-8b3d-4c7a-9e21-5d4b3a2f1e0c"],
"connectors": {
"6f1c2a4e-8b3d-4c7a-9e21-5d4b3a2f1e0c": {
"egressAllowlist": ["ldap.northwind.example:636"],
"secrets": ["NORTHWIND_LDAP_BIND"]
}
},
"secretsFile": "secrets.json"
}
Owlie's own connectors, such as Active Directory and OpenLDAP, ship with the gateway and need no
allowedCustomConnectors entry. Their settings are under their catalog key, such as
connectors["openldap"]. They reach hosts on your network without an egressAllowlist entry,
except the addresses egressDenylist excludes. Loopback, link-local and metadata addresses also
need the exact host:port in their own egressAllowlist.
TLS to directories and databases
LDAP connections always use TLS: ldaps://, or StartTLS on an ldap:// URL. A plaintext bind is
refused. SQL connections use verified TLS unless the install says otherwise. An install that brings
its own certificate authority, turns off verification, or connects to a database without TLS needs
the operator's allowTlsOverrides for that connector. A private certificate authority reaches the
connection only through the install's own TLS setting.
PowerShell
A connector's PowerShell scripts run on the gateway itself, with PowerShell 7 (pwsh) on the
gateway's PATH, and only when the operator sets allowPowershell for that connector. The gateway
runs only the exact script text of the build it was sent (a published version, or a draft during a
Connector Builder test). It logs each new script's full text the first time it runs it.
allowPowershell gives the connector the power of the gateway's operating-system account. Its
scripts run as that account, so they can read every connector's secrets on the gateway,
config.jsonc, and the key that identifies the gateway to Owlie. Whatever a script writes to its
output is returned to Owlie as the operation's result, so a script that prints a secret sends it to
Owlie's cloud. Grant allowPowershell only to connectors whose scripts you have read. Run
PowerShell connectors on a dedicated gateway that holds no other connector's secrets. Run the
gateway under an account with only the rights its connectors need.