Skip to content

Remote Connectivity Security

SecurityConnectivityAuth TokensTLS
Stable On by default · production-ready

When a cluster runs beyond localhost, you secure the connection on two axes: transport (encrypt the link with TLS) and authentication (prove who is calling). AetheriusDB gates the native and Flight SQL endpoints with bearer auth tokens: when a token is configured on the server, every client must present it before any SQL is accepted.

You set the required token at daemon start; clients pass the matching token when they connect. A request without the token — or with the wrong one — is refused before it reaches the engine.

  • Tokens, not embedded passwords — require a single bearer token on the native and Flight SQL listeners instead of scattering credentials.
  • Per-protocol control — the native and Flight SQL endpoints take their own tokens, so you can enable auth where it matters and disable the listeners you don’t use.
  • One connection call — clients pass the token at connect time; no separate login round-trip to manage.

Set the token when starting aetheriusd (or via the matching environment variable):

Terminal window
aetheriusd \
--native-auth-token "my-bearer-token" \
--flight-auth-token "my-flight-token"
# Or via environment variables:
export AETHERIUS_NATIVE_AUTH_TOKEN="my-bearer-token"
export AETHERIUS_FLIGHT_AUTH_TOKEN="my-flight-token"

If you do not use a listener, you can turn it off entirely with --disable-flight or --disable-native.

import aetherius
# Native protocol with a bearer token.
with aetherius.connect("db.example.com", 5679,
auth_token="my-bearer-token") as conn:
conn.execute("SELECT 1")

A connection that omits the token, or presents the wrong one, is rejected before any statement runs.

TermMeaning
Bearer auth tokenA shared secret a client must present to connect; configured per listener on the server.
TLSTransport encryption for the link between client and cluster. Use it for any connection that leaves a trusted network.
ListenerA protocol endpoint (native, pgwire, Flight SQL). Each can be enabled, disabled, or token-gated independently.