Where the hub connects
A REST source, an OpenAPI spec, a webhook, a JDBC source, an S3 endpoint, an SFTP server and a Kafka broker each name an address. The hub checks that address before it sends anything. It checks where the name leads, not the name itself.
What the hub refuses
| Address | Examples | Refused |
|---|---|---|
| The cloud metadata | 169.254.169.254, and the AWS, Alibaba, Azure and Oracle Cloud equivalents |
always |
| Link-local, unspecified, multicast | fe80::1, 0.0.0.0, 224.0.0.1 |
always |
| The hub's own management port | http://hub:9000, http://localhost:9000 |
always (REST, OpenAPI, webhook, S3) |
| The hub's own machine | localhost, 127.0.0.1, ::1 |
unless LUMNIK_OUTBOUND_ALLOW_LOOPBACK=true |
| Private networks | 10.x, 172.16–31.x, 192.168.x, 100.64–127.x, fc00::/7, and the other non-public ranges |
when LUMNIK_OUTBOUND_ALLOW_PRIVATE=false |
Another way of writing the same address is the same address: ::ffff:127.0.0.1 is localhost too.
The management port serves health, metrics and the API spec without a token. The hub refuses it on any
of its own addresses, whatever the settings below say. Its other ports follow the rules above.
The port is quarkus.management.port, 9000 unless you moved it.
The settings
Each is read at startup. A change takes a restart.
LUMNIK_OUTBOUND_ALLOW_LOOPBACK, defaultfalse.- Set it to
truefor a hub run as a plain process on the source's own machine. - In a container,
localhostis the hub itself. Point the source at its host name instead. LUMNIK_OUTBOUND_ALLOW_PRIVATE, defaulttrue, because an on-premise ERP sits on the LAN.- The Helm chart sets it to
false: it serves several tenants, and the cluster's own services sit on private addresses. - For a source inside the cluster, set the chart value
outbound.allowPrivate=true(LUMNIK_OUTBOUND_ALLOW_PRIVATE=true make k8s-upon kind). - On the self-host stack, the hub's database and Keycloak are on private addresses too. Set
falsewhen tenants must not reach them. LUMNIK_OUTBOUND_MAX_RESPONSE_MB, default64: the largest REST response the hub reads.
What a refusal looks like
The refusal names the kind of address and the setting, never the address:
$ lm source rest from-openapi http://169.254.169.254/latest/meta-data/ --name meta
Error: API error 400: 'url': the host resolves to a link-local address, which the hub never connects to
- Nothing is sent. A refusal is not retried.
- A run fails with the same sentence. So do
lm source rest test,lm source rest probeand an export. -
A webhook is registered anyway. Its address is checked at each delivery, and the delivery fails with the sentence:
$ lm integration test 1000 Error: delivery failed: the host resolves to a loopback address, which this hub refuses (lumnik.outbound.allow-loopback)
A JDBC URL
Write the host in the URL. The hub reads it there, as the driver does.
- PostgreSQL:
jdbc:postgresql://host:5432/db, or a failover list//a:5432,b:5432/db. - Refused: a URL with no host (
jdbc:postgresql:///db), and aservice=parameter. Write the host in the URL instead. - Accepted parameters:
user,password,ssl,sslmode,targetServerType,loadBalanceHosts,hostRecheckSeconds,ApplicationName,currentSchema,readOnly, the timeouts,tcpKeepAlive,defaultRowFetchSize,prepareThreshold,stringtype,loggerLevel. Any other is refused by name. sslmode:disable,allow,preferorrequire. The traffic is encrypted, but the server's certificate is not checked.verify-ca,verify-fullandssl=truealone are refused for now: the only CA the driver could read is a file on the hub.- The hub's own files are never offered. The hub presents no client certificate, and never uses its Kerberos tickets.
- Oracle:
@//host:1521/SERVICE,@host:1521/SERVICE,@host:1521:SID, a host list,tcp://, or a(DESCRIPTION=…)descriptor over TCP. - Refused: TCPS (
tcps://,PROTOCOL=TCPS) for now: the only certificates the driver could use are the hub's. Also refused: a TNS alias, an LDAP URL,TNS_ADMIN, a proxy (https_proxy,HTTPS_PROXY), a wallet (wallet_location,MY_WALLET_DIRECTORY) and a token (TOKEN_AUTH,TOKEN_LOCATION). - Accepted after
?:connect_timeout,transport_connect_timeout,retry_count,retry_delay,failover,load_balance,expire_time,sdu,oracle.net.CONNECT_TIMEOUT,oracle.jdbc.ReadTimeout. Any other is refused by name. A descriptor takes the same settings, and addresses and the service.
$ echo -n "$ERP_PASSWORD" | lm source jdbc test --url jdbc:oracle:thin:@ERPPROD --user ro --password-stdin
Error: API error 400: the hub cannot tell where this URL connects: it reads as a TNS alias
$ echo -n "$ERP_PASSWORD" | lm source jdbc test --url jdbc:postgresql://169.254.169.254:5432/erp --user ro --password-stdin
Error: API error 400: the host resolves to a link-local address, which the hub never connects to
What else the hub bounds
- A REST response over 64 MiB fails the run:
the response is larger than 64 MiB, the most the hub reads; page the endpoint, or raise lumnik.outbound.max-response-mb. Nothing past it is read. - A webhook test or replay shows the receiver's status, never its body. A failed delivery
reads
HTTP 500. Read the body in the receiver's own log. - An OpenAPI spec is fetched over
httporhttpsonly. A$refto another document is not followed. - No redirect is followed.
- SFTP offers only the credential the transport declares, never the hub's own SSH keys.
- S3 without
endpointreads from AWS. The hub's own AWS settings never choose another address. - S3 is checked at every connection, all run long, on the address it connects to. It uses no
proxy, even if the hub has one (
https_proxy,https.proxyHost). - A JDBC test, discovery or guided add gives up on a server that never answers: within about 12 s on PostgreSQL. A run's queries are not cut short.
Limits
- A name that changes its answer. The hub looks the name up, then the client connects. Both
use the same 30-second cache, so they agree. For REST, webhooks, JDBC and SFTP, the client
connects right after each check: a name can slip through only if its answer changes at that
very moment. Keep the JVM's address cache on: a hub started with
networkaddress.cache.ttl=0(or-Dsun.net.inetaddr.ttl=0) logs, at its first outbound check,an address cache TTL of 0: the HTTP client resolves a host again after the outbound rule judged it, …. - Kafka:
allow-private=falsechecks the broker addresses written in the manifest. It cannot check the brokers the cluster names afterwards. See the broker addresses the hub checks. - A name that does not resolve:
- for Kafka and S3, the run fails with
host not resolvedand is retried; - for the others, it fails as the client says (host not found), and is retried like any unreachable source. In a failover list, the client moves on to the next host.
- Oracle: a listener that sends the connection on to another host is not checked.
- A JDBC URL that sets its own timeouts keeps them.