TLS
Configures TLS for incoming connections using certificate files, ACME or a temporary testing certificate.
A TLS definition can be shared between the HTTP and monitoring listeners.
Properties
minVersion
string = "1.3"
Minimum TLS version, either "1.2" or "1.3".
certificates
Explicit PEM certificate/key pairs. Each entry requires both file paths. Explicit material takes priority; invalid material fails startup instead of falling back to ACME.
If no certificates are supplied and neither dummy nor acme is enabled, the following configuration is used, depending on the platform:
Linux:
1 2 3 | |
macOS:
1 2 3 | |
Windows:
1 2 3 | |
dummy
bool = false
Generate an ephemeral self-signed certificate for the consumer's configured names. Expires after 24 hours; a restart creates a new key and certificate. Cannot be combined with certificate files or ACME.
Warning
Dummy TLS is for testing only. Clients do not trust it; use trusted certificates or ACME for production.
reloadInterval
Duration = "5s"
File reload interval. 0s selects the default; negative values are invalid. A complete valid generation replaces live material atomically. Invalid updates retain previous valid material; expired certificates cannot accept new handshakes. Established connections remain open.
acme
Obtain and renew certificates for configured names not covered by explicit certificates. Omit acme or set it to null to disable ACME; a mapping enables it and requires acceptTerms: true.
Certificate
Each entry in certificates has these properties.
certificateFile
Local PEM certificate-chain file covering the consumer's names, including IP SANs when connecting by IP.
privateKeyFile
Local PEM private-key file, separate from SSH, audit and other signing identities, public assets and mutable repositories.
On Unix, use service-owned keys with owner-only permissions. Root-managed, read-only files for the service's primary group are also accepted, for example a Kubernetes Secret with defaultMode: 0440 and fsGroup: 10001; do not grant other users access. Mount Secrets as read-only directories without subPath so generation changes remain visible.
ACME
ACME uses TLS-ALPN-01 only. Every requested DNS name must resolve to an address whose public TCP 443 reaches Bifröst. The protocol fixes this public port; a load balancer may forward it to a different local port, such as 8443.
Validation uses http.addresses. An HTTP listener with TLS must be enabled; use http.enabled: acmeTlsAlpnOnly for validation without HTTP application endpoints. A regular HTTP Ingress cannot forward TLS-ALPN-01.
After startup, housekeeping checks for due renewals at its configured interval. Certificate-file reloads use reloadInterval independently.
These properties belong to acme in either an inline or a named TLS definition.
acceptTerms
bool = false
Accept the certificate authority's terms of service. Must be true when ACME is enabled. For the default directory, see Let's Encrypt's terms.
email
string = ""
Optional contact email address, without a display name.
directoryUrl
URL =
"https://acme-v02.api.letsencrypt.org/directory"
Certificate authority's HTTPS directory URL, without credentials, query or fragment. A staging service can be used for testing; its certificates are not browser-trusted.
storage
File Path = "<os specific>"
Persistent private directory for ACME account and certificate keys. Preserve it across restarts and keep it separate from public assets and other service storage.
The default value is different, depending on the platform Bifröst runs on:
- Linux:
/var/lib/engity/bifroest/tls/<name>/acme - macOS:
/Library/Application Support/Engity/Bifroest/tls/<name>/acme - Windows:
C:\ProgramData\Engity\Bifroest\tls\<name>\acme
<name> is the name in the root tls map. Inline TLS uses http/acme or monitoring/acme instead of tls/<name>/acme, under the same platform-specific base directory.
Preserve an existing account's explicit storage path when reorganizing definitions. Independent TLS sources must not write the same store or claim the same active ACME name. Direct automation is intended for one instance; use externally renewed certificate files for multiple replicas.
Examples
Add these settings to a configuration with existing flows.
Inline TLS
1 2 3 4 5 6 7 | |
Referenced TLS
The same definition can be named and referenced. Naming it default also lets HTTP select it when http.tls is omitted or "":
1 2 3 4 5 6 7 8 9 | |
Temporary testing certificate
Dummy TLS works in both inline and named definitions:
1 2 3 4 5 6 7 | |
Shared certificate files
HTTP and private monitoring use different domains with shared certificate files covering both:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
ACME without HTTP browser access
Obtain a certificate for private monitoring without starting HTTP application endpoints. Forward public TCP 443 to local port 8443; keep monitoring private.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
Compatibility
| Linux | macOS | Windows |
|---|---|---|
| / | / | / |