Add api_key to self-hosted agent config for event upload authentication

The agent needs an api_key to authenticate with the API for uploading
process and file events. Generate a random UUID as api_key matching
the approach used in the self-hosted branch.
This commit is contained in:
Varun Sharma 2026-04-13 17:32:58 -07:00
commit 03c6aeecac
3 changed files with 3 additions and 1 deletions

1
dist/pre/index.js vendored
View file

@ -86054,6 +86054,7 @@ function installAgentForSelfHosted(owner, confg) {
customer: owner,
working_directory: confg.working_directory,
api_url: confg.api_url,
api_key: v4(),
allowed_endpoints: confg.allowed_endpoints,
egress_policy: confg.egress_policy,
disable_telemetry: confg.disable_telemetry,

File diff suppressed because one or more lines are too long

View file

@ -485,6 +485,7 @@ export async function installAgentForSelfHosted(owner: string, confg: Configurat
customer: owner,
working_directory: confg.working_directory,
api_url: confg.api_url,
api_key: uuidv4(),
allowed_endpoints: confg.allowed_endpoints,
egress_policy: confg.egress_policy,
disable_telemetry: confg.disable_telemetry,