mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
Fix handling of enroll secret env vars in Orbit (#3458)
This commit is contained in:
parent
d3b2bd362d
commit
d377923750
1
orbit/changes/fix-enroll-secret
Normal file
1
orbit/changes/fix-enroll-secret
Normal file
@ -0,0 +1 @@
|
||||
* Fix handling of enroll secrets to address 0.0.3 enrollment issue.
|
@ -219,7 +219,7 @@ func main() {
|
||||
if enrollSecret != "" {
|
||||
const enrollSecretEnvName = "ENROLL_SECRET"
|
||||
options = append(options,
|
||||
osquery.WithEnv([]string{enrollSecretEnvName, enrollSecret}),
|
||||
osquery.WithEnv([]string{enrollSecretEnvName + "=" + enrollSecret}),
|
||||
osquery.WithFlags([]string{"--enroll_secret_env", enrollSecretEnvName}),
|
||||
)
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ func CheckFileHash(meta *data.TargetFileMeta, localPath string) error {
|
||||
}
|
||||
|
||||
// selectHashFunction returns the first matching hash function and expected
|
||||
// hash, otherwise returning an error if not matching hash can be found.
|
||||
// hash, otherwise returning an error if no matching hash can be found.
|
||||
//
|
||||
// SHA512 is preferred, and SHA256 is returned if 512 is not available.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user