# 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 | |---|---|---| | `enroll.url` | `-` | Device API URL used to enroll and renew, for example https://api.example:8444. | | `enroll.token` | `-` | One-time enrollment token (fwe_...). Used only until the device is enrolled. | | `enroll.ca-bundle` | `-` | PEM CA bundle that signed the API certificate. Empty means the system roots. | | `enroll.name` | `-` | Free-text device name shown in the API. | | `broker.url` | `-` | Overrides the broker URL received at enrollment, for example tls://10.0.2.2:18883. | | `collect.interval` | `10s` | Time between collections. | | `wal.sync` | `interval` | When readings become durable: always, interval or never (see the WAL explanation for what each can lose). | | `wal.sync-interval` | `1s` | fsync period in interval mode. | | `wal.max-size` | `256MiB` | Disk budget of the local log. Above it the oldest segment is dropped and reported as a gap. | | `wal.segment-size` | `4MiB` | Size of one log segment file. | | `uplink.batch-size` | `100` | Maximum readings per batch. | | `uplink.batch-wait` | `1s` | How long a durable reading may wait for a fuller batch. | | `uplink.max-inflight` | `1000` | Maximum readings sent but not acknowledged end to end. | | `uplink.ack-timeout` | `30s` | 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. | | `metrics.listen` | `127.0.0.1:9465` | Address of the metrics and status endpoint. Empty disables it. | | `log.level` | `info` | debug, info, warn or error. | ## fleetwire-api | Env var | Flag | Default | Required | Description | |---|---|---|---|---| | `FLEETWIRE_DATABASE_URL` | `-database-url` | `-` | | PostgreSQL URL for the service login: the runtime role, or a member of it, never the schema owner. Secret: never logged. `FLEETWIRE_DATABASE_URL_FILE` can name a file to read it from instead. | | `FLEETWIRE_DATABASE_OWNER_URL` | `-database-owner-url` | `-` | | PostgreSQL URL for the schema owner. Used only by migrate and create-operator-token. Secret: never logged. `FLEETWIRE_DATABASE_OWNER_URL_FILE` can name a file to read it from instead. | | `FLEETWIRE_DATABASE_RUNTIME_ROLE` | `-database-runtime-role` | `fleetwire_app` | | 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). | | `FLEETWIRE_DATABASE_MAX_CONNS` | `-database-max-conns` | `20` | | Connection pool size. | | `FLEETWIRE_API_PUBLIC_LISTEN` | `-public-listen` | `:8443` | | Tenant and operator API listener (TLS). | | `FLEETWIRE_API_DEVICE_LISTEN` | `-device-listen` | `:8444` | | Enrollment and renewal listener (TLS, client certificates requested). | | `FLEETWIRE_API_ADMIN_LISTEN` | `-admin-listen` | `127.0.0.1:9090` | | Health and metrics listener (plain HTTP; keep it private). | | `FLEETWIRE_API_INTERNAL_LISTEN` | `-internal-listen` | `-` | | Keyring listener for ingest, mutual TLS with service certificates, for example :8445. Empty disables it. | | `FLEETWIRE_SERVICE_TRUST_FILE` | `-service-trust` | `-` | | Service CA chain that verifies client certificates on the keyring listener. | | `FLEETWIRE_API_TLS_CERT_FILE` | `-tls-cert` | `-` | | Server certificate chain (PEM). | | `FLEETWIRE_API_TLS_KEY_FILE` | `-tls-key` | `-` | | Server private key (PEM). | | `FLEETWIRE_DEVICE_TRUST_FILE` | `-device-trust` | `-` | | Device CA chain used to verify device client certificates. | | `FLEETWIRE_DEVICE_CA_CERT_FILE` | `-device-ca-cert` | `-` | | Device Issuing CA certificate (signs device certificates and the CRL). | | `FLEETWIRE_DEVICE_CA_KEY_FILE` | `-device-ca-key` | `-` | | Device Issuing CA private key. | | `FLEETWIRE_CA_BUNDLE_FILE` | `-ca-bundle` | `-` | | CA bundle sent to devices to verify the broker and the API. | | `FLEETWIRE_DEVICE_BROKER_URL` | `-device-broker-url` | `-` | | Broker URL sent to devices at enrollment, for example tls://broker.example:8883. Must be tls://, mqtts:// or ssl:// with a port. | | `FLEETWIRE_DEVICE_API_URL` | `-device-api-url` | `-` | | Device listener URL sent to devices, used for renewal, for example https://api.example:8444. Must be https://. | | `FLEETWIRE_KEYRING_DIR` | `-keyring-dir` | `-` | | Directory of per-tenant KEK files. | | `FLEETWIRE_KEYRING_ROOT_KEY_FILE` | `-keyring-root-key` | `-` | | 32-byte root key that seals the KEKs. Refused if group or others have any access (use 0400 or 0600). | | `FLEETWIRE_CRL_FILE` | `-crl-file` | `-` | | Where the device CRL is written for the broker. | | `FLEETWIRE_CRL_INTERVAL` | `-crl-interval` | `24h` | | 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. | | `FLEETWIRE_EXPORT_DIR` | `-export-dir` | `-` | | Directory for export files. Must be on an encrypted volume. | | `FLEETWIRE_API_MAX_ACTIVE_EXPORTS` | `-max-active-exports` | `4` | | Exports one tenant can have pending or running at once. Further POST /v1/exports requests get 409 until one finishes. | | `FLEETWIRE_API_RATE_LIMIT` | `-rate-limit` | `20` | | Requests per second per token. | | `FLEETWIRE_API_RATE_BURST` | `-rate-burst` | `40` | | Burst size per token. | | `FLEETWIRE_API_AUTH_FAILURE_RATE_LIMIT` | `-auth-failure-rate-limit` | `5` | | 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. | | `FLEETWIRE_API_AUTH_FAILURE_RATE_BURST` | `-auth-failure-rate-burst` | `50` | | Failed token lookup burst per client network. | | `FLEETWIRE_API_ENROLL_RATE_LIMIT` | `-enroll-rate-limit` | `50` | | Enrollment and CRL requests per second per client network (IPv4 address or IPv6 /64), counted separately. | | `FLEETWIRE_API_ENROLL_RATE_BURST` | `-enroll-rate-burst` | `200` | | Enrollment and CRL burst per client network. | | `FLEETWIRE_ENROLL_TOKEN_TTL` | `-enroll-token-ttl` | `15m` | | Default lifetime of enrollment tokens. | | `FLEETWIRE_JOB_WORKERS` | `-job-workers` | `2` | | Background jobs run in parallel by this replica. | | `FLEETWIRE_LOG_LEVEL` | `-log-level` | `info` | | debug, info, warn or error. | | `FLEETWIRE_OTLP_ENDPOINT` | `-otlp-endpoint` | `-` | | OTLP/HTTP endpoint for traces, for example http://jaeger:4318. Empty disables tracing. | | `FLEETWIRE_TRACE_SAMPLE_RATIO` | `-trace-sample-ratio` | `0.1` | | Fraction of new traces sampled. | ## fleetwire-bridge | Env var | Flag | Default | Required | Description | |---|---|---|---|---| | `FLEETWIRE_LOG_LEVEL` | `-log-level` | `info` | | debug, info, warn or error. | | `FLEETWIRE_ADMIN_LISTEN` | `-admin-listen` | `127.0.0.1:9090` | | Health and metrics listener (plain HTTP; keep it private). | | `FLEETWIRE_OTLP_ENDPOINT` | `-otlp-endpoint` | `-` | | OTLP/HTTP endpoint for traces. Empty disables tracing. | | `FLEETWIRE_TRACE_SAMPLE_RATIO` | `-trace-sample-ratio` | `0.1` | | Fraction of new traces sampled. | | `FLEETWIRE_KAFKA_BROKERS` | `-kafka-brokers` | `-` | yes | Comma-separated Kafka bootstrap brokers. | | `FLEETWIRE_KAFKA_SASL_MECHANISM` | `-kafka-sasl-mechanism` | `-` | | SCRAM-SHA-512 (what Charmed Kafka uses), SCRAM-SHA-256, or empty for no authentication. | | `FLEETWIRE_KAFKA_USERNAME` | `-kafka-username` | `-` | | SASL user name. | | `FLEETWIRE_KAFKA_PASSWORD` | `-kafka-password` | `-` | | SASL password. Secret: never logged. `FLEETWIRE_KAFKA_PASSWORD_FILE` can name a file to read it from instead. | | `FLEETWIRE_KAFKA_TLS` | `-kafka-tls` | `-` | | Connect to the brokers over TLS. | | `FLEETWIRE_KAFKA_TLS_CA_FILE` | `-kafka-tls-ca` | `-` | | CA bundle for the brokers' certificates. Empty means the system roots. | | `FLEETWIRE_MQTT_URL` | `-mqtt-url` | `-` | yes | Broker service listener, for example tls://mosquitto:8884. Must use a TLS scheme: tls, ssl, mqtts, mqtt+ssl or tcps. | | `FLEETWIRE_MQTT_CERT_FILE` | `-mqtt-cert` | `-` | yes | Client certificate chain (CN fleetwire-bridge). | | `FLEETWIRE_MQTT_KEY_FILE` | `-mqtt-key` | `-` | yes | Client private key. | | `FLEETWIRE_MQTT_CA_FILE` | `-mqtt-ca` | `-` | yes | CA bundle that signed the broker certificate. | | `FLEETWIRE_INSTANCE_ID` | `-instance-id` | `-` | | Stable instance name; the MQTT client ID is fleetwire-bridge-. Default: host name. | | `FLEETWIRE_BRIDGE_RECEIVE_MAXIMUM` | `-receive-maximum` | `1000` | | Messages the broker may send before the bridge acks. | ## fleetwire-ingest | Env var | Flag | Default | Required | Description | |---|---|---|---|---| | `FLEETWIRE_LOG_LEVEL` | `-log-level` | `info` | | debug, info, warn or error. | | `FLEETWIRE_ADMIN_LISTEN` | `-admin-listen` | `127.0.0.1:9090` | | Health and metrics listener (plain HTTP; keep it private). | | `FLEETWIRE_OTLP_ENDPOINT` | `-otlp-endpoint` | `-` | | OTLP/HTTP endpoint for traces. Empty disables tracing. | | `FLEETWIRE_TRACE_SAMPLE_RATIO` | `-trace-sample-ratio` | `0.1` | | Fraction of new traces sampled. | | `FLEETWIRE_KAFKA_BROKERS` | `-kafka-brokers` | `-` | yes | Comma-separated Kafka bootstrap brokers. | | `FLEETWIRE_KAFKA_SASL_MECHANISM` | `-kafka-sasl-mechanism` | `-` | | SCRAM-SHA-512 (what Charmed Kafka uses), SCRAM-SHA-256, or empty for no authentication. | | `FLEETWIRE_KAFKA_USERNAME` | `-kafka-username` | `-` | | SASL user name. | | `FLEETWIRE_KAFKA_PASSWORD` | `-kafka-password` | `-` | | SASL password. Secret: never logged. `FLEETWIRE_KAFKA_PASSWORD_FILE` can name a file to read it from instead. | | `FLEETWIRE_KAFKA_TLS` | `-kafka-tls` | `-` | | Connect to the brokers over TLS. | | `FLEETWIRE_KAFKA_TLS_CA_FILE` | `-kafka-tls-ca` | `-` | | CA bundle for the brokers' certificates. Empty means the system roots. | | `FLEETWIRE_DATABASE_URL` | `-database-url` | `-` | | PostgreSQL URL for the service login: the runtime role, or a member of it, never the schema owner. Secret: never logged. `FLEETWIRE_DATABASE_URL_FILE` can name a file to read it from instead. | | `FLEETWIRE_DATABASE_MAX_CONNS` | `-database-max-conns` | `20` | | Connection pool size. | | `FLEETWIRE_KAFKA_REPLICATION` | `-kafka-replication` | `3` | | Replication factor for ensure-topics. | | `FLEETWIRE_KAFKA_GROUP` | `-kafka-group` | `fleetwire-ingest` | | Consumer group. With Charmed Kafka it must start with the relation's consumer-group-prefix. | | `FLEETWIRE_INGEST_WORKERS` | `-workers` | `16` | | Devices processed in parallel, one database transaction each; keep FLEETWIRE_DATABASE_MAX_CONNS above it. | | `FLEETWIRE_MQTT_URL` | `-mqtt-url` | `-` | | Broker service listener for acks, for example tls://mosquitto:8884. Must use a TLS scheme: tls, ssl, mqtts, mqtt+ssl or tcps. | | `FLEETWIRE_MQTT_CERT_FILE` | `-mqtt-cert` | `-` | | Client certificate chain (CN fleetwire-ingest). | | `FLEETWIRE_MQTT_KEY_FILE` | `-mqtt-key` | `-` | | Client private key. | | `FLEETWIRE_MQTT_CA_FILE` | `-mqtt-ca` | `-` | | CA bundle that signed the broker certificate. | | `FLEETWIRE_KEYRING_DIR` | `-keyring-dir` | `-` | | Directory of per-tenant KEK files, shared with the API. Set this or FLEETWIRE_KEYRING_URL. | | `FLEETWIRE_KEYRING_ROOT_KEY_FILE` | `-keyring-root-key` | `-` | | 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. | | `FLEETWIRE_KEYRING_URL` | `-keyring-url` | `-` | | The API's keyring listener, for example https://api:8445. Set this or FLEETWIRE_KEYRING_DIR. | | `FLEETWIRE_KEYRING_CERT_FILE` | `-keyring-cert` | `-` | | Client certificate for the keyring listener. Default: FLEETWIRE_MQTT_CERT_FILE. | | `FLEETWIRE_KEYRING_KEY_FILE` | `-keyring-key` | `-` | | Its private key. Default: FLEETWIRE_MQTT_KEY_FILE. | | `FLEETWIRE_KEYRING_CA_FILE` | `-keyring-ca` | `-` | | CA bundle that signed the API certificate. Default: FLEETWIRE_MQTT_CA_FILE. | | `FLEETWIRE_INSTANCE_ID` | `-instance-id` | `-` | | Stable instance name. Default: host name. | | `FLEETWIRE_INGEST_ACK_WORKERS` | `-ack-workers` | `8` | | Concurrent ack publishers. |