Configuring TLS for Secure Communications
This guide lists the TLS settings Lemline actually provides and where TLS is handled outside Lemline.
Where TLS Applies
Connection | How TLS is configured |
|---|---|
Clients and dashboard → gRPC gateway |
|
Runner → Kafka |
|
Runner → RabbitMQ |
|
Workflow | Use an |
Lemline has no global TLS settings (protocol versions, cipher suites, keystores, certificate expiry monitoring) and no per-call TLS options in workflow definitions.
Gateway TLS
The gRPC gateway serves TLS by default.
certificateandprivate-keyare required when TLS is enabled.JWT authentication (
lemline.gateway.authentication.enabled, on by default) requires TLS.Set
enabled: falseonly on a trusted local network, together withlemline.gateway.authentication.enabled: false.
Client Certificates (mTLS)
trust-store is required when client-auth is request or required. Pass the password as an environment variable (LEMLINE_GATEWAY_TLS_TRUST_STORE_PASSWORD) rather than in the file.
Kafka TLS and SASL
security-protocol is passed to Kafka as security.protocol. When sasl-username and sasl-password are both set, Lemline configures the PLAIN login module.
RabbitMQ TLS
Calling HTTPS Services from Workflows
Use an https:// URI in the endpoint:
The server certificate must be trusted by the Java runtime that runs Lemline. A call to a server with an untrusted or invalid certificate fails before any request is sent: the task faults with an error whose title starts with PKIX path building failed. A try task can catch it like any other failed call. To call a service whose certificate comes from a private authority, add that authority to the trust store of the Java runtime that runs the worker.
The tutorial shop serves plain HTTP only, so this example has no local service to call: replace the URI with an HTTPS service you can reach.
Troubleshooting
Symptom | Check |
|---|---|
Gateway does not start |
|
Gateway clients get | Authentication is enabled: send a valid bearer token |
Runner cannot connect to Kafka |
|
| The service certificate chain is trusted by the Java runtime |