2020-12-24 03:20:31 +00:00
|
|
|
package constant
|
|
|
|
|
|
2022-09-23 21:46:33 +00:00
|
|
|
import "time"
|
|
|
|
|
|
2020-12-24 03:20:31 +00:00
|
|
|
const (
|
|
|
|
|
// DefaultDirMode is the default file mode to apply to created directories.
|
2021-01-26 03:53:51 +00:00
|
|
|
DefaultDirMode = 0o755
|
2020-12-24 03:20:31 +00:00
|
|
|
// DefaultFileMode is the default file mode to apply to created files.
|
|
|
|
|
DefaultFileMode = 0o600
|
2022-10-10 20:15:35 +00:00
|
|
|
// DefaultWorldReadableFileMode is the default file mode to apply to files
|
|
|
|
|
// that can be read by other processes.
|
|
|
|
|
DefaultWorldReadableFileMode = 0o644
|
2022-05-23 22:18:19 +00:00
|
|
|
// DefaultSystemdUnitMode is the required file mode to systemd unit files.
|
2022-10-10 20:15:35 +00:00
|
|
|
DefaultSystemdUnitMode = DefaultWorldReadableFileMode
|
2022-03-21 17:53:53 +00:00
|
|
|
// DesktopAppExecName is the name of Fleet's Desktop executable.
|
2022-04-01 20:28:51 +00:00
|
|
|
//
|
|
|
|
|
// We use fleet-desktop as name to properly identify the process when listing
|
|
|
|
|
// running processes/tasks.
|
2022-03-21 17:53:53 +00:00
|
|
|
DesktopAppExecName = "fleet-desktop"
|
2022-09-23 21:46:33 +00:00
|
|
|
// OrbitNodeKeyFileName is the filename on disk where we write the orbit node key to
|
|
|
|
|
OrbitNodeKeyFileName = "secret-orbit-node-key.txt"
|
2024-03-13 10:57:00 +00:00
|
|
|
// OrbitEnrollMaxRetries is the max number of retries when doing an enroll request.
|
|
|
|
|
// We set it to 6 to allow the retry backoff to take effect.
|
|
|
|
|
OrbitEnrollMaxRetries = 6
|
|
|
|
|
// OrbitEnrollBackoffMultiplier is the multiplier to use for backing off between enroll retries.
|
|
|
|
|
OrbitEnrollBackoffMultiplier = 2
|
|
|
|
|
// OrbitEnrollRetrySleep is the duration to sleep between enroll retries.
|
|
|
|
|
OrbitEnrollRetrySleep = 10 * time.Second
|
2022-09-27 14:52:41 +00:00
|
|
|
// OsquerydName is the name of osqueryd binary
|
|
|
|
|
// We use osqueryd as name to properly identify the process when listing
|
|
|
|
|
// running processes/tasks.
|
|
|
|
|
OsquerydName = "osqueryd"
|
|
|
|
|
// OsqueryPidfile is the file containing the PID of the running osqueryd process
|
|
|
|
|
OsqueryPidfile = "osquery.pid"
|
2023-04-07 22:34:16 +00:00
|
|
|
// OsqueryEnrollSecretFileName is the filename on disk where we write
|
|
|
|
|
// the orbit enroll secret.
|
|
|
|
|
OsqueryEnrollSecretFileName = "secret.txt"
|
2022-09-27 14:52:41 +00:00
|
|
|
// SystemServiceName is the name of Orbit system service
|
|
|
|
|
// The service name is used by the OS service management framework
|
|
|
|
|
SystemServiceName = "Fleet osquery"
|
2023-04-27 11:44:39 +00:00
|
|
|
// FleetTLSClientCertificateFileName is the name of the TLS client certificate file
|
|
|
|
|
// used when connecting to the Fleet server.
|
|
|
|
|
FleetTLSClientCertificateFileName = "fleet_client.crt"
|
|
|
|
|
// FleetTLSClientKeyFileName is the name of the TLS client private key file
|
|
|
|
|
// used when connecting to the Fleet server.
|
|
|
|
|
FleetTLSClientKeyFileName = "fleet_client.key"
|
|
|
|
|
// UpdateTLSClientCertificateFileName is the name of the TLS client certificate file
|
|
|
|
|
// used when connecting to the update server.
|
|
|
|
|
UpdateTLSClientCertificateFileName = "update_client.crt"
|
|
|
|
|
// UpdateTLSClientKeyFileName is the name of the TLS client private key file
|
|
|
|
|
// used when connecting to the update server.
|
|
|
|
|
UpdateTLSClientKeyFileName = "update_client.key"
|
2023-08-25 21:25:07 +00:00
|
|
|
// SilenceEnrollLogErrorEnvVer is an environment variable name for disabling enroll log errors
|
|
|
|
|
SilenceEnrollLogErrorEnvVar = "FLEETD_SILENCE_ENROLL_ERROR"
|
2024-01-02 20:59:40 +00:00
|
|
|
// ServerOverridesFileName is the name of the file in the root directory
|
|
|
|
|
// that specifies the override configuration fetched from the server.
|
|
|
|
|
ServerOverridesFileName = "server-overrides.json"
|
2020-12-24 03:20:31 +00:00
|
|
|
)
|