Configuration¶
Generated by make docs-reference from the configuration structs; do not edit.
A secret setting can also be read from a file: set the variable named with _FILE appended, for example FLEETWIRE_DATABASE_URL_FILE, to the file’s path. The service refuses a file that group or others can access, removes one trailing newline, and refuses to start when both variables are set.
fleetwire-agent (snap keys)¶
Key |
Default |
Description |
|---|---|---|
|
|
Device API URL used to enroll and renew, for example https://api.example:8444. |
|
|
One-time enrollment token (fwe_…). Used only until the device is enrolled. |
|
|
PEM CA bundle that signed the API certificate. Empty means the system roots. |
|
|
Free-text device name shown in the API. |
|
|
Overrides the broker URL received at enrollment, for example tls://10.0.2.2:18883. |
|
|
Time between collections. |
|
|
When readings become durable: always, interval or never (see the WAL explanation for what each can lose). |
|
|
fsync period in interval mode. |
|
|
Disk budget of the local log. Above it the oldest segment is dropped and reported as a gap. |
|
|
Size of one log segment file. |
|
|
Maximum readings per batch. |
|
|
How long a durable reading may wait for a fuller batch. |
|
|
Maximum readings sent but not acknowledged end to end. |
|
|
Shortest wait for an end-to-end ack before everything unacknowledged is resent. The wait follows the measured ack delay, as in TCP, and doubles after each timeout, up to 8x. |
|
|
Address of the metrics and status endpoint. Empty disables it. |
|
|
debug, info, warn or error. |
fleetwire-api¶
Env var |
Flag |
Default |
Required |
Description |
|---|---|---|---|---|
|
|
|
PostgreSQL URL for the service login: the runtime role, or a member of it, never the schema owner. Secret: never logged. |
|
|
|
|
PostgreSQL URL for the schema owner. Used only by migrate and create-operator-token. Secret: never logged. |
|
|
|
|
Role that migrate gives the row-level security policies and grants: the services’ login role, or a group it belongs to (charmed_dml on Charmed PostgreSQL). |
|
|
|
|
Connection pool size. |
|
|
|
|
Tenant and operator API listener (TLS). |
|
|
|
|
Enrollment and renewal listener (TLS, client certificates requested). |
|
|
|
|
Health and metrics listener (plain HTTP; keep it private). |
|
|
|
|
Keyring listener for ingest, mutual TLS with service certificates, for example :8445. Empty disables it. |
|
|
|
|
Service CA chain that verifies client certificates on the keyring listener. |
|
|
|
|
Server certificate chain (PEM). |
|
|
|
|
Server private key (PEM). |
|
|
|
|
Device CA chain used to verify device client certificates. |
|
|
|
|
Device Issuing CA certificate (signs device certificates and the CRL). |
|
|
|
|
Device Issuing CA private key. |
|
|
|
|
CA bundle sent to devices to verify the broker and the API. |
|
|
|
|
Broker URL sent to devices at enrollment, for example tls://broker.example:8883. Must be tls://, mqtts:// or ssl:// with a port. |
|
|
|
|
Device listener URL sent to devices, used for renewal, for example https://api.example:8444. Must be https://. |
|
|
|
|
Directory of per-tenant KEK files. |
|
|
|
|
32-byte root key that seals the KEKs. Refused if group or others have any access (use 0400 or 0600). |
|
|
|
|
Where the device CRL is written for the broker. |
|
|
|
|
How often the CRL is rebuilt without a revocation. At most 24h: the stale-CRL alert at 48h and the CRL’s 7-day validity assume a daily republish. |
|
|
|
|
Directory for export files. Must be on an encrypted volume. |
|
|
|
|
Exports one tenant can have pending or running at once. Further POST /v1/exports requests get 409 until one finishes. |
|
|
|
|
Requests per second per token. |
|
|
|
|
Burst size per token. |
|
|
|
|
Failed token lookups per second per client network (IPv4 address or IPv6 /64). A network over this budget gets 429 before its tokens are looked up. |
|
|
|
|
Failed token lookup burst per client network. |
|
|
|
|
Enrollment and CRL requests per second per client network (IPv4 address or IPv6 /64), counted separately. |
|
|
|
|
Enrollment and CRL burst per client network. |
|
|
|
|
Default lifetime of enrollment tokens. |
|
|
|
|
Background jobs run in parallel by this replica. |
|
|
|
|
debug, info, warn or error. |
|
|
|
|
OTLP/HTTP endpoint for traces, for example http://jaeger:4318. Empty disables tracing. |
|
|
|
|
Fraction of new traces sampled. |
fleetwire-bridge¶
Env var |
Flag |
Default |
Required |
Description |
|---|---|---|---|---|
|
|
|
debug, info, warn or error. |
|
|
|
|
Health and metrics listener (plain HTTP; keep it private). |
|
|
|
|
OTLP/HTTP endpoint for traces. Empty disables tracing. |
|
|
|
|
Fraction of new traces sampled. |
|
|
|
|
yes |
Comma-separated Kafka bootstrap brokers. |
|
|
|
SCRAM-SHA-512 (what Charmed Kafka uses), SCRAM-SHA-256, or empty for no authentication. |
|
|
|
|
SASL user name. |
|
|
|
|
SASL password. Secret: never logged. |
|
|
|
|
Connect to the brokers over TLS. |
|
|
|
|
CA bundle for the brokers’ certificates. Empty means the system roots. |
|
|
|
|
yes |
Broker service listener, for example tls://mosquitto:8884. Must use a TLS scheme: tls, ssl, mqtts, mqtt+ssl or tcps. |
|
|
|
yes |
Client certificate chain (CN fleetwire-bridge). |
|
|
|
yes |
Client private key. |
|
|
|
yes |
CA bundle that signed the broker certificate. |
|
|
|
Stable instance name; the MQTT client ID is fleetwire-bridge- |
|
|
|
|
Messages the broker may send before the bridge acks. |
fleetwire-ingest¶
Env var |
Flag |
Default |
Required |
Description |
|---|---|---|---|---|
|
|
|
debug, info, warn or error. |
|
|
|
|
Health and metrics listener (plain HTTP; keep it private). |
|
|
|
|
OTLP/HTTP endpoint for traces. Empty disables tracing. |
|
|
|
|
Fraction of new traces sampled. |
|
|
|
|
yes |
Comma-separated Kafka bootstrap brokers. |
|
|
|
SCRAM-SHA-512 (what Charmed Kafka uses), SCRAM-SHA-256, or empty for no authentication. |
|
|
|
|
SASL user name. |
|
|
|
|
SASL password. Secret: never logged. |
|
|
|
|
Connect to the brokers over TLS. |
|
|
|
|
CA bundle for the brokers’ certificates. Empty means the system roots. |
|
|
|
|
PostgreSQL URL for the service login: the runtime role, or a member of it, never the schema owner. Secret: never logged. |
|
|
|
|
Connection pool size. |
|
|
|
|
Replication factor for ensure-topics. |
|
|
|
|
Consumer group. With Charmed Kafka it must start with the relation’s consumer-group-prefix. |
|
|
|
|
Devices processed in parallel, one database transaction each; keep FLEETWIRE_DATABASE_MAX_CONNS above it. |
|
|
|
|
Broker service listener for acks, for example tls://mosquitto:8884. Must use a TLS scheme: tls, ssl, mqtts, mqtt+ssl or tcps. |
|
|
|
|
Client certificate chain (CN fleetwire-ingest). |
|
|
|
|
Client private key. |
|
|
|
|
CA bundle that signed the broker certificate. |
|
|
|
|
Directory of per-tenant KEK files, shared with the API. Set this or FLEETWIRE_KEYRING_URL. |
|
|
|
|
32-byte root key that seals the KEKs. Refused if group or others have any access (use 0400 or 0600). Only with FLEETWIRE_KEYRING_DIR. |
|
|
|
|
The API’s keyring listener, for example https://api:8445. Set this or FLEETWIRE_KEYRING_DIR. |
|
|
|
|
Client certificate for the keyring listener. Default: FLEETWIRE_MQTT_CERT_FILE. |
|
|
|
|
Its private key. Default: FLEETWIRE_MQTT_KEY_FILE. |
|
|
|
|
CA bundle that signed the API certificate. Default: FLEETWIRE_MQTT_CA_FILE. |
|
|
|
|
Stable instance name. Default: host name. |
|
|
|
|
Concurrent ack publishers. |