Exclude api_key from agent config to avoid self-hosted auth path
The Go agent uses api_key for self-hosted authentication. Passing the policy store api_key into agent.json caused the agent to use self-hosted upload paths, resulting in missing process and file events.
This commit is contained in:
parent
8e8c444a73
commit
289f73efea
3 changed files with 16 additions and 3 deletions
14
dist/pre/index.js
vendored
14
dist/pre/index.js
vendored
|
|
@ -85666,6 +85666,17 @@ var setup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _ar
|
|||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
|
@ -85938,7 +85949,8 @@ var setup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _ar
|
|||
console.log(HARDEN_RUNNER_UNAVAILABLE_MESSAGE);
|
||||
return;
|
||||
}
|
||||
const configStr = JSON.stringify(confg);
|
||||
const { api_key, use_policy_store } = confg, agentConfig = __rest(confg, ["api_key", "use_policy_store"]);
|
||||
const configStr = JSON.stringify(agentConfig);
|
||||
// platform specific
|
||||
let statusFile = "";
|
||||
let logFile = "";
|
||||
|
|
|
|||
2
dist/pre/index.js.map
vendored
2
dist/pre/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -373,7 +373,8 @@ interface MonitorResponse {
|
|||
return;
|
||||
}
|
||||
|
||||
const configStr = JSON.stringify(confg);
|
||||
const { api_key, use_policy_store, ...agentConfig } = confg;
|
||||
const configStr = JSON.stringify(agentConfig);
|
||||
|
||||
// platform specific
|
||||
let statusFile = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue