Solutions
Device management
Remotely manage, and protect laptops and mobile devices.
Orchestration
Automate tasks across devices, from app installs to scripts.
Software management
Inventory, patch, and manage installed software.
Extend Fleet
Integrate your favorite tools with Fleet.
Customers
Stripe + Fleet
Stripe consolidates multiple tools with Fleet.
Foursquare + Fleet
Foursquare quickly migrates to Fleet for device management.
What people are saying
Stories from the Fleet community.
More
Fleet server configuration
On this page:
On this page
Fleet server configuration options update the internals of the Fleet server (MySQL database, Redis, etc.). Modifying these options requires restarting your Fleet server.
Only self-managed users and customers can modify this configuration. If you're a managed-cloud customer, please reach out to Fleet about modifying the configuration.
You can specify configuration options in the following formats:
s, m, h.This section describes the configuration options for the primary. Suppose you also want to set up a read replica. In that case the options are the same, except that the YAML section is mysql_read_replica, and the flags have the mysql_read_replica_ prefix instead of mysql_ (the corresponding environment variables follow the same transformation). Note that there is no default value for mysql_read_replica_address, it must be set explicitly for Fleet to use a read replica, and it is recommended in that case to set a non-zero value for mysql_read_replica_conn_max_lifetime as in some environments, the replica's address may dynamically change to point
from the primary to an actual distinct replica based on auto-scaling options, so existing idle connections need to be recycled
periodically.
For the address of the MySQL server that Fleet should connect to, include the hostname and port.
If an Amazon Relational Database Service (RDS) endpoint is specified and mysql_region is set instead of mysql_password or mysql_password_path, Identity and Access Management (IAM) authentication is automatically used.
localhost:3306FLEET_MYSQL_ADDRESSmysql:
address: localhost:3306This is the name of the MySQL database which Fleet will use.
fleetFLEET_MYSQL_DATABASEmysql:
database: fleetThe username to use when connecting to the MySQL instance.
fleetFLEET_MYSQL_USERNAMEmysql:
username: fleetThe password to use when connecting to the MySQL instance.
fleetFLEET_MYSQL_PASSWORDmysql:
password: fleetFile path to a file that contains the password to use when connecting to the MySQL instance.
""FLEET_MYSQL_PASSWORD_PATHmysql:
password_path: '/run/secrets/fleetdm-mysql-password'The path to a PEM encoded certificate of MYSQL's CA for client certificate authentication.
FLEET_MYSQL_TLS_CAmysql:
tls_ca: /path/to/server-ca.pemThe path to a PEM encoded certificate is used for TLS authentication.
FLEET_MYSQL_TLS_CERTmysql:
tls_cert: /path/to/certificate.pemThe path to a PEM encoded private key used for TLS authentication.
FLEET_MYSQL_TLS_KEYmysql:
tls_key: /path/to/key.pemThe TLS value in an MYSQL DSN. Can be true,false,skip-verify, or the CN value of the certificate.
FLEET_MYSQL_TLS_CONFIGmysql:
tls_config: trueThis is the server name or IP address used by the client certificate.
FLEET_MYSQL_TLS_SERVER_NAMEmysql:
server_name: 127.0.0.1The maximum open connections to the database.
Default value: 50
Environment variable: FLEET_MYSQL_MAX_OPEN_CONNS
Config file format:
mysql:
max_open_conns: 50Note: Fleet server uses SQL prepared statements, and the default setting of MySQL DB server's max_prepared_stmt_count may need to be adjusted for large deployments. This setting should be greater than or equal to:
FLEET_MYSQL_MAX_OPEN_CONNS * (max number of fleet servers) * 4Fleet uses 3 prepared statements for authentication (used by Fleet API) + each database connection can be using 1 additional prepared statement.
The maximum idle connections to the database. This value should be equal to or less than mysql_max_open_conns.
FLEET_MYSQL_MAX_IDLE_CONNSmysql:
max_idle_conns: 50The maximum amount of time, in seconds, a connection may be reused.
FLEET_MYSQL_CONN_MAX_LIFETIMEmysql:
conn_max_lifetime: 50Sets the connection sql_mode. See MySQL Reference for more details.
This setting should not usually be used.
""FLEET_MYSQL_SQL_MODEmysql:
sql_mode: ANSIAWS region to use for Identity and Access Management (IAM) authentication of an Amazon Relational Database Service (RDS) MySQL connection. This flag only has effect if all of the following are true:
mysql_password is not set
mysql_password_path is not set
Default value: none
Environment variable: FLEET_MYSQL_REGION
Config file format:
mysql:
region: ca-central-1Optionally, when using Identity and Access Management (IAM) authentication, this is the Amazon Resource Name (ARN) of the AWS Security Token Service (STS) role to assume.
""FLEET_MYSQL_STS_ASSUME_ROLE_ARNmysql:
sts_assume_role_arn: arn:aws:iam::1234567890:role/rds-auth-roleOptionally, if you're using a third-party to manage AWS resources, this is the AWS Security Token Service (STS) External ID to use for MySQL authentication. Specify this with mysql_sts_assume_role_arn.
""FLEET_MYSQL_STS_EXTERNAL_IDmysql:
sts_external_id: your_unique_idNote that to test a TLS connection to a Redis instance, run the
tlsconnect Go program in tools/redis-tests, e.g., from the root of the repository:
$ go run ./tools/redis-tests/tlsconnect.go -addr <redis_address> -cacert <redis_tls_ca> -cert <redis_tls_cert> -key <redis_tls_key>
# run `go run ./tools/redis-tests/tlsconnect.go -h` for the full list of supported flagsBy default, this will set up a Redis pool for that configuration and execute a
PING command with a TLS connection, printing any error it encounters.
For the address of the Redis server that Fleet should connect to, include the hostname and port.
If an AWS ElastiCache endpoint is specified and no redis_password is provided, Fleet will attempt IAM authentication only if both redis_region and redis_cluster are also set. Otherwise, it falls back to authentication without a password.
localhost:6379FLEET_REDIS_ADDRESSredis:
address: 127.0.0.1:6379The username to use when connecting to the Redis instance.
<empty>FLEET_REDIS_USERNAMEredis:
username: foobarThe password to use when connecting to the Redis instance.
<empty>FLEET_REDIS_PASSWORDredis:
password: foobarThe database to use when connecting to the Redis instance.
0FLEET_REDIS_DATABASEredis:
database: 14Use a TLS connection to the Redis server.
falseFLEET_REDIS_USE_TLSredis:
use_tls: trueAWS region to use for IAM authentication of an Elasticache connection. This flag only has effect if all of the following are true:
redis_password is not set
redis_cache_name is set
Default value: none
Environment variable: FLEET_REDIS_REGION
Config file format:
redis:
region: ca-central-1Cache name to use for IAM authentication of an Elasticache connection. This flag only has effect if all of the following are true:
redis_password is not set
redis_region is set
Default value: none
Environment variable: FLEET_REDIS_CACHE_NAME
Config file format:
redis:
cache_name: my-elasticache-instanceOptionally, when using Identity and Access Management (IAM) authentication, this is the Amazon Resource Name (ARN) of the AWS Security Token Service (STS) role to assume.
""FLEET_REDIS_STS_ASSUME_ROLE_ARNredis:
sts_assume_role_arn: arn:aws:iam::1234567890:role/elasticache-auth-roleOptionally, if you're using a third-party to manage AWS resources, this is the AWS Security Token Service (STS) External ID to use for IAM authentication. Specify this with redis_sts_assume_role_arn.
""FLEET_REDIS_STS_EXTERNAL_IDredis:
sts_external_id: your_unique_idWhether or not to duplicate Live Query results to another Redis channel named LQDuplicate. This is useful in a scenario involving shipping the Live Query results outside of Fleet, near real-time.
falseFLEET_REDIS_DUPLICATE_RESULTSredis:
duplicate_results: trueTimeout for redis connection.
FLEET_REDIS_CONNECT_TIMEOUTredis:
connect_timeout: 10sThe interval between keep-alive probes.
FLEET_REDIS_KEEP_ALIVEredis:
keep_alive: 30sThe maximum number of attempts to retry a failed connection to a Redis node. Only certain types of errors are retried, such as connection timeouts.
FLEET_REDIS_CONNECT_RETRY_ATTEMPTSredis:
connect_retry_attempts: 2Whether or not to automatically follow redirection errors received from the Redis server. Applies only to Redis Cluster setups, ignored in standalone Redis. In Redis Cluster, keys can be moved around to different nodes when the cluster is unstable and reorganizing the data. With this configuration option set to true, those (typically short and transient) redirection errors can be handled transparently instead of ending in an error.
FLEET_REDIS_CLUSTER_FOLLOW_REDIRECTIONSredis:
cluster_follow_redirections: trueWhether or not to prefer reading from a replica when possible. Applies only to Redis Cluster setups, ignored in standalone Redis.
FLEET_REDIS_CLUSTER_READ_FROM_REPLICAredis:
cluster_read_from_replica: trueThis is the path to a PEM-encoded certificate used for TLS authentication.
FLEET_REDIS_TLS_CERTredis:
tls_cert: /path/to/certificate.pemThis is the path to a PEM-encoded private key used for TLS authentication.
FLEET_REDIS_TLS_KEYredis:
tls_key: /path/to/key.pemThis is the path to a PEM-encoded certificate of Redis' CA for client certificate authentication.
FLEET_REDIS_TLS_CAredis:
tls_ca: /path/to/server-ca.pemThe server name or IP address used by the client certificate.
FLEET_REDIS_TLS_SERVER_NAMEredis:
tls_server_name: 127.0.0.1The timeout for the Redis TLS handshake part of the connection. A value of 0 means no timeout.
FLEET_REDIS_TLS_HANDSHAKE_TIMEOUTredis:
tls_handshake_timeout: 10sThe maximum idle connections to Redis. This value should be equal to or less than redis_max_open_conns.
FLEET_REDIS_MAX_IDLE_CONNSredis:
max_idle_conns: 50The maximum open connections to Redis. A value of 0 means no limit.
FLEET_REDIS_MAX_OPEN_CONNSredis:
max_open_conns: 100The maximum time a Redis connection may be reused. A value of 0 means no limit.
FLEET_REDIS_CONN_MAX_LIFETIMEredis:
conn_max_lifetime: 30mThe maximum time a Redis connection may stay idle. A value of 0 means no limit.
FLEET_REDIS_IDLE_TIMEOUTredis:
idle_timeout: 5mThe maximum time to wait for a Redis connection if the max_open_conns limit is reached. A value of 0 means no wait.
FLEET_REDIS_CONN_WAIT_TIMEOUTredis:
conn_wait_timeout: 1sThe maximum time to wait to receive a response from a Redis server. A value of 0 means no timeout.
FLEET_REDIS_READ_TIMEOUTredis:
read_timeout: 5sThe maximum time to wait to send a command to a Redis server. A value of 0 means no timeout.
FLEET_REDIS_WRITE_TIMEOUTredis:
write_timeout: 5sThe address to serve the Fleet webserver.
0.0.0.0:8080FLEET_SERVER_ADDRESSserver:
address: 0.0.0.0:443The TLS cert to use when terminating TLS.
See TLS certificate considerations for more information about certificates and Fleet.
./tools/osquery/fleet.crtFLEET_SERVER_CERTserver:
cert: /tmp/fleet.crtThe TLS key to use when terminating TLS.
./tools/osquery/fleet.keyFLEET_SERVER_KEYserver:
key: /tmp/fleet.keyWhether or not the server should be served over TLS.
trueFLEET_SERVER_TLSserver:
tls: falseConfigures the TLS settings for compatibility with various user agents. Options are modern and intermediate. These correspond to the compatibility levels defined by the Mozilla OpSec team (updated July 24, 2020).
intermediateFLEET_SERVER_TLS_COMPATIBILITYserver:
tls_compatibility: intermediateSets a URL prefix to use when serving the Fleet API and frontend. Prefixes should be in the form /apps/fleet (no trailing slash).
Note that some other configurations may need to be changed when modifying the URL prefix. In particular, URLs that are provided to osquery via flagfile, the configuration served by Fleet, the URL prefix used by fleetctl, and the redirect URL set with an identity provider.
FLEET_SERVER_URL_PREFIXserver:
url_prefix: /apps/fleetControls the server side http keep alive property.
Turning off keepalives has helped reduce outstanding TCP connections in some deployments.
FLEET_SERVER_KEEPALIVEserver:
keepalive: trueControls the servers websocket origin check. If your Fleet server is behind a reverse proxy,
the Origin header may not reflect the client's true origin. In this case, you might need to
disable the origin header (by setting this configuration to true)
check or configure your reverse proxy to forward the correct Origin header.
Setting to true will disable the origin check.
FLEET_SERVER_WEBSOCKETS_ALLOW_UNSAFE_ORIGINserver:
websockets_allow_unsafe_origin: trueSetting this will force the Go webserver to attempt HTTP2. By default, HTTP2 support is only negotiated if the Go webserver is serving TLS, this setting is ignored if TLS is enabled. This configuration might be required if Fleet is hosted in certain cloud providers that have limitations on their API gateways, such as GCP Cloud Run.
server:
force_h2c: trueThis key is required for enabling Apple, Windows, and Android MDM features and/or storing sensitive configs (passwords, API keys, etc.) in Fleet. If you are using the FLEET_APPLE_APNS_* and FLEET_APPLE_SCEP_* variables, Fleet will automatically encrypt the values of those variables using FLEET_SERVER_PRIVATE_KEY and save them in the database when you restart after updating.
The key must be at least 32 bytes long. Run openssl rand -base64 32 in the Terminal app to generate one on macOS.
server:
private_key: 72414F4A688151F75D032F5CDA095FC4AWS region to use for Identity and Access Management (IAM) authentication. This flag only has effect if server_private_key is not set.
FLEET_SERVER_PRIVATE_KEY_REGIONserver:
private_key_region: ca-central-1Optionally, when using Identity and Access Management (IAM) authentication, this is the Amazon Resource Name (ARN) of the server private key.
Only one of server_private_key_arn or server_private_key can be set.
If set, Fleet reads the private key from AWS Secrets Manager instead of directly from server_private_key.
""FLEET_SERVER_PRIVATE_KEY_STS_ASSUME_ROLE_ARNserver:
server_private_key_arn: arn:aws:secretsmanager:us-east-1:123456789012:secret:SecretName-473945Optionally, when using Identity and Access Management (IAM) authentication, this is the Amazon Resource Name (ARN) of the AWS Security Token Service (STS) role to assume.
""FLEET_SERVER_PRIVATE_KEY_STS_ASSUME_ROLE_ARNserver:
private_key_sts_assume_role_arn: arn:aws:iam::1234567890:role/rds-auth-roleOptionally, if you're using a third-party to manage AWS resources, this is the AWS Security Token Service (STS) External ID to use for MySQL authentication. Specify this with server_private_key_arn and server_private_key_sts_assume_role_arn.
""FLEET_SERVER_PRIVATE_KEY_EXTERNAL_IDserver:
private_key_sts_external_id: your_unique_idHow long an SSO authentication process can take between initiation and callback. Applies to both users logging into the Fleet web UI and end users during MDM enrollment.
Note: Once logged in,
session_durationdetermines how long a user stays logged into Fleet.
5m (5 minutes)FLEET_AUTH_SSO_SESSION_VALIDITY_PERIODauth:
sso_session_validity_period: 10mThe bcrypt cost to use when hashing user passwords.
12FLEET_AUTH_BCRYPT_COSTauth:
bcrypt_cost: 14The key size of the salt which is generated when hashing user passwords.
Note: Fleet uses the
bcrypthashing algorithm for hashing passwords, which has a 72 character input limit. This means that the plaintext password (i.e. the password input by the user) length + the value ofauth_salt_key_sizecannot exceed 72. In the default case, the max length of a plaintext password is 48 (72 - 24).
24FLEET_AUTH_SALT_KEY_SIZEauth:
salt_key_size: 36Available in Fleet Premium.
When enabled, Fleet server will require HTTP message signatures for all incoming fleetd (orbit and osquery) requests to verify request authenticity and integrity. The fleetd agents must run with --fleet-managed-client-certificate flag so they can request a host identity certificate from Fleet server and then use it to create HTTP message signatures (requires orbit 1.46.0 or higher).
falseFLEET_AUTH_REQUIRE_HTTP_MESSAGE_SIGNATUREauth:
require_http_message_signature: trueSize of generated app tokens.
24FLEET_APP_TOKEN_KEY_SIZEapp:
token_key_size: 36How long invite tokens should be valid for.
5d (5 days)FLEET_APP_INVITE_TOKEN_VALIDITY_PERIODapp:
invite_token_validity_period: 1dDetermines whether Fleet collects performance impact statistics for scheduled queries.
If set to false, stats are still collected for live queries.
trueFLEET_APP_ENABLE_SCHEDULED_QUERY_STATSapp:
enable_scheduled_query_stats: trueAvailable in Fleet Premium.
The license key provided to Fleet customers which provides access to Fleet Premium features.
FLEET_LICENSE_KEYlicense:
key: foobarWondering where to get a license key? You can grab a license or if you have questions, schedule a demo.
The size of the session key.
64FLEET_SESSION_KEY_SIZEsession:
key_size: 48This is the amount of time that a session should last. Whenever a user logs in, the time is reset to the specified, or default, duration.
Valid time units are s, m, h.
5d (5 days)FLEET_SESSION_DURATIONsession:
duration: 4hThe size of the node key which is negotiated with osqueryd clients.
24FLEET_OSQUERY_NODE_KEY_SIZEosquery:
node_key_size: 36The identifier to use when determining uniqueness of hosts.
Options are provided (default), uuid, hostname, or instance.
This setting works in combination with the --host_identifier flag in osquery. In most deployments, using uuid will be the best option. The flag defaults to provided -- preserving the existing behavior of Fleet's handling of host identifiers -- using the identifier provided by osquery. instance, uuid, and hostname correspond to the same meanings as osquery's --host_identifier flag.
Users that have duplicate UUIDs in their environment can benefit from setting this flag to instance.
If you are enrolling your hosts using Fleet generated packages, it is recommended to use
uuidas your identifier. This prevents potential issues with duplicate host enrollments.
providedFLEET_OSQUERY_HOST_IDENTIFIERosquery:
host_identifier: uuidThe cooldown period for host enrollment. If a host (uniquely identified by the osquery_host_identifier option) tries to enroll within this duration from the last enrollment, enroll will fail.
This flag can be used to control load on the database in scenarios in which many hosts are using the same identifier. Often configuring osquery_host_identifier to instance may be a better solution.
0 (off)FLEET_OSQUERY_ENROLL_COOLDOWNosquery:
enroll_cooldown: 1mThe interval at which Fleet will ask Fleet's agent (fleetd) to update results for label queries.
Setting this to a higher value can reduce baseline load on the Fleet server in larger deployments.
Setting this to a lower value can increase baseline load significantly and cause performance issues or even outages. Proceed with caution.
Valid time units are s, m, h.
1hFLEET_OSQUERY_LABEL_UPDATE_INTERVALosquery:
label_update_interval: 90mThe interval at which Fleet will ask Fleet's agent (fleetd) to update results for policy queries.
Setting this to a higher value can reduce baseline load on the Fleet server in larger deployments.
Setting this to a lower value can increase baseline load significantly and cause performance issues or even outages. Proceed with caution.
Valid time units are s, m, h.
1hFLEET_OSQUERY_POLICY_UPDATE_INTERVALosquery:
policy_update_interval: 90mThe interval at which Fleet will ask Fleet's agent (fleetd) to update host details (such as uptime, hostname, network interfaces, etc.)
Setting this to a higher value can reduce baseline load on the Fleet server in larger deployments.
Setting this to a lower value can increase baseline load significantly and cause performance issues or even outages. Proceed with caution.
Valid time units are s, m, h.
1hFLEET_OSQUERY_DETAIL_UPDATE_INTERVALosquery:
detail_update_interval: 90mThis is the log output plugin that should be used for osquery status logs received from clients. Check out the reference documentation for log destinations.
Options are filesystem, firehose, kinesis, lambda, pubsub, kafkarest, and stdout.
filesystemFLEET_OSQUERY_STATUS_LOG_PLUGINosquery:
status_log_plugin: firehoseThis is the log output plugin that should be used for osquery result logs received from clients. Check out the reference documentation for log destinations.
Options are filesystem, firehose, kinesis, lambda, pubsub, kafkarest, and stdout.
filesystemFLEET_OSQUERY_RESULT_LOG_PLUGINosquery:
result_log_plugin: firehoseGiven an update interval (label, or details), this will add up to the defined percentage in randomness to the interval.
The goal of this is to prevent all hosts from checking in with data at the same time.
So for example, if the label_update_interval is 1h, and this is set to 10. It'll add up a random number between 0 and 6 minutes to the amount of time it takes for Fleet to give the host the label queries.
10FLEET_OSQUERY_MAX_JITTER_PERCENTosquery:
max_jitter_percent: 10Experimental feature. Enable asynchronous processing of hosts' query results. Currently, asynchronous processing is only supported for label query execution, policy membership results, hosts' last seen timestamp, and hosts' scheduled query statistics. This may improve the performance and CPU usage of the Fleet instances and MySQL database servers for setups with a large number of hosts while requiring more resources from Redis server(s).
Note that currently, if both the failing policies webhook and this osquery.enable_async_host_processing option are set, some failing policies webhooks could be missing (some transitions from succeeding to failing or vice-versa could happen without triggering a webhook request).
It can be set to a single boolean value ("true" or "false"), which controls all async host processing tasks, or it can be set for specific async tasks using a syntax similar to an URL query string or parameters in a Data Source Name (DSN) string, e.g., "label_membership=true&policy_membership=true". When using the per-task syntax, omitted tasks get the default value. The supported async task names are:
label_membership for updating the hosts' label query execution;policy_membership for updating the hosts' policy membership results;host_last_seen for updating the hosts' last seen timestamp.scheduled_query_stats for saving the hosts' scheduled query statistics.FLEET_OSQUERY_ENABLE_ASYNC_HOST_PROCESSINGosquery:
enable_async_host_processing: trueFleet tested this option for
policy_membership=truein this issue and found that it does not impact the performance or behavior of the app.
Applies only when osquery_enable_async_host_processing is enabled. Sets the interval at which the host data will be collected into the database. Each Fleet instance will attempt to do the collection at this interval (with some optional jitter added, see osquery_async_host_collect_max_jitter_percent), with only one succeeding to get the exclusive lock.
It can be set to a single duration value (e.g., "30s"), which defines the interval for all async host processing tasks, or it can be set for specific async tasks using a syntax similar to an URL query string or parameters in a Data Source Name (DSN) string, e.g., "label_membership=10s&policy_membership=1m". When using the per-task syntax, omitted tasks get the default value. See osquery_enable_async_host_processing for the supported async task names.
FLEET_OSQUERY_ASYNC_HOST_COLLECT_INTERVALosquery:
async_host_collect_interval: 1mApplies only when osquery_enable_async_host_processing is enabled. A number interpreted as a percentage of osquery_async_host_collect_interval to add to (or remove from) the interval so that not all hosts try to do the collection at the same time.
FLEET_OSQUERY_ASYNC_HOST_COLLECT_MAX_JITTER_PERCENTosquery:
async_host_collect_max_jitter_percent: 5Applies only when osquery_enable_async_host_processing is enabled. Timeout of the lock acquired by a Fleet instance to collect host data into the database. If the collection runs for too long or the instance crashes unexpectedly, the lock will be automatically released after this duration and another Fleet instance can proceed with the next collection.
It can be set to a single duration value (e.g., "1m"), which defines the lock timeout for all async host processing tasks, or it can be set for specific async tasks using a syntax similar to an URL query string or parameters in a Data Source Name (DSN) string, e.g., "label_membership=2m&policy_membership=5m". When using the per-task syntax, omitted tasks get the default value. See osquery_enable_async_host_processing for the supported async task names.
FLEET_OSQUERY_ASYNC_HOST_COLLECT_LOCK_TIMEOUTosquery:
async_host_collect_lock_timeout: 5mApplies only when osquery_enable_async_host_processing is enabled. Interval at which the host collection statistics are logged, 0 to disable logging of statistics. Note that logging is done at the "debug" level.
FLEET_OSQUERY_ASYNC_HOST_COLLECT_LOG_STATS_INTERVALosquery:
async_host_collect_log_stats_interval: 5mApplies only when osquery_enable_async_host_processing is enabled. Size of the INSERT batch when collecting host data into the database.
FLEET_OSQUERY_ASYNC_HOST_INSERT_BATCHosquery:
async_host_insert_batch: 1000Applies only when osquery_enable_async_host_processing is enabled. Size of the DELETE batch when collecting host data into the database.
FLEET_OSQUERY_ASYNC_HOST_DELETE_BATCHosquery:
async_host_delete_batch: 1000Applies only when osquery_enable_async_host_processing is enabled. Size of the UPDATE batch when collecting host data into the database.
FLEET_OSQUERY_ASYNC_HOST_UPDATE_BATCHosquery:
async_host_update_batch: 500Applies only when osquery_enable_async_host_processing is enabled. Maximum number of items to pop from a redis key at a time when collecting host data into the database.
FLEET_OSQUERY_ASYNC_HOST_REDIS_POP_COUNTosquery:
async_host_redis_pop_count: 500Applies only when osquery_enable_async_host_processing is enabled. Order of magnitude (e.g., 10, 100, 1000, etc.) of set members to scan in a single ZSCAN/SSCAN request for items to process when collecting host data into the database.
FLEET_OSQUERY_ASYNC_HOST_REDIS_SCAN_KEYS_COUNTosquery:
async_host_redis_scan_keys_count: 100The minimum time difference between the software's "last opened at" timestamp reported by osquery and the last timestamp saved for that software on that host helps minimize the number of updates required when a host reports its installed software information, resulting in less load on the database. If there is no existing timestamp for the software on that host (or if the software was not installed on that host previously), the new timestamp is automatically saved.
FLEET_OSQUERY_MIN_SOFTWARE_LAST_OPENED_AT_DIFFosquery:
min_software_last_opened_at_diff: 4hAvailable in Fleet Premium. Activity information is available for all Fleet Free and Fleet Premium instances using the Activities API.
Stream Fleet user activities to logs using Fleet's logging plugins. The audit events are logged in an asynchronous fashion. It can take up to 5 minutes for an event to be logged.
This enables/disables the log output for audit events.
See the activity_audit_log_plugin option below that specifies the logging destination.
falseFLEET_ACTIVITY_ENABLE_AUDIT_LOGactivity:
enable_audit_log: trueThis is the log output plugin that should be used for audit logs.
This flag only has effect if activity_enable_audit_log is set to true.
Each plugin has additional configuration options. Please see the configuration section linked below for your logging plugin.
Options are filesystem, firehose, kinesis, lambda, pubsub, kafkarest, and stdout (no additional configuration needed).
filesystemFLEET_ACTIVITY_AUDIT_LOG_PLUGINactivity:
audit_log_plugin: firehoseWhether or not to enable debug logging.
falseFLEET_LOGGING_DEBUGlogging:
debug: trueWhether or not to log in JSON.
falseFLEET_LOGGING_JSONlogging:
json: trueWhether or not to log the welcome banner.
falseFLEET_LOGGING_DISABLE_BANNERlogging:
disable_banner: trueThe amount of time to keep an error. Unique instances of errors are stored temporarily to help with troubleshooting, this setting controls that duration. Set to 0 to keep them without expiration, and a negative value to disable storage of errors in Redis.
FLEET_LOGGING_ERROR_RETENTION_PERIODlogging:
error_retention_period: 1hThis flag only has effect if osquery_status_log_plugin is set to filesystem (the default value).
The path which osquery status logs will be logged to.
/tmp/osquery_statusFLEET_FILESYSTEM_STATUS_LOG_FILEfilesystem:
status_log_file: /var/log/osquery/status.logThis flag only has effect if osquery_result_log_plugin is set to filesystem (the default value).
The path which osquery result logs will be logged to.
/tmp/osquery_resultFLEET_FILESYSTEM_RESULT_LOG_FILEfilesystem:
result_log_file: /var/log/osquery/result.logThis flag only has effect if activity_audit_log_plugin is set to filesystem (the default value) and if activity_enable_audit_log is set to true.
The path which audit logs will be logged to.
/tmp/auditFLEET_FILESYSTEM_AUDIT_LOG_FILEfilesystem:
audit_log_file: /var/log/fleet/audit.logThis flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to filesystem (the default value).activity_audit_log_plugin is set to filesystem and activity_enable_audit_log is set to true.This flag will cause the osquery result and status log files to be automatically rotated when files reach a size of 500 MB or an age of 28 days.
falseFLEET_FILESYSTEM_ENABLE_LOG_ROTATIONfilesystem:
enable_log_rotation: trueThis flag only has effect if filesystem_enable_log_rotation is set to true.
This flag will cause the rotated logs to be compressed with gzip.
falseFLEET_FILESYSTEM_ENABLE_LOG_COMPRESSIONfilesystem:
enable_log_compression: trueThis flag only has effect if filesystem_enable_log_rotation is set to true.
Sets the maximum size in megabytes of log files before it gets rotated.
500FLEET_FILESYSTEM_MAX_SIZEfilesystem:
max_size: 100This flag only has effect if filesystem_enable_log_rotation is set to true.
Sets the maximum age in days to retain old log files before deletion. Setting this to zero will retain all logs.
28FLEET_FILESYSTEM_MAX_AGEfilesystem:
max_age: 0This flag only has effect if filesystem_enable_log_rotation is set to true.
Sets the maximum number of old files to retain before deletion. Setting this to zero will retain all logs. Note max_age may still cause them to be deleted.
3FLEET_FILESYSTEM_MAX_BACKUPSfilesystem:
max_backups: 0To use webhook logging for query results, the following two Fleet config values must both be set:
--osquery_result_log_plugin="webhook",FLEET_OSQUERY_RESULT_LOG_PLUGIN="webhook", orosquery:
result_log_plugin: "webhook"and
--webhook_result_url="<target_result_url>",FLEET_WEBHOOK_RESULT_URL="<target_result_url>", orwebhook:
result_url: "<target_result_url>"This flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to firehose.activity_audit_log_plugin is set to firehose and activity_enable_audit_log is set to true.AWS region to use for Firehose connection.
FLEET_FIREHOSE_REGIONfirehose:
region: ca-central-1This flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to firehose.activity_audit_log_plugin is set to firehose and activity_enable_audit_log is set to true.If firehose_access_key_id and firehose_secret_access_key are omitted, Fleet will try to use AWS STS credentials.
AWS access key ID to use for Firehose authentication.
FLEET_FIREHOSE_ACCESS_KEY_IDfirehose:
access_key_id: AKIAIOSFODNN7EXAMPLEThis flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to firehose.activity_audit_log_plugin is set to firehose and activity_enable_audit_log is set to true.AWS secret access key to use for Firehose authentication.
FLEET_FIREHOSE_SECRET_ACCESS_KEYfirehose:
secret_access_key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEYThis flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to firehose.activity_audit_log_plugin is set to firehose and activity_enable_audit_log is set to true.Optionally, when using Identity and Access Management (IAM) authentication, this is the Amazon Resource Name (ARN) of the AWS Security Token Service (STS) role to assume.
If set, Fleet uses IAM authentication instead of basic authentication set by firehose_access_key_id and firehose_secret_access_key.
FLEET_FIREHOSE_STS_ASSUME_ROLE_ARNfirehose:
sts_assume_role_arn: arn:aws:iam::1234567890:role/firehose-roleThis flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to firehose.activity_audit_log_plugin is set to firehose and activity_enable_audit_log is set to true.Optionally, if you're using a third-party to manage AWS resources, this is the AWS Security Token Service (STS) External ID to use for IAM authentication. Specify this with firehose_sts_assume_role_arn.
FLEET_FIREHOSE_STS_EXTERNAL_IDfirehose:
sts_external_id: your_unique_idThis flag only has effect if osquery_status_log_plugin is set to firehose.
Name of the Firehose stream to write osquery status logs received from clients.
FLEET_FIREHOSE_STATUS_STREAMfirehose:
status_stream: osquery_statusThe IAM role used to send to Firehose must allow the following permissions on the stream listed:
firehose:DescribeDeliveryStreamfirehose:PutRecordBatchThis flag only has effect if osquery_result_log_plugin is set to firehose.
Name of the Firehose stream to write osquery result logs received from clients.
FLEET_FIREHOSE_RESULT_STREAMfirehose:
result_stream: osquery_resultThe IAM role used to send to Firehose must allow the following permissions on the stream listed:
firehose:DescribeDeliveryStreamfirehose:PutRecordBatchThis flag only has effect if activity_audit_log_plugin is set to firehose.
Name of the Firehose stream to audit logs.
FLEET_FIREHOSE_AUDIT_STREAMfirehose:
audit_stream: fleet_auditThe IAM role used to send to Firehose must allow the following permissions on the stream listed:
firehose:DescribeDeliveryStreamfirehose:PutRecordBatchThis flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to kinesis.activity_audit_log_plugin is set to kinesis and activity_enable_audit_log is set to true.AWS region to use for Kinesis connection
FLEET_KINESIS_REGIONkinesis:
region: ca-central-1This flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to kinesis.activity_audit_log_plugin is set to kinesis and activity_enable_audit_log is set to true.If kinesis_access_key_id and kinesis_secret_access_key are omitted, Fleet
will try to use
AWS STS
credentials.
AWS access key ID to use for Kinesis authentication.
FLEET_KINESIS_ACCESS_KEY_IDkinesis:
access_key_id: AKIAIOSFODNN7EXAMPLEThis flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to kinesis.activity_audit_log_plugin is set to kinesis and activity_enable_audit_log is set to true.AWS secret access key to use for Kinesis authentication.
FLEET_KINESIS_SECRET_ACCESS_KEYkinesis:
secret_access_key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEYThis flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to kinesis.activity_audit_log_plugin is set to kinesis and activity_enable_audit_log is set to true.Optionally, when using Identity and Access Management (IAM) authentication, this is the Amazon Resource Name (ARN) of the AWS Security Token Service (STS) role to assume.
If set, Fleet uses AWS IAM authentication instead of basic authentication set by kinesis_access_key_id and kinesis_secret_access_key.
FLEET_KINESIS_STS_ASSUME_ROLE_ARNkinesis:
sts_assume_role_arn: arn:aws:iam::1234567890:role/kinesis-roleThis flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to kinesis.activity_audit_log_plugin is set to kinesis and activity_enable_audit_log is set to true.Optionally, if you're using a third-party to manage AWS resources, this is the AWS Security Token Service (STS) External ID to use for IAM authentication. Specify this with kinesis_sts_assume_role_arn.
FLEET_KINESIS_STS_EXTERNAL_IDkinesis:
sts_external_id: your_unique_idThis flag only has effect if osquery_status_log_plugin is set to kinesis.
Name of the Kinesis stream to write osquery status logs received from clients.
FLEET_KINESIS_STATUS_STREAMkinesis:
status_stream: osquery_statusThe IAM role used to send to Kinesis must allow the following permissions on the stream listed:
kinesis:DescribeStreamkinesis:PutRecordsThis flag only has effect if osquery_result_log_plugin is set to kinesis.
Name of the Kinesis stream to write osquery result logs received from clients.
FLEET_KINESIS_RESULT_STREAMkinesis:
result_stream: osquery_resultThe IAM role used to send to Kinesis must allow the following permissions on the stream listed:
kinesis:DescribeStreamkinesis:PutRecordsThis flag only has effect if activity_audit_log_plugin is set to kinesis.
Name of the Kinesis stream to write audit logs.
FLEET_KINESIS_AUDIT_STREAMkinesis:
audit_stream: fleet_auditThe IAM role used to send to Kinesis must allow the following permissions on the stream listed:
kinesis:DescribeStreamkinesis:PutRecordsThis flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to lambda.activity_audit_log_plugin is set to lambda and activity_enable_audit_log is set to true.AWS region to use for Lambda connection.
FLEET_LAMBDA_REGIONlambda:
region: ca-central-1This flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to lambda.activity_audit_log_plugin is set to lambda and activity_enable_audit_log is set to true.If lambda_access_key_id and lambda_secret_access_key are omitted, Fleet
will try to use
AWS STS
credentials.
AWS access key ID to use for Lambda authentication.
FLEET_LAMBDA_ACCESS_KEY_IDlambda:
access_key_id: AKIAIOSFODNN7EXAMPLEThis flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to lambda.activity_audit_log_plugin is set to lambda and activity_enable_audit_log is set to true.AWS secret access key to use for Lambda authentication.
FLEET_LAMBDA_SECRET_ACCESS_KEYlambda:
secret_access_key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEYThis flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to lambda.activity_audit_log_plugin is set to lambda and activity_enable_audit_log is set to true.Optionally, when using Identity and Access Management (IAM) authentication, this is the Amazon Resource Name (ARN) of the AWS Security Token Service (STS) role to assume.
If set, Fleet uses AWS IAM authentication instead of basic authentication set by lambda_access_key_id and lambda_secret_access_key.
FLEET_LAMBDA_STS_ASSUME_ROLE_ARNlambda:
sts_assume_role_arn: arn:aws:iam::1234567890:role/lambda-roleThis flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to lambda.activity_audit_log_plugin is set to lambda and activity_enable_audit_log is set to true.Optionally, if you're using a third-party to manage AWS resources, this is the AWS Security Token Service (STS) External ID to use for IAM authentication. Specify this with lambda_sts_assume_role_arn.
FLEET_LAMBDA_STS_EXTERNAL_IDlambda:
sts_external_id: your_unique_idThis flag only has effect if osquery_status_log_plugin is set to lambda.
Name of the Lambda function to write osquery status logs received from clients.
FLEET_LAMBDA_STATUS_FUNCTIONlambda:
status_function: statusFunctionThe IAM role used to send to Lambda must allow the following permissions on the function listed:
lambda:InvokeFunctionThis flag only has effect if osquery_result_log_plugin is set to lambda.
Name of the Lambda function to write osquery result logs received from clients.
FLEET_LAMBDA_RESULT_FUNCTIONlambda:
result_function: resultFunctionThe IAM role used to send to Lambda must allow the following permissions on the function listed:
lambda:InvokeFunctionThis flag only has effect if activity_audit_log_plugin is set to lambda.
Name of the Lambda function to write audit logs.
FLEET_LAMBDA_AUDIT_FUNCTIONlambda:
audit_function: auditFunctionThe IAM role used to send to Lambda must allow the following permissions on the function listed:
lambda:InvokeFunctionThis flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to pubsub.activity_audit_log_plugin is set to pubsub and activity_enable_audit_log is set to true.The identifier of the Google Cloud project containing the pubsub topics to publish logs to.
Note that the pubsub plugin uses Application Default Credentials (ADCs) for authentication with the service.
FLEET_PUBSUB_PROJECTpubsub:
project: my-gcp-projectThis flag only has effect if osquery_result_log_plugin is set to pubsub.
The identifier of the pubsub topic that client results will be published to.
FLEET_PUBSUB_RESULT_TOPICpubsub:
result_topic: osquery_resultThis flag only has effect if osquery_status_log_plugin is set to pubsub.
The identifier of the pubsub topic that osquery status logs will be published to.
FLEET_PUBSUB_STATUS_TOPICpubsub:
status_topic: osquery_statusThis flag only has effect if osquery_audit_log_plugin is set to pubsub.
The identifier of the pubsub topic that client results will be published to.
FLEET_PUBSUB_AUDIT_TOPICpubsub:
audit_topic: fleet_auditThis flag only has effect if osquery_status_log_plugin is set to pubsub.
Add Pub/Sub attributes to messages. When enabled, the plugin parses the osquery result messages, and adds the following Pub/Sub message attributes:
name - the name attribute from the message bodytimestamp - the unixTime attribute from the message body, converted to rfc3339 formatThis feature is useful when combined with subscription filters.
FLEET_PUBSUB_ADD_ATTRIBUTESpubsub:
add_attributes: trueThis flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to kafkarest.activity_audit_log_plugin is set to kafkarest and activity_enable_audit_log is set to true.The URL of the host which to check for the topic existence and post messages to the specified topic.
FLEET_KAFKAREST_PROXYHOSTkafkarest:
proxyhost: "https://localhost:8443"This flag only has effect if osquery_status_log_plugin is set to kafkarest.
The identifier of the kafka topic that osquery status logs will be published to.
FLEET_KAFKAREST_STATUS_TOPICkafkarest:
status_topic: osquery_statusThis flag only has effect if osquery_result_log_plugin is set to kafkarest.
The identifier of the kafka topic that osquery result logs will be published to.
FLEET_KAFKAREST_RESULT_TOPICkafkarest:
result_topic: osquery_resultThis flag only has effect if osquery_audit_log_plugin is set to kafkarest.
The identifier of the kafka topic that audit logs will be published to.
FLEET_KAFKAREST_AUDIT_TOPICkafkarest:
audit_topic: fleet_auditThis flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to kafkarest.activity_audit_log_plugin is set to kafkarest and activity_enable_audit_log is set to true.The timeout value for the http post attempt. Value is in units of seconds.
FLEET_KAFKAREST_TIMEOUTkafkarest:
timeout: 5This flag only has effect if one of the following is true:
osquery_result_log_plugin or osquery_status_log_plugin are set to kafkarest.activity_audit_log_plugin is set to kafkarest and activity_enable_audit_log is set to true.The value of the Content-Type header to use in Kafka REST Proxy API calls. Note: only JSON format is supported
FLEET_KAFKAREST_CONTENT_TYPE_VALUEkafkarest:
content_type_value: application/vnd.kafka.json.v2+jsonBy default, the SMTP backend is enabled and no additional configuration is required on the server settings. You can configure SMTP through the Fleet console UI. However, you can also configure Fleet to use AWS SES natively rather than through SMTP.
A configured email backend is required for sending user invites, resetting passwords, verifying user email address changes, and multi-factor authentication within Fleet (without using an SSO identity provider).
Enable SES support for Fleet. You must also configure the ses configurations such as ses.source_arn
email:
backend: sesThe following configurations only have an effect if SES email backend is enabled FLEET_EMAIL_BACKEND=ses.
This flag only has effect if email.backend or FLEET_EMAIL_BACKEND is set to ses.
AWS region to use for SES connection.
FLEET_SES_REGIONses:
region: us-east-2This flag only has effect if email.backend or FLEET_EMAIL_BACKEND is set to ses.
If ses_access_key_id and ses_secret_access_key are omitted, Fleet
will try to use
AWS STS
credentials.
AWS access key ID to use for Lambda authentication.
FLEET_SES_ACCESS_KEY_IDses:
access_key_id: AKIAIOSFODNN7EXAMPLEThis flag only has effect if email.backend or FLEET_EMAIL_BACKEND is set to ses.
If ses_access_key_id and ses_secret_access_key are omitted, Fleet
will try to use
AWS STS
credentials.
AWS secret access key to use for SES authentication.
FLEET_SES_SECRET_ACCESS_KEYses:
secret_access_key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEYThis flag only has effect if email.backend or FLEET_EMAIL_BACKEND is set to ses. This configuration is
required when using the SES email backend.
Optionally, when using Identity and Access Management (IAM) authentication, this is the Amazon Resource Name (ARN) of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the Source parameter of SendRawEmail.
If set, Fleet uses AWS Identity and Access Management (IAM) authentication instead of basic authentication set by ses_access_key_id and ses_secret_access_key.
FLEET_SES_SOURCE_ARNses:
ses_source_arn: arn:aws:ses:us-east-1:123456789012:identity/example.comThis flag only has effect if email.backend or FLEET_EMAIL_BACKEND is set to ses.
Optionally, when using Identity and Access Management (IAM) authentication, this is the Amazon Resource Name (ARN) of the AWS Security Token Service (STS) role to assume.
FLEET_SES_STS_ASSUME_ROLE_ARNses:
sts_assume_role_arn: arn:aws:iam::1234567890:role/ses-roleThis flag only has effect if email.backend or FLEET_EMAIL_BACKEND is set to ses.
Optionally, if you're using a third-party to manage AWS resources, this is the AWS Security Token Service (STS) External ID to use for IAM authentication. Specify this with ses_source_arn and ses_sts_assume_role_arn.
FLEET_SES_STS_EXTERNAL_IDses:
sts_external_id: your_unique_idAvailable in Fleet Premium.
Name of the S3 bucket for storing software and bootstrap package.
FLEET_S3_SOFTWARE_INSTALLERS_BUCKETs3:
software_installers_bucket: some-bucketAvailable in Fleet Premium.
Prefix to prepend to software.
FLEET_S3_SOFTWARE_INSTALLERS_PREFIXs3:
software_installers_prefix: prefix-here/Available in Fleet Premium.
AWS access key ID to use for S3 authentication.
If s3_access_key_id and s3_secret_access_key are omitted, Fleet will try to use
the default credential provider chain.
The IAM identity used in this context must be allowed to perform the following actions on the bucket: s3:PutObject, s3:GetObject, s3:ListMultipartUploadParts, s3:ListBucket, s3:GetBucketLocation.
FLEET_S3_SOFTWARE_INSTALLERS_ACCESS_KEY_IDs3:
software_installers_access_key_id: AKIAIOSFODNN7EXAMPLEAvailable in Fleet Premium.
AWS secret access key to use for S3 authentication.
FLEET_S3_SOFTWARE_INSTALLERS_SECRET_ACCESS_KEYs3:
software_installers_secret_access_key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEYAvailable in Fleet Premium.
Optionally, when using Identity and Access Management (IAM) authentication, this is the Amazon Resource Name (ARN) of the AWS Security Token Service (STS) role to assume.
If set, Fleet uses AWS Identity and Access Management (IAM) authentication instead of basic authentication set by s3_software_installers_access_key_id and s3_software_installers_secret_access_key.
FLEET_S3_SOFTWARE_INSTALLERS_STS_ASSUME_ROLE_ARNs3:
software_installers_sts_assume_role_arn: arn:aws:iam::1234567890:role/some-s3-roleAvailable in Fleet Premium.
Optionally, if you're using a third-party to manage AWS resources, this is the AWS Security Token Service (STS) External ID to use for IAM authentication. Specify this with s3_software_installers_sts_assume_role_arn.
FLEET_S3_SOFTWARE_INSTALLERS_STS_EXTERNAL_IDs3:
software_installers_sts_external_id: your_unique_idAvailable in Fleet Premium.
AWS S3 Endpoint URL. Override when using a different S3 compatible object storage backend (such as Minio), or running S3 locally with localstack. Leave this blank to use the default S3 service endpoint.
FLEET_S3_SOFTWARE_INSTALLERS_ENDPOINT_URLs3:
software_installers_endpoint_url: http://localhost:9000Available in Fleet Premium.
AWS S3 Force S3 Path Style. Set this to true to force the request to use path-style addressing,
i.e., http://s3.amazonaws.com/BUCKET/KEY. By default, the S3 client
will use virtual hosted bucket addressing when possible
(http://BUCKET.s3.amazonaws.com/KEY).
FLEET_S3_SOFTWARE_INSTALLERS_FORCE_S3_PATH_STYLEs3:
software_installers_force_s3_path_style: falseAvailable in Fleet Premium.
AWS S3 Region. Leave blank to enable region discovery.
Minio users must set this to any nonempty value (eg. minio), as Minio does not support region discovery.
FLEET_S3_SOFTWARE_INSTALLERS_REGIONs3:
software_installers_region: us-east-1Available in Fleet Premium.
CloudFront URL. Leave blank if you don't use CloudFront distribution.
FLEET_S3_SOFTWARE_INSTALLERS_CLOUDFRONT_URLs3:
software_installers_cloudfront_url: https://jkl8dxv87sdh.cloudfront.netAvailable in Fleet Premium.
Public key ID for URL signing. If s3_software_installers_cloudfront_url is set, this is required.
FLEET_S3_SOFTWARE_INSTALLERS_CLOUDFRONT_URL_SIGNING_PUBLIC_KEY_IDs3:
software_installers_cloudfront_url_signing_public_key_id: K1HFGXOMBB6TFFAvailable in Fleet Premium.
Private key for URL signing. If s3_software_installers_cloudfront_url is set, this is required.
FLEET_S3_SOFTWARE_INSTALLERS_CLOUDFRONT_URL_SIGNING_PRIVATE_KEYs3:
software_installers_cloudfront_url_signing_private_key: |
------BEGIN BEGIN RSA PRIVATE KEY-----
3126756bd0c54fbc90c9928ef59e7037af8983afd10048929ae5
7473e62c7aed...Name of the S3 bucket for file carves.
FLEET_S3_CARVES_BUCKETs3:
carves_bucket: some-bucketAll carve objects will also be prefixed by date and hour (UTC), making the resulting keys look like: <prefix><year>/<month>/<day>/<hour>/<carve-name>.
FLEET_S3_CARVES_PREFIXs3:
carves_prefix: prefix-here/FLEET_S3_CARVES_ACCESS_KEY_IDs3:
carves_access_key_id: AKIAIOSFODNN7EXAMPLEFLEET_S3_CARVES_SECRET_ACCESS_KEYs3:
carves_secret_access_key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEYFLEET_S3_CARVES_STS_ASSUME_ROLE_ARNs3:
carves_sts_assume_role_arn: arn:aws:iam::1234567890:role/some-s3-roleFLEET_S3_CARVES_STS_EXTERNAL_IDs3:
carves_sts_external_id: your_unique_idFLEET_S3_CARVES_ENDPOINT_URLs3:
carves_endpoint_url: http://localhost:9000FLEET_S3_CARVES_FORCE_S3_PATH_STYLEs3:
carves_force_s3_path_style: falseFLEET_S3_CARVES_REGIONs3:
carves_region: us-east-1If set then fleet serve will run even if there are database migrations missing.
falseFLEET_UPGRADES_ALLOW_MISSING_MIGRATIONSupgrades:
allow_missing_migrations: trueThe path specified needs to exist and Fleet needs to be able to read and write to and from it. This is the only mandatory configuration needed for vulnerability processing to work.
When disable_schedule is set to false (the default), Fleet instances will try to create the databases_path if it doesn't exist.
/tmp/vulndbsFLEET_VULNERABILITIES_DATABASES_PATHvulnerabilities:
databases_path: /some/pathHow often vulnerabilities are checked. This is also the interval at which the counts of hosts per software is calculated.
1hFLEET_VULNERABILITIES_PERIODICITYvulnerabilities:
periodicity: 1hYou can fetch the CPE dictionary database from this URL. Some users want to control where Fleet gets its database. When Fleet sees this value defined, it downloads the file directly. It expects a file in the same format that can be found in https://github.com/fleetdm/nvd/releases. If this value is not defined, Fleet checks for the latest release in Github and only downloads it if needed.
""FLEET_VULNERABILITIES_CPE_DATABASE_URLvulnerabilities:
cpe_database_url: ""You can fetch the CPE translations from this URL. Translations are used when matching software to CPE entries in the CPE database that would otherwise be missed for various reasons. When Fleet sees this value defined, it downloads the file directly. It expects a file in the same format that can be found in https://github.com/fleetdm/nvd/releases. If this value is not defined, Fleet checks for the latest release in Github and only downloads it if needed.
""FLEET_VULNERABILITIES_CPE_TRANSLATIONS_URLvulnerabilities:
cpe_translations_url: ""Like the CPE dictionary, we allow users to define where to get the legacy CVE feeds from.
In this case, the URL should be a host that serves the files in the legacy feed format.
Fleet expects to find all the GZ and META files that can be found in https://nvd.nist.gov/vuln/data-feeds#JSON_FEED.
For example: FLEET_VULNERABILITIES_CVE_FEED_PREFIX_URL + /nvdcve-1.1-2002.meta
When not defined, Fleet downloads CVE information from the nvd.nist.gov host using the NVD 2.0 API.
""FLEET_VULNERABILITIES_CVE_FEED_PREFIX_URLvulnerabilities:
cve_feed_prefix_url: ""The CISA known exploited vulnerabilities catalog is downloaded from this URL. This catalog contains vulnerabilities that are known to be actively exploited in the wild and is used to enhance vulnerability reporting with exploit status information. When this value is defined, it will download the file from the specified URL. If this value is not defined, Fleet uses the default CISA catalog URL. Fleet expects this path to be a JSON file. For a specification on the catalog you can view https://www.cisa.gov/known-exploited-vulnerabilities-catalog.
https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.jsonFLEET_VULNERABILITIES_CISA_KNOWN_EXPLOITS_URLvulnerabilities:
cisa_known_exploits_url: https://custom-cisa-path.gov/main/known_exploited_vulnerabilities.jsonWhen running multiple instances of the Fleet server, by default, one of them dynamically takes the lead in vulnerability processing. This lead can change over time. Some Fleet users want to be able to define which deployment is doing this checking. If you wish to do this, you'll need to deploy your Fleet instances with this set explicitly to true and one of them set to false.
Similarly, to externally manage running vulnerability processing, set the value to true for all Fleet instances and then run fleet vuln_processing using external
tools like crontab.
falseFLEET_VULNERABILITIES_DISABLE_SCHEDULEvulnerabilities:
disable_schedule: falseFleet by default automatically downloads and keeps the different data streams needed to properly do vulnerability processing. In some setups, this behavior is not wanted, as access to outside resources might be blocked, or the data stream files might need review/audit before use.
In order to support vulnerability processing in such environments, we allow users to disable automatic sync of data streams with this configuration value.
To download the data streams, you can use fleetctl vulnerability-data-stream --dir ./somedir. The contents downloaded can then be reviewed, and finally uploaded to the defined databases_path in the fleet instance(s) doing the vulnerability processing.
FLEET_VULNERABILITIES_DISABLE_DATA_SYNCvulnerabilities:
disable_data_sync: trueMaximum age of a vulnerability (a CVE) to be considered "recent". The age is calculated based on the published date of the CVE in the National Vulnerability Database (NVD). Recent vulnerabilities play a special role in Fleet's automations, as they are reported when discovered on a host if the vulnerabilities webhook or a vulnerability integration is enabled.
720h (30 days)FLEET_VULNERABILITIES_RECENT_VULNERABILITY_MAX_AGEvulnerabilities:
recent_vulnerability_max_age: 48hIf using osquery 5.4 or later, Fleet by default will fetch and store all applied Windows updates and use that for detecting Windows vulnerabilities — which might be a writing-intensive process (depending on the number of Windows hosts in your Fleet). Setting this to true will cause Fleet to skip both processes.
FLEET_VULNERABILITIES_DISABLE_WIN_OS_VULNERABILITIESvulnerabilities:
disable_win_os_vulnerabilities: trueThe path to a valid Maxmind GeoIP database (mmdb). Support exists for the country & city versions of the database. If city database is supplied
then Fleet will attempt to resolve the location via the city lookup, otherwise it defaults to the country lookup. The IP address used
to determine location is extracted via HTTP headers in the following order: True-Client-IP, X-Real-IP, and finally X-FORWARDED-FOR headers
on the Fleet web server.
You can get a copy of the Geolite2 database for free by creating an account on the MaxMind website, navigating to the download page, and downloading the GZIP archive. Decompress it and place the mmdb file somewhere fleet can access.
It is also possible to automatically keep the database up to date, see the documentation from MaxMind.
GeoIP databases can find what general area a device is from, but not the exact location. They work by collecting which IP addresses ISPs use for different cities and countries and packaging them up into a list mapping IP address to city.
You've likely seen services use GeoIP databases if they redirect you to a site specific to your country. e.g. Google will redirect you to google.ca if you visit from Canada or Mouser will change to your local currency if you view an electronic component.
This can be useful for your fleet install if you want to tell if a device is somewhere it shouldn't be. If a desktop machine located at a site in New York suddenly appears in London, then you can tell that something is wrong. It can also help you differentiate machines if they have similar names, e.g. if you have two computers "John's MacBook Pro".
While it can be a useful tool, an unexpected result could be an error in the database, a user connecting via a mobile network which uses the same IP address for a wide area, or a user visiting family. Checking on the location of devices too often could be invasive to employees who are keeping work devices on them for e.g. oncall responsibilities.
FLEET_GEOIP_DATABASE_PATHgeoip:
database_path: /some/path/to/geolite2.mmdbIf set, then Fleet serve will capture errors and panics and push them to Sentry.
""FLEET_SENTRY_DSNsentry:
dsn: "https://somedsnprovidedby.sentry.com/"This is the username to use for HTTP Basic Auth on the /metrics endpoint.
If basic_auth.username is not set, then:
If basic_auth.disable is not set then the Prometheus /metrics endpoint is disabled.
If basic_auth.disable is set then the Prometheus /metrics endpoint is enabled but without HTTP Basic Auth.
Default value: ""
Environment variable: FLEET_PROMETHEUS_BASIC_AUTH_USERNAME
Config file format:
prometheus:
basic_auth:
username: "foo"This is the password to use for HTTP Basic Auth on the /metrics endpoint.
If basic_auth.password is not set, then:
If basic_auth.disable is not set then the Prometheus /metrics endpoint is disabled.
If basic_auth.disable is set then the Prometheus /metrics endpoint is enabled but without HTTP Basic Auth.
Default value: ""
Environment variable: FLEET_PROMETHEUS_BASIC_AUTH_PASSWORD
Config file format:
prometheus:
basic_auth:
password: "bar"This allows running the Prometheus endpoint /metrics without HTTP Basic Auth.
If both basic_auth.username and basic_auth.password are set, then this setting is ignored.
FLEET_PROMETHEUS_BASIC_AUTH_DISABLEprometheus:
basic_auth:
disable: trueThe
server_private_keyconfiguration option is required for macOS MDM features.
The Apple Push Notification service (APNs), Simple Certificate Enrollment Protocol (SCEP), and Apple Business Manager (ABM) certificate and key configuration are deprecated as of Fleet 4.51. They are maintained for backwards compatibility. Please upload your APNs certificate and ABM token.
The number of days the signed SCEP client certificates will be valid.
FLEET_MDM_APPLE_SCEP_SIGNER_VALIDITY_DAYSmdm:
apple_scep_signer_validity_days: 100The number of days allowed to renew SCEP certificates.
FLEET_MDM_APPLE_SCEP_SIGNER_ALLOW_RENEWAL_DAYSmdm:
apple_scep_signer_allow_renewal_days: 30The duration between DEP device syncing (fetching and setting of DEP profiles). Only relevant if Apple Business Manager (ABM) is configured.
FLEET_MDM_APPLE_DEP_SYNC_PERIODICITYmdm:
apple_dep_sync_periodicity: 10mThe content of the Windows WSTEP identity certificate. An X.509 certificate, PEM-encoded.
FLEET_MDM_WINDOWS_WSTEP_IDENTITY_CERT_BYTESmdm:
windows_wstep_identity_cert_bytes: |
-----BEGIN CERTIFICATE-----
... PEM-encoded content ...
-----END CERTIFICATE-----If your WSTEP certificate/key pair was compromised and you change the pair, the disk encryption keys will no longer be viewable on all macOS hosts' Host details page until you turn disk encryption off and back on.
The content of the Windows WSTEP identity key. An RSA private key, PEM-encoded.
FLEET_MDM_WINDOWS_WSTEP_IDENTITY_KEY_BYTESmdm:
windows_wstep_identity_key_bytes: |
-----BEGIN RSA PRIVATE KEY-----
... PEM-encoded content ...
-----END RSA PRIVATE KEY-----When enabled, end user's who select Fleet Desktop > About Fleet will be navigated to the fleetdm.com/better page with Secureframe branding. See the page here: https://fleetdm.com/better?utm_content=secureframe
falseFLEET_PARTNERSHIPS_ENABLE_SECUREFRAMEpartnerships:
enable_secureframe: trueThis content was moved to Systemd on Sept 6th, 2023.
This content was moved to Proxies on Sept 6th, 2023.
This content was moved to Single sign-on (SSO) on Sept 6th, 2023.
This content was moved to Public IPs on Sept 6th, 2023.
Back to top
On this page: