fleet/orbit/pkg/update
Roberto Dip 35e06fa1ee
ensure file permissions of the nudge config file are consistent (#11374)
For #11218, In the initial implementation of the feature, we used to
launch Nudge as a root, so setting the permissions of the config file to
0600 was okay.

As part of the fix for #10044, we now launch Nudge as the current user
(which is also recommended in the Nudge wiki), but previous
installations of the beta version (probably only Fleeties using Dogfood)
still have the configuration file with restrictive permissions, so Nudge
wasn't able to read the config when launched as a user.

This is kind of hidden because `os.WriteFile` takes a permission
arugment, but it's only used if it's writing the file for the first
time.
2023-04-27 10:22:42 -03:00
..
badgerstore Update go-tuf dependency (#3837) 2022-02-10 08:16:36 -08:00
filestore test: use T.TempDir to create temporary test directory (#6080) 2022-06-13 10:20:38 -03:00
config_fetcher.go Enable installation and auto-updates of Nudge via Orbit (#9605) 2023-02-10 17:03:43 -03:00
disk_encryption.go allow to rotate disk encryption key from My Device (#10592) 2023-03-20 16:14:07 -03:00
execcmd.go Kickstart sofwareupdated periodically from fleetd/orbit to work around a macOS bug (#9465) 2023-01-24 10:14:17 -05:00
execcmd_darwin.go Kickstart sofwareupdated periodically from fleetd/orbit to work around a macOS bug (#9465) 2023-01-24 10:14:17 -05:00
execcmd_stub.go Kickstart sofwareupdated periodically from fleetd/orbit to work around a macOS bug (#9465) 2023-01-24 10:14:17 -05:00
file.go Add 'orbit/' from commit 'ab3047bb39f1e2be331d1ff18b4eb768619033c4' 2021-08-04 16:58:25 -03:00
flag_runner.go Enable installation and auto-updates of Nudge via Orbit (#9605) 2023-02-10 17:03:43 -03:00
flag_runner_test.go create and send Nudge configuration to hosts (#9491) 2023-01-25 17:03:40 -03:00
hash.go Fix update checks for orbit at startup (#3835) 2022-02-23 14:58:07 -03:00
hash_test.go Fix update checks for orbit at startup (#3835) 2022-02-23 14:58:07 -03:00
notifications.go Enable installation and auto-updates of Nudge via Orbit (#9605) 2023-02-10 17:03:43 -03:00
notifications_test.go create and send Nudge configuration to hosts (#9491) 2023-01-25 17:03:40 -03:00
nudge.go ensure file permissions of the nudge config file are consistent (#11374) 2023-04-27 10:22:42 -03:00
nudge_test.go ensure file permissions of the nudge config file are consistent (#11374) 2023-04-27 10:22:42 -03:00
options.go Enable installation and auto-updates of Nudge via Orbit (#9605) 2023-02-10 17:03:43 -03:00
options_darwin.go fix SELinux issue (#5335) 2022-05-02 12:18:59 -06:00
options_linux.go fix SELinux issue (#5335) 2022-05-02 12:18:59 -06:00
options_windows.go Fleetctl to package .app bundles for osquery (and changes for orbit to support them) (#4393) 2022-03-15 16:04:12 -03:00
runner.go Issue 10300 self healing (#10335) 2023-03-08 14:49:03 -03:00
runner_test.go Do not use golangci action for better reproducibility (use make lint-go) (#6175) 2022-06-10 18:52:24 -03:00
softwareupdated_runner.go Kickstart sofwareupdated periodically from fleetd/orbit to work around a macOS bug (#9465) 2023-01-24 10:14:17 -05:00
softwareupdated_runner_test.go Kickstart sofwareupdated periodically from fleetd/orbit to work around a macOS bug (#9465) 2023-01-24 10:14:17 -05:00
testing_utils.go Enable installation and auto-updates of Nudge via Orbit (#9605) 2023-02-10 17:03:43 -03:00
update.go Add mTLS support to fleetd (#11319) 2023-04-27 08:44:39 -03:00
update_test.go Orbit: Add early update checks before starting sub-systems (#5885) 2022-06-01 14:47:04 -03:00